Back to MCP Catalog

Claude Desktop Gateway MCP Server

Developer ToolsTypeScript
A gateway that bridges Claude Desktop to HTTP SSE endpoints
Available Tools

query

Run a read-only SQL query on a DuckDB database

sql

visualise

Visualise SQL query results as an Apache ECharts chart. Provide the SQL clause that produces the data for the visualisation. Provide chart JSON configuration for Apache ECharts.

sqlchart

This MCP provides a bridge from Claude Desktop's stdio interface to HTTP Server-Sent Events (SSE) endpoints. It enables Claude Desktop to connect to remote servers that implement the Model Context Protocol over HTTP SSE transport, expanding Claude's capabilities beyond local tools. The gateway acts as a middleware that translates between the stdio transport used by Claude Desktop and the HTTP SSE transport used by remote MCP servers.

Overview

The MCP Gateway allows Claude Desktop to communicate with remote MCP servers using HTTP Server-Sent Events (SSE). This is particularly useful since Claude Desktop doesn't natively support connecting to remote servers.

Installation

You can install the gateway globally using npm:

npm install -g mcp-server-and-gw

Alternatively, you can run it directly with npx without installing:

npx mcp-server-and-gw http://localhost:8808/

Configuration

To use the gateway with Claude Desktop, you need to update the Claude Desktop configuration file. Add the following to your configuration:

  1. Navigate to your Claude Desktop configuration file:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the gateway configuration:

{
  "mcpServers": {
    "Claude Gateway Example": {
      "command": "npx",
      "args": [
        "mcp-server-and-gw", "http://localhost:8808/"
      ]
    }
  }
}

Make sure that npx is in your PATH, or use the full path to npx (e.g., /opt/homebrew/bin/npx).

Usage

  1. Start your MCP server that implements the HTTP SSE transport. For example:

    PORT=8808 node your-mcp-server.js
    
  2. Start Claude Desktop. It will automatically connect to your server through the gateway.

Environment Variables

You can configure the gateway using environment variables:

  • MCP_HOST: The host of the MCP server (default: localhost)
  • MCP_PORT: The port of the MCP server (default: 8808)

Example:

MCP_HOST=example.com MCP_PORT=9000 npx mcp-server-and-gw

Testing

For development and testing purposes, you can use the MCP Inspector:

npx @modelcontextprotocol/inspector node ./build/mcp-server-and-gw.js

This allows you to test the gateway without needing to start Claude Desktop.

Related MCPs

Apple Shortcuts
Developer ToolsJavaScript

Control Apple Shortcuts automations from AI assistants

Clojars Dependency Lookup
Developer ToolsJavaScript

Fetch dependency information from Clojars, the Clojure community's artifact repository

Simple Timeserver
Developer ToolsPython

Provides Claude with current time and timezone information

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.