ContextForge

by @IBM

Context Forge MCP Server

ContextForge registers and proxies tools, agents, and APIs behind a unified gateway. It targets teams that need discovery, authentication, observability, and policy controls across MCP, A2A, REST, and gRPC services.

MCP Gateways & Proxies4,647pythonApache-2.0

Server facts

ContextForge MCP Server

GitHub stars

4,647

Last commit

Oct 17, 2026

Runtime

python

License

Apache-2.0

Tech

Runtime
pythonPython
Transports
stdio
Remote access
No

Activity

GitHub stars
4,647
Last commit
Data as of

Tags

  • Agent Routing
  • Api Federation
  • Governance
  • Mcp Gateway
  • Observability

Overview

ContextForge is a registry and proxy for bringing different AI-facing services under shared management. Rather than providing one fixed application toolset, it federates MCP servers, A2A agents, and REST or gRPC APIs. Registered backends can be assembled into virtual servers for clients, while common discovery, authentication, and observability controls sit at the gateway layer. The README also describes routing for OpenAI-compatible and Anthropic agents.

The gateway can adapt REST endpoints into MCP tools and discover gRPC services through reflection. Registries cover tools, resources, and prompts, including prompt templates and versioning. Operational features include retries, rate limits, input validation, concurrency controls, and an administrative interface with log inspection. OpenTelemetry support connects tracing to OTLP backends such as Phoenix, Jaeger, or Zipkin. Redis-backed caching and federation support deployments that extend beyond a single gateway process.

The quick start launches the Python package through uvx, with container and Kubernetes deployment paths also described. Configuration includes administrator credentials, UI settings, and token-related secrets; the sample values need customization. After startup, the example registers a backend, inspects its tools, and creates a virtual server before connecting an MCP client. A separate stdio wrapper is available for clients that need process-based access to the HTTP endpoint. The actual tools visible to a client depend on the services registered and the virtual server assembled for it.

Install & configure

Requirements

  • Python 3.11 or newer
  • uv for this launch method
  • Backend services to register
  • curl and jq only for the README smoke test
Documented launch / install command
uvx --from mcp-contextforge-gateway mcpgateway --host 0.0.0.0 --port 4444

This starts the HTTP gateway rather than a stdio MCP process. Customize the provided environment configuration, register backends, and create a virtual server. Its generated identifier determines the client MCP URL. A separate stdio wrapper is documented.

Use cases

  • Aggregate tools from several MCP servers into a virtual endpoint.
  • Expose an existing REST or gRPC service to MCP clients.
  • Centralize authentication and tracing for assistant-facing services.
  • Manage registered tools, prompts, resources, and agents through an admin interface.

Strengths

  • Federates multiple service and agent protocols.
  • Combines discovery, governance controls, and observability.
  • Supports plugin extensions and deployment beyond a single process.

Limitations

  • Requires backend registration and virtual-server configuration after startup.
  • The available tool catalog depends on connected services.
  • Quick-start credentials and signing secrets require customization.

ContextForge setup notes

  • ContextForge records stdio only; confirm a network transport upstream before planning remote access.

Frequently asked questions

The README describes registering and federating backend services. Client tool availability follows the configured services and virtual servers.

Related MCP servers