Claude Mcp Server Gateway
@bzsasson
关于 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
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"claude-mcp-server-gateway": {
"command": "/path/to/your/.venv/bin/python",
"args": [
"/path/to/claude-mcp-server-gateway/dcl_wrapper.py"
],
"env": {}
}
}
}工具
未检测到工具
工具是从 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
FAQ from Claude Mcp Server Gateway
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.
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.
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.
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.
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 服务器
Intervals.icu MCP Server
mvilanovaModel Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
Perplexity MCP Server
DaInfernalCoderA Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon
🔎 GPT Researcher
assafelovicAn autonomous agent that conducts deep research on any data using any LLM providers
MCP-LLM Bridge
patruffBridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
MCP Claude Code
SDGLBLMCP implementation of Claude Code capabilities and more
评论