mcp-context-forge
An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and
What is mcp-context-forge?
An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.
Overview of mcp-context-forge
What it is
ContextForge is an open source registry and proxy that federates tools, agents, and APIs into one endpoint for AI clients. It provides centralized governance, discovery, and observability across AI infrastructure. It supports MCP, A2A, and REST/gRPC APIs, and optimizes agent and tool calling with plugin extensibility.
Key features
- Federation across multiple MCP and REST services
- A2A (Agent-to-Agent) integration for external AI agents- gRPC-to-MCP translation via automatic reflection-based service discovery
- Virtualization of legacy APIs as MCP-compliant tools and servers
- Transport over HTTP, JSON-RPC, WebSocket, SSE, and Streamable HTTP
- Admin UI for real-time management, configuration, and log monitoring
- Built-in auth, retries, and rate-limiting with user-scoped OAuth tokens
- OpenTelemetry observability with Phoenix, Jaeger, Zipkin, and other OTLP backends
Use cases
Centralizing access to multiple MCP servers, REST APIs, and gRPC services under a single unified endpoint. Federating AI agents using the A2A protocol. Exposing legacy REST/gRPC APIs as MCP-compliant tools. Managing governance, discovery, and observability across distributed AI tooling and agent infrastructure.
Getting started
bash# Generate secure secretspython3 -m mcpgateway.scripts.init_secrets# Export secretsexport JWT_SECRET_KEY=$(grep '^JWT_SECRET_KEY=' .env.secrets | cut -d= -f2)export AUTH_ENCRYPTION_SECRET=$(grep '^AUTH_ENCRYPTION_SECRET=' .env.secrets | cut -d= -f2)# Start the gatewayJWT_SECRET_KEY=$JWT_SECRET_KEY AUTH_ENCRYPTION_SECRET=$AUTH_ENCRYPTION_SECRET MCPGATEWAY_UI_ENABLED=true MCPGATEWAY_ADMIN_API_ENABLED=true [email protected] uvx --from mcp-contextforge-gateway mcpgateway --host 0.0.0.0 --port 4444
License and pricing
Apache-2.0 license. Open source.
Based on the project's public README and repository metadata.