Claude Mcp Server Gateway

by bzsasson

321 downloads
Not rated
GitHub

About

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

Details

Author
bzsasson
Downloads
321
Categories
AI

- 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)

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Claude Mcp Server Gateway
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

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

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

| Platform | Config File | Supported |
|----------|------------|----------|
| Claude Desktop | claude_desktop_config.json | Yes |
| Claude Code | .claude.json or .mcp.json | Yes |
| Cline (VSCode) | cline_mcp_settings.json | Yes |

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

```bash
cp .env.example .env

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.