Claude MCP server gateway

Claude MCP server gateway

claude-mcp-server-gateway•bybzsasson

A Python MCP gateway server that exposes three tools and loads tools from configured MCP servers on demand rather than at startup.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Acts as a single MCP server exposing list_available_mcps, load_mcp_tools and call_mcp_tool.
  • •Starts configured MCP servers only when needed, loading their tools on demand.
  • •Reads configured MCP servers from an MCP_SERVERS dictionary in dcl_wrapper.py.

BEST FOR

  • •Users who connect many MCP servers and want to avoid loading all tool schemas at startup.

ABOUT CLAUDE-MCP-SERVER-GATEWAY

Claude MCP server gateway is cataloged as an MCP server attributed to bzsasson. A Python MCP gateway server that exposes three tools and loads tools from configured MCP servers on demand rather than at startup. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Claude MCP server gateway are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which MCP servers can be added to the gateway?

Servers are added to the MCP_SERVERS dict in dcl_wrapper.py; the README lists configured examples including github, slack, google-drive, filesystem, postgres, memory and brave-search.

What are the limitations of the gateway?

There is a small delay on first tool use due to server startup, each MCP server connection is temporary, and there is no persistence between calls.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3aa43e4d8011 · 采集于 2026-11-13 11:37:35 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Claude MCP server gateway

A Python MCP server gateway for Claude Desktop, Claude Code, Cline and Roo. Instead of loading all MCP tools at startup, it loads them on demand.

Works with: Claude Desktop (app), Claude Code (terminal), Cline and Roo (VSCode extensions)

Compatibility

PlatformConfig FileSupported
Claude Desktopclaude_desktop_config.jsonYes
Claude Code.claude.json or .mcp.jsonYes
Cline (VSCode)cline_mcp_settings.jsonYes

The MCP server problem

When you connect multiple MCP servers to Claude:

  • GitHub MCP server: 51 tools
  • Slack MCP server: 20 tools
  • Google Drive MCP: 15 tools
  • Filesystem MCP: 12 tools

That's 100+ MCP tool definitions loaded before you even start. Each tool's JSON schema eats up tokens.

What this Claude MCP server gateway does

The gateway acts as a single MCP server with 3 tools:

  1. list_available_mcps - shows configured MCP servers
  2. load_mcp_tools - loads tools from a specific MCP server
  3. call_mcp_tool - executes the tool

Model Context Protocol servers only start when Claude actually needs them.

Setup

Requirements

  • Python 3.11+ (for MCP Python SDK)
  • Claude Desktop, Claude Code, or Cline/Roo
  • MCP servers you want to use

Install

git clone https://github.com/bzsasson/claude-mcp-server-gateway.git
cd claude-mcp-server-gateway

python3.11 -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

pip install mcp python-dotenv

Configure API keys

cp .env.example .env
# Edit .env with your tokens

Claude Desktop MCP server configuration

Add to your Claude Desktop config:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "gateway": {
      "command": "/path/to/.venv/bin/python",
      "args": ["/path/to/claude-mcp-server-gateway/dcl_wrapper.py"]
    }
  }
}

Restart Claude Desktop.

How to add MCP server to Claude Code

Claude Code MCP server setup uses a similar config with one additional field.

User-level configuration (all projects)

Edit ~/.claude.json:

{
  "mcpServers": {
    "gateway": {
      "type": "stdio",
      "command": "/path/to/.venv/bin/python",
      "args": ["/path/to/claude-mcp-server-gateway/dcl_wrapper.py"]
    }
  }
}

Project-level configuration

For project-specific MCP servers, create .mcp.json in your project root:

{
  "mcpServers": {
    "gateway": {
      "type": "stdio",
      "command": "/path/to/.venv/bin/python",
      "args": ["/path/to/claude-mcp-server-gateway/dcl_wrapper.py"]
    }
  }
}

Claude Code will prompt for approval when using project-scoped servers.

Alternative: Claude Code CLI

# Add the gateway using CLI
claude mcp add gateway --scope user \
  --command /path/to/.venv/bin/python \
  -- /path/to/claude-mcp-server-gateway/dcl_wrapper.py

# Verify it's added
claude mcp list

Cline/Roo MCP server configuration

For Cline and Roo (VSCode extensions), the MCP server gateway configuration goes in:

Mac: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

{
  "mcpServers": {
    "gateway": {
      "command": "/path/to/.venv/bin/python",
      "args": ["/path/to/claude-mcp-server-gateway/dcl_wrapper.py"],
      "disabled": false
    }
  }
}

Restart VSCode after updating.

How it works

  1. Claude starts - sees gateway (3 tools)
  2. You ask about GitHub - Claude calls list_available_mcps
  3. Claude sees GitHub available - calls load_mcp_tools("github")
  4. Gateway returns GitHub's tool list
  5. Claude picks the right tool - calls call_mcp_tool("github", "search_repositories", {...})
  6. Gateway spins up GitHub MCP, runs the tool, returns results

Adding MCP servers to the gateway

Edit dcl_wrapper.py and add to the MCP_SERVERS dict:

MCP_SERVERS = {
    "your-server": {
        "command": "npx",
        "args": ["-y", "your-mcp-package"],
        "env": {
            "API_KEY": os.getenv("YOUR_API_KEY", "")
        },
        "description": "What it does"
    }
}

Currently configured servers

  • github
  • slack
  • google-drive
  • filesystem
  • postgres
  • memory
  • brave-search

(Check dcl_wrapper.py for the full list)

Limitations

  • Small delay on first tool use (server startup)
  • Each MCP server connection is temporary
  • No persistence between calls

Troubleshooting

Gateway not appearing

  • Check Python path in config points to virtual environment
  • Verify dcl_wrapper.py path is correct
  • Restart Claude Desktop/Code/VSCode completely

MCP server connection errors

  • Check API keys in .env file
  • Verify MCP server package is installed
  • Check gateway logs for errors

Claude Code specific issues

  • Make sure to include "type": "stdio" in config
  • For project configs, approve when prompted
  • Use claude mcp list to verify installation

Files

  • dcl_wrapper.py - The gateway server
  • .env - Your API keys
  • requirements.txt - Python dependencies

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Claude MCP server gateway from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/claude-mcp-server-gateway)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools