MCP Gateway Core
Allows triggering n8n workflows via the N8nProvider, letting the gateway execute capabilities by calling configured n8n webhooks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Gateway Core
A Capability Execution Platform -- not an AI framework, not an agent,
not an MCP protocol implementation. It is the foundation layer a future
Enterprise AI Platform sits on top of: a dynamic, database-driven registry
of named capabilities (customer.create, invoice.approve,
knowledge.search, ...) that can be executed on demand and routed to
whichever backend system actually performs the work.
Any system can call it: Agno, Claude, OpenAI-based agents, LangGraph, CrewAI, n8n, an ERP, a CRM, or a person testing via Swagger. The gateway itself never hardcodes a single capability, workflow, or business rule -- everything is metadata loaded from PostgreSQL at request time.
Why this exists
Most "AI + automation" stacks end up wiring every agent framework directly
to every backend system, which means N frameworks x M systems integration
points, all duplicating auth, validation, retries, and audit logging. This
gateway collapses that to N + M: every caller talks to one gateway using
one contract (POST /api/v1/execute), and every backend system is
integrated exactly once as a provider.
Related MCP server: mcp-nexus
Core concepts
A capability is metadata describing something that can be executed --
a code (customer.create), a provider type (http, n8n, mock, ...),
an endpoint, and JSON input/output schemas. It carries no logic itself.
A provider is the strategy that actually executes a capability:
HttpProvider calls a REST endpoint, N8NProvider triggers an n8n
webhook, MockProvider echoes back the payload for testing. New provider
types are added by implementing one interface -- the dispatcher and API
never change.
The dispatcher is the orchestrator: given a capability code, a payload, and caller context, it loads the capability, checks it is enabled, resolves the right provider, executes it, writes an audit log, and returns a standardized response -- regardless of what actually ran underneath.
See docs/Architecture.md for the full design
rationale, docs/API.md for the REST contract, and
docs/Development.md for local setup.
Tech stack
Python 3.12, FastAPI, PostgreSQL with SQLAlchemy 2.0 (async) and Alembic migrations, Redis as an optional read-through cache, Pydantic v2 for validation, Docker / Docker Compose for local orchestration, Pytest for testing.
Quick start
git clone <repo-url> mcp-gateway-core
cd mcp-gateway-core
cp .env.example .env
docker compose up --buildThis starts PostgreSQL, Redis, and the gateway; runs migrations; seeds
four sample capabilities (customer.create, customer.search,
invoice.approve, mock.echo); and serves the API at
http://localhost:8000. Interactive docs live at
http://localhost:8000/docs.
Try the safe-to-call sample capability:
curl -X POST http://localhost:8000/api/v1/execute \
-H "Content-Type: application/json" \
-d '{"capability": "mock.echo", "payload": {"hello": "world"}, "context": {"userId": "u1"}}'For the step-by-step local (non-Docker) workflow -- virtualenv, running
Alembic by hand, running the test suite -- see
docs/Development.md.
Project layout
app/
api/ FastAPI routers + Pydantic schemas (capabilities, execution, health)
domain/ Framework-free entities, value objects, exceptions, the Provider interface
application/ Use-case services: registry, dispatcher, execution, audit
infrastructure/ SQLAlchemy models, repositories, Redis client, concrete providers
core/ Settings, structured logging, DI wiring, error handlers
migrations/ Alembic environment + versioned schema migrations
scripts/ Seed script for sample capabilities
tests/ unit / integration / repository test suites
docker/ Auxiliary container assets (Dockerfile + compose live at repo root)
docs/ Architecture, Development, API referenceMCP bridge (SSE)
The mcp_server/ package turns the Gateway into a real MCP server,
serving over SSE on port 8100. Every enabled capability in the registry
appears as a named MCP tool. Any MCP-speaking AI client can connect:
Client | Config |
n8n MCP Client Tool | SSE URL → |
Claude Desktop | use |
Claude.ai remote | Project → MCP Connectors → |
OpenAI Agents SDK |
|
LangGraph / custom |
|
Run it alongside the Gateway with docker compose up --build (the bridge
is included as the mcp-server service). See docs/MCP.md
for the full guide including n8n workflow integration.
Status
This is a v0.1 reference implementation of the gateway core: capability
registry, dispatcher, three provider strategies (mock/http/n8n), audit
logging, and observability endpoints are implemented and tested. Things
intentionally left for a follow-up iteration: authentication/authorization
on the registry and execute APIs, per-capability rate limiting, request
payload validation against input_schema, and a provider-config-driven
(rather than env-var-driven) n8n/HTTP connection setup.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA standalone MCP server that exposes API endpoints as tools for AI assistants, using SSE transport.-
- AlicenseAqualityCmaintenanceEnables AI harnesses to connect to a single MCP endpoint that routes to multiple downstream MCP servers, discovering and executing capabilities on demand while keeping tool schemas out of context.442 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables centralized, versioned management and distribution of AI agent skills through a horizontally scalable MCP server, allowing agents to dynamically discover, search, and retrieve skills over HTTP/SSE.MIT
- FlicenseNot gradedqualityCmaintenanceEnables centralized routing, discovery, namespacing, and execution of tools from multiple remote MCP servers over HTTP/SSE, aggregating them behind a unified MCP gateway with dynamic server management.-