ContextForge federates MCP, agent, and REST or gRPC APIs behind one governed endpoint for AI clients. It adds discovery, auth, rate limits, plugins, and observability.
Overview
ContextForge is an open registry and proxy that sits in front of MCP servers, A2A agents, and REST or gRPC APIs. It exposes a unified endpoint for AI clients with centralized governance, discovery, and observability, and is intended to optimize agent and tool calling.
The gateway layer federates MCP and REST services, supports MCP protocol version selection, and can wrap non-MCP services as virtual MCP servers. It adapts REST APIs into tools with JSON Schema extraction, headers, tokens, custom auth, and retry, timeout, and rate-limit policies. gRPC services can be translated to MCP via reflection-based discovery.
Registries cover prompts, resources, and tools, with features such as Jinja2 prompt templates, URI-based resources, and validated tool inputs. Built-in authentication, retries, and rate limiting are described, along with an Admin UI and a separate Web UI container. OpenTelemetry tracing can send data to Phoenix, Jaeger, Zipkin, and other OTLP backends.
Deployments can use PyPI, Docker or Podman images, Docker Compose stacks with PostgreSQL and Redis, or Helm on Kubernetes with scaling, RBAC, and monitoring options. The process runs as an MCP server with HTTP, JSON-RPC, WebSocket, SSE, streamable HTTP, and stdio transports.
Key features
- MCP and REST federation
- A2A agent gateway routing
- REST and gRPC to MCP adapters
- Built-in auth and rate limiting
- Plugin extensibility
- OpenTelemetry observability
- Admin UI and separate Web UI
- Docker, Compose, Helm, and PyPI deploy
Use cases
- Single endpoint for many MCP tools
- Governed AI tool and agent access
- Legacy REST as MCP tools
- Multi-cluster federated gateways
- Centralized prompt and resource registry