GraphCanon updated today · GitHub synced today · 32 views this month
Decision brief
mcp-context-forge is an AI gateway and registry for MCP, A2A, REST/gRPC APIs. It offers centralized discovery, guardrails, management, and optimization for agent and tool calling in Python.
Good fit when
- When you need to integrate multiple APIs using a unified endpoint with support for MCP, Agent-to-Agent communication, or REST/gRPC services.
- For projects that require advanced guardrails and management capabilities for AI models acting as agents within the application.
Avoid when
- When only REST API support is required, without additional functionality such as MCP or A2A services.
- For applications that do not benefit from centralized discovery and management features for AI agents, preferring more decentralized approaches to development.
- Pricing:
- freemium - Open-source, free to use for both personal and commercial projects.
- Requirements:
- Requires Docker; Supports running with Docker for ease of deployment.
Observed Jul 16, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Very active (0d since push)
- As of today
- Provenance
- Not a fork · Organization account
- As of today
- Security (OSV)
- No MCP manifest
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Install
pip install mcp-context-forge PyPISimilar tools
Same-category neighbours. No typed graph edges are catalogued for this tool yet.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
Unified endpoint with centralized discovery, guardrails, management, optimized for agent and tool calling. Supports plugins.
Capability facts
- Deploy
- Self-host
Source: dockerfile:docker-compose.yml · Aug 26, 2026
- Docker
- Dockerfile present
Source: dockerfile:docker-compose.yml · Aug 26, 2026
- CLI
- CLI entrypoint
Source: pyproject.toml:[project.scripts] · Aug 26, 2026
- MCP server
- No MCP server detected
Source: repo_scan · Aug 26, 2026
- Languages
- python, javascript
Source: github.language+package.json+pyproject.toml · Aug 26, 2026
Categories
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Aug 26, 2026)
lopment.** The gateway will not start without them. Generate real secrets with `python3 -m mcpgateway.scripts.init_secrets` before first run.Source link
Source: README excerpt (regex_v1, Aug 26, 2026)
--stdio "docker run --rm -i ghcr.io/ibm/fast-time-server:latest -transport=stdio" \Source link
Source: README excerpt (regex_v1, Aug 26, 2026)
## Quick Start: VS Code Dev ContainerSource link
Tags
README
Quick Start - PyPI
ContextForge is published on PyPI as mcp-contextforge-gateway.
⚠️
JWT_SECRET_KEYandAUTH_ENCRYPTION_SECRETare required in every environment — including local development. The gateway will not start without them. Generate real secrets withpython3 -m mcpgateway.scripts.init_secretsbefore first run.
TLDR — single command using uv:
---
### 1 - Install & run (copy-paste friendly)
```bash
---
# 1️⃣ Create an isolated env and install from PyPI
mkdir mcpgateway && cd mcpgateway
python3 -m venv .venv && source .venv/bin/activate
pip install --upgrade pip
pip install mcp-contextforge-gateway
---
# 1️⃣ Isolated env + install from PyPI
mkdir mcpgateway ; cd mcpgateway
python3 -m venv .venv ; .\.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install mcp-contextforge-gateway
---
# 1️⃣ Isolated env + install from PyPI using uv
mkdir mcpgateway ; cd mcpgateway
uv venv
.\.venv\Scripts\activate
uv pip install mcp-contextforge-gateway
---
# 1️⃣ Spin up the sample MCP time server using mcpgateway.translate & docker (replace docker with podman if needed)
python3 -m mcpgateway.translate \
--stdio "docker run --rm -i ghcr.io/ibm/fast-time-server:latest -transport=stdio" \
--expose-sse \
--port 8003
---
## Quick Start - Containers
Use the official OCI image from GHCR with **Docker** *or* **Podman**.
Please note: Currently, arm64 is not supported on production. If you are e.g. running on MacOS with Apple Silicon chips (M1, M2, etc), you can run the containers using Rosetta or install via PyPi instead.
---
### 🚀 Quick Start - Docker Compose
> **Important:** `docker compose up -d` does **not** build the gateway image locally by default — it uses the pre-built image from GHCR. The compose file includes a `build:` block as a fallback, but local builds require a hermetic wheel closure that is only produced by the CI pipeline. If you see a `cryptography` or dependency resolution error during build, you are hitting this — just pull the image instead (step 2 below handles this automatically).
>
> You also **must** have a `.env` file with real secrets before running `docker compose up -d`. The gateway will not start with placeholder values.
Get a full stack running with PostgreSQL and Redis:
```bash
---
### ☸️ Quick Start - Helm (Kubernetes)
Deploy to Kubernetes with enterprise-grade features:
```bash
---
# Check deployment status
kubectl get pods -l app.kubernetes.io/name=mcp-context-forge
---
### 🐳 Docker (Single Container)
```bash
---
# JWT_SECRET_KEY must be set — see "Docker (Single Container)" for how to generate it
export MCPGATEWAY_BEARER_TOKEN=$(python3 -m mcpgateway.utils.create_jwt_token \
--username admin@example.com --exp 10080 --secret "${JWT_SECRET_KEY}")
export MCP_AUTH="Bearer ${MCPGATEWAY_BEARER_TOKEN}"
export MCP_SERVER_URL='http://localhost:4444/servers/UUID_OF_SERVER_1/mcp'
export MCP_TOOL_CALL_TIMEOUT=120
export MCP_WRAPPER_LOG_LEVEL=DEBUG # or OFF to disable logging
docker run --rm -i \
-e MCP_AUTH="${MCP_AUTH}" \
-e MCP_SERVER_URL=http://host.docker.internal:4444/servers/UUID_OF_SERVER_1/mcp \
-e MCP_TOOL_CALL_TIMEOUT=120 \
-e MCP_WRAPPER_LOG_LEVEL=DEBUG \
ghcr.io/ibm/mcp-context-forge:latest \
python3 -m mcpgateway.wrapper
Quick Start: VS Code Dev Container
Clone the repo and open in VS Code—it will detect .devcontainer and prompt to "Reopen in Container". The container includes Python 3.11, Docker CLI, and all project dependencies.
For detailed setup, workflows, and GitHub Codespaces instructions, see Developer Onboarding.
Installation
make venv install-dev # create .venv + install deps + build Admin UI
make serve # gunicorn on :4444
Rust workspace note
For agents
This page has a .md twin and JSON over the API.