MCP.so
登录
C

Claude MCP Server Gateway

@bzsasson

基本信息

分类

AI 与智能体

传输方式

stdio

作者

bzsasson

提交者

B Sasson

关于 Claude MCP Server Gateway

Discover the power of the “CLGateway”, an the open-source Claude MCP Server Gateway (available on GitHub). Built for users of Claude Desktop, Claude API or Claude Code, this Python-based gateway smartly manages your MCP (Model Context Protocol) servers and dramatically slashes to

Claude MCP Server Gateway 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

Claude MCP Server Gateway 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Claude Mcp Server Gateway?

Claude Mcp Server Gateway is a Python MCP server gateway that loads MCP tools on demand instead of at startup, reducing token consumption. It integrates with Claude Desktop, Claude Code, Cline, and Roo, and works with any MCP server configured for those platforms.

How to use Claude Mcp Server Gateway?

Install via git, set up a Python 3.11+ virtual environment, install dependencies (mcp, python-dotenv), and configure API keys in a .env file. Then add the gateway as a single MCP server in your platform’s configuration file (e.g., claude_desktop_config.json, .claude.json, .mcp.json, or cline_mcp_settings.json) pointing to dcl_wrapper.py.

Key features of Claude Mcp Server Gateway

  • Loads MCP tools on demand instead of at startup
  • Exposes only 3 tools: list_available_mcps, load_mcp_tools, call_mcp_tool
  • Works with Claude Desktop, Claude Code, Cline, and Roo
  • Supports any MCP server configured in the gateway
  • Reduces token usage by deferring tool schema loading
  • Compatible with user-level and project-level configurations (Claude Code)

Use cases of Claude Mcp Server Gateway

  • Connect dozens of MCP servers without clogging context with tool definitions
  • Prevent MCP servers from starting until explicitly needed by Claude
  • Manage multiple MCP servers through a single gateway entry in configuration
  • Use with Claude Code CLI (claude mcp add) for rapid setup
  • Simplify onboarding of new MCP servers by editing only one Python dict

常见问题

1

What platforms does Claude Mcp Server Gateway support?

It supports Claude Desktop (app), Claude Code (terminal), Cline, and Roo (VSCode extensions). Each platform uses a specific configuration file location.

2

How does it reduce token usage?

Instead of loading all MCP tool definitions (100+ tools) on startup, the gateway exposes only 3 tools. Tools are loaded on demand when Claude calls `load_mcp_tools` for a specific server.

3

What are the runtime requirements?

Python 3.11+, the MCP Python SDK, and python-dotenv. The gateway uses a virtual environment and communicates over stdio with the host application.

4

What are the known limitations?

There is a small delay on the first tool use (server startup), each MCP server connection is temporary, and no persistence exists between calls.

5

How do I add a custom MCP server to the gateway?

Edit `dcl_wrapper.py` and add an entry to the `MCP_SERVERS` dictionary with the `command`, `args`, `env`, and `description` fields. The API key should be read from the `.env` file.

评论

AI 与智能体 分类下的更多 MCP 服务器