Universal MCP Gateway
Universal MCP Gateway
Ein lokaler MCP-Einstiegspunkt für mehrere Code-Agenten. Er leitet konfigurierte Upstream-MCP-Tools als Proxy weiter, hält Upstream-Sessions warm, seriisisiert Aufrufe für Exklusiv-Dienste, meldet Prozess-Ressourcen und bereitgestellt kleine SQLite-gestützte Tools für Aufgaben, Sperren und Speicher.
Schnellstart
python -m pip install -e '.[dev]'
cp config.example.toml config.toml
mcp-gateway serve --config config.tomlVerbinden Sie einen MCP-Cilent mit:
http://127.0.0.1:8000/mcpClients, die nur stdio, die nur stdio unterstützen, können einen einzelnen Gateway-Bridge-Prozess ausführen:
{
"command": "mcp-gateway",
"args": ["serve", "--config", "/absolute/path/config.toml", "--transport", "stdio"]
}Related MCP server: LLM Bus
Konfiguration
[gateway]
host = "127.0.0.1"
port = 8000
database = "gateway.db"
auth_token_env = "MCP_GATEWAY_TOKEN"
[servers.example]
transport = "stdio"
command = "npx"
args = ["-y", "some-mcp-server"]
mode = "exclusive"
max_in_flight = 1
queue_limit = 32
[servers.remote]
transport = "streamable_http"
url = "http://127.0.0.1:9000/mcp"
mode = "pool"
max_connections = 2
queue_limit = 64Upstream-Tools sind als <server_id>__<tool_name> verfigbar. Gateway-Koordinationsools verwenden das Präfix gateway__. per_agent ist in v0.1 auf den Prozess begrenzt; führen Sie einen stdio-Gateway-Bridge pro Agent aus, wenn getrennte Upstream-Sessions erforderlich sind. Die erste Version setzt nur Tools als Proxy; Ressourcen, Prompts, Sampling und verteilte Ablaufplanung sind von Sie bewusst zurückgestellt.
Betrieb
mcp-gateway status
mcp-gateway start example
mcp-gateway stop example
mcp-gateway restart exampleDie Adin-API ist standardmäßig nur über Loopback erreichar:
GET /health
GET /v1/status
POST /v1/servers/{id}/start
POST /v1/servers/{id}/stop
POST /v1/servers/{id}/restartSetzen Sie die konfigurierte Tokken-Umgebung variable, um Authorization: Bearer ... für MामCP- und Adin-HTTP-Anfragen zu verlangen. MCP-Argumente und -Kommando werden nur aus TOML lesen; der Gateway führt niemals einen Shell-Befehls-Sring aus, den ein Agent empfängt.
Freie Arbeits-Tools
Der Gateway bereit über gateway__*-ools Task-Leasing, optimistische Task-Aktualisierungen, Datei-Sperre sowie pojektspezifischen Speicher bereit. SQLite verwendet den WAL-Modus und kur die Transaktionen. Sperren und Leases laufen ab, sodass ein getrenntes Agent nicht dauerhaft Ressourcen belegt.
Speichern Sie keine Zugangsdaten, rohen Transkripttions- oder Unzahlungsdaten in der lokalen Speicherdatenbank.
Enticklung
python -m pytest -q
python -m compileall -q universal_mcp_gateway
git diff --checkSiehe SPEC.md und tasks/plan.md für den aktuellen Vertrag und aufgeschobene Aufgaben.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceLocal MCP server for Claude Code providing persistent memory, task planning, and agent coordination with full transparency and no network calls.2MIT
- AlicenseBqualityCmaintenanceMCP server that provides a live coordination layer for AI agents, including attributable handoffs, a shared event ledger, atomic work-claiming, and advisory file leases to prevent collisions.279AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.1
- AlicenseNot gradedqualityAmaintenanceLocal-first MCP server that provides project context, verification gates, and structured tools for coding agents to discover knowledge, run diagnostics, and execute allowlisted commands within a repository.35MIT
Related MCP Connectors
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/slxar/universal-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server