ContextForge MCP Gateway
IBM's open-source gateway and registry that puts MCP servers, A2A agents and REST/gRPC APIs behind one governed endpoint.
Quick answer
ContextForge MCP Gateway is an IBM's open-source gateway and registry that puts MCP servers, A2A agents and REST/gRPC APIs behind one governed endpoint, listed under LLM gateway & observability. A typical small-business use: give every AI assistant in the company one approved MCP endpoint instead of many ad-hoc tool servers. The project publishes no official RAM figure, so we do not estimate a monthly server cost. License: Apache-2.0, which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Nov 23, 2026.
What is ContextForge MCP Gateway?
ContextForge (IBM/mcp-context-forge) is a registry and proxy for AI tool calling. It federates Model Context Protocol (MCP) servers, A2A agents and REST or gRPC APIs, bundles their tools into virtual MCP servers, and adds authentication, teams and RBAC, SSO through OAuth2/OIDC providers, rate limiting, retries, plugins and OpenTelemetry tracing. It runs as a single container with SQLite or as a Compose or Helm stack with PostgreSQL and Redis.
Where it fits in a 10–200 person business
- Give every AI assistant in the company one approved MCP endpoint instead of many ad-hoc tool servers
- Wrap internal REST APIs as MCP tools with per-team access control
- Trace and rate-limit agent tool calls in one place
These use cases are our editorial suggestions, not claims made by the project.
Can a business use ContextForge MCP Gateway? (license)
| License | Apache-2.0 |
|---|---|
| Type | Permissive: MIT / Apache-2.0: use, modify and sell with few obligations. |
| Internal business use | Allowed under the license text |
| What to watch | Permissive. Internal and commercial use allowed; keep the license and NOTICE files. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does ContextForge MCP Gateway phone home?
| Telemetry (usage data sent to the vendor) | Not documented OpenTelemetry tracing is built in but sends only to an OTLP backend you configure. Source: ibm.github.io/mcp-context-forge/manage/configuration |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Not documented |
| Single sign-on (OIDC / SAML / LDAP) | Free By protocol: OIDC free. SSO through OAuth2/OIDC providers (GitHub, Google, IBM Security Verify, Microsoft Entra ID, Keycloak, Okta, generic OIDC) is part of the open-source gateway; LDAP is mentioned only via Keycloak user federation. |
| Audit log | Yes, free Permission audit logging (one row per permission check) is available but off by default (PERMISSION_AUDIT_ENABLED=false). Source: ibm.github.io/mcp-context-forge/manage/configuration |
| Role-based access control (RBAC) | Yes, free Two-layer model of token scoping plus role-based permissions, with teams. |
| Data residency / GDPR notes from the project | Not documented |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does ContextForge MCP Gateway need?
The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.
GPU: Not required. It is a Python gateway; models and tools run elsewhere.
No minimum is published. The scaling guide's Kubernetes example for 16 workers requests 8 CPU cores and 3.5 GB of memory; that is a worked sizing example for high load, not a minimum. The README says arm64 is currently not supported in production for the container images.
How much does it cost to host ContextForge MCP Gateway per month?
The project publishes no RAM figure we could verify, so we do not estimate a cost.
How to deploy ContextForge MCP Gateway
Method: Docker
python3 -m mcpgateway.scripts.init_secrets
export 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)"
docker run -d --name mcpgateway -p 4444:4444 \
-e MCPGATEWAY_UI_ENABLED=true -e MCPGATEWAY_ADMIN_API_ENABLED=true \
-e HOST=0.0.0.0 -e JWT_SECRET_KEY="${JWT_SECRET_KEY}" \
-e AUTH_ENCRYPTION_SECRET="${AUTH_ENCRYPTION_SECRET}" -e AUTH_REQUIRED=true \
-e [email protected] -e PLATFORM_ADMIN_PASSWORD=<strong-password> \
-e PLATFORM_ADMIN_FULL_NAME="Platform Administrator" \
-e DATABASE_URL=sqlite:///./mcp.db -e SECURE_COOKIES=false \
ghcr.io/ibm/mcp-context-forge:latest
# Admin UI at http://localhost:4444/admin From the official instructions: github.com/IBM/mcp-context-forge#-docker-single-container. Always check the source for the current version before you run it.
Known gotchas when self-hosting ContextForge MCP Gateway
- The security guide, written during the 1.0 release candidates, says the Admin UI is development-only and should be disabled in production (MCPGATEWAY_UI_ENABLED=false, MCPGATEWAY_ADMIN_API_ENABLED=false) and warns not to use the gateway with insecure MCP servers. source
- JWT_SECRET_KEY and AUTH_ENCRYPTION_SECRET are required; the gateway will not start without real values. If two environments share the same signing key and issuer/audience, tokens made in one are accepted in the other. source
- The quick-start single container uses SQLite inside the container; without the documented volume mount (-v ./data:/data and DATABASE_URL=sqlite:////data/mcp.db) the data is lost when the container is recreated. The README's Compose stack uses PostgreSQL and Redis instead. source
- The container images are currently not supported on arm64 in production; on Apple Silicon the README suggests Rosetta or installing from PyPI. source
Alternatives in LLM gateway & observability
- LiteLLM AI gateway that puts 100+ LLM providers behind one OpenAI-compatible API with keys and budgets.
- New API Self-hosted AI API gateway (One API fork) that puts many model providers behind one key, with quotas, usage logs and cost tracking.
- Langfuse LLM observability with tracing, prompt management, evaluations and cost tracking.
- One API Original self-hosted LLM API gateway that puts many model providers behind one OpenAI-style key, with quotas and token management.
- MLflow Open-source platform for LLM tracing, evaluation and prompt management plus classic ML experiment tracking and model registry.
- Promptfoo CLI and web viewer for testing prompts, comparing models and red-teaming LLM apps before they ship.
- Opik Open-source LLM observability and evaluation platform for tracing, evals, prompt management and monitoring.
- Portkey AI Gateway Open-source AI gateway that routes to 1,600+ models with retries, caching, load balancing and guardrails.
- Phoenix Free self-hosted LLM tracing, evaluation, datasets and prompt management from Arize.
- Helicone Open-source LLM observability platform for tracing, cost and evaluation, with a self-hosted all-in-one image.
- LangWatch Open-source LLM ops platform for tracing, evaluations, agent simulations, prompt management and an AI gateway.
- OpenLIT OpenTelemetry-native observability, evals, guardrails and cost tracking for AI agents, self-hosted under Apache 2.0.
ContextForge MCP Gateway FAQ
How much RAM does ContextForge MCP Gateway need?
ContextForge MCP Gateway does not publish an official RAM figure, so we do not state one. No minimum is published. The scaling guide's Kubernetes example for 16 workers requests 8 CPU cores and 3.5 GB of memory; that is a worked sizing example for high load, not a minimum. The README says arm64 is currently not supported in production for the container images.
Does ContextForge MCP Gateway need a GPU?
Not required. It is a Python gateway; models and tools run elsewhere.
How much does it cost to self-host ContextForge MCP Gateway?
The software is free to download. The project publishes no official RAM figure, so we do not estimate a monthly server cost.
Is ContextForge MCP Gateway free for commercial use?
ContextForge MCP Gateway is licensed under Apache-2.0 (Permissive). Internal business use is allowed under the license text. Permissive. Internal and commercial use allowed; keep the license and NOTICE files. This is a summary, not legal advice.
What are common problems when self-hosting ContextForge MCP Gateway?
The security guide, written during the 1.0 release candidates, says the Admin UI is development-only and should be disabled in production (MCPGATEWAY_UI_ENABLED=false, MCPGATEWAY_ADMIN_API_ENABLED=false) and warns not to use the gateway with insecure MCP servers. JWT_SECRET_KEY and AUTH_ENCRYPTION_SECRET are required; the gateway will not start without real values. If two environments share the same signing key and issuer/audience, tokens made in one are accepted in the other. The quick-start single container uses SQLite inside the container; without the documented volume mount (-v ./data:/data and DATABASE_URL=sqlite:////data/mcp.db) the data is lost when the container is recreated. The README's Compose stack uses PostgreSQL and Redis instead. The container images are currently not supported on arm64 in production; on Apple Silicon the README suggests Rosetta or installing from PyPI.
Is ContextForge MCP Gateway still maintained?
Yes, it is actively developed. Last commit: Nov 23, 2026. Latest release: v1.1.1 (Nov 10, 2026). Checked Nov 23, 2026.
How do I install ContextForge MCP Gateway?
The official method is Docker. The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/IBM/mcp-context-forge#-docker-single-container
What are self-hosted alternatives to ContextForge MCP Gateway?
Other apps in LLM gateway & observability: LiteLLM, New API, Langfuse, One API, MLflow, Promptfoo, Opik, Portkey AI Gateway, Phoenix, Helicone, LangWatch, OpenLIT.
Sources
- GitHub repository: github.com/IBM/mcp-context-forge
- Official documentation: ibm.github.io/mcp-context-forge/
- License text: github.com/IBM/mcp-context-forge/blob/main/LICENSE
- Hardware requirements: ibm.github.io/mcp-context-forge/manage/scale/
- Deploy instructions, Gotcha 3: github.com/IBM/mcp-context-forge#-docker-single-container
- Gotcha 1, Gotcha 2: ibm.github.io/mcp-context-forge/manage/securing/
- Gotcha 4: github.com/IBM/mcp-context-forge#quick-start---containers
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-11-11. Spotted something out of date? Tell us.