Universal MCP Gateway
Universal MCP Gateway
Un único punto de entrada MCP local para múltiples agentes de código. Actúa como proxy de las herramientas MCP ascendentes configuradas, mantiene las sesiones ascendentes activas, serializa las llamadas para servicios exclusivos, informa de los recursos de los procesos y expone pequeñas herramientas de tareas, bloqueos y memoria basadas en SQLite.
Inicio rápido
python -m pip install -e '.[dev]'
cp config.example.toml config.toml
mcp-gateway serve --config config.tomlConecte un cliente MCP a:
http://127.0.0.1:8000/mcpLos clientes que solo admiten stdio pueden ejecutar un proceso de puente del gateway:
{
"command": "mcp-gateway",
"args": ["serve", "--config", "/absolute/path/config.toml", "--transport", "stdio"]
}Related MCP server: LLM Bus
Configuración
[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 = 64Las herramientas ascendentes se exponen como <server_id>__<tool_name>. Las herramientas de coordinación del gateway usan el prefijo gateway__. per_agent es específico del proceso en la v0.1; ejecute un puente de gateway por agente para unas sesiones ascendentes separadas. La primera versión solo ofrece herramientas mediante proxy; los recursos, los prompts, el muestreo y la planificación distribuida se difieren deliberadamente.
Operaciones
mcp-gateway status
mcp-gateway start example
mcp-gateway stop example
mcp-gateway restart exampleLa API de administración es de solo loopback por defecto:
GET /health
GET /v1/status
POST /v1/servers/{id}/start
POST /v1/servers/{id}/stop
POST /v1/servers/{id}/restartEstablezca la variable de entorno de token configurada para exigir Authorization: Bearer ... en las solicitudes HTTP de MCP y administración. Los comandos y los argumentos se leen únicamente de TOML; el gateway nunca ejecuta una cadena de shell recibida de un agente.
Herramientas de trabajo compartido
El gateway ofrece arrendamientos de tareas, actualizaciones optimistas de tareas, bloqueos de recursos y memoria de texto por proyecto a través de las herramientas gateway__*. Los sistemas SQLite usan el modo WAL y transacciones cortas. Los arrendamientos y los bloqueos caducan, de modo que un agente desconectado no retiene el trabajo indefinidamente.
No almacene credenciales, transcripciones sin procesar ni datos de producción en el almacén de memoria local.
Desarrollo
python -m pytest -q
python -m compileall -q universal_mcp_gateway
git diff --checkConsulte SPEC.md y tasks/plan.md para ver el contrato actual y el trabajo pendiente.
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