IBM/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...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 57 minutes ago
Added to GitGenius on March 6th, 2026
Created on May 8th, 2025
Open Issues & Pull Requests: 1,245 (+1)
Number of forks: 832
Total Stargazers: 4,357 (+1)
Total Subscribers: 34 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.5 hours
Mean response time: 13.1 days
90th percentile: 33.8 days
Tracked items: 2,788

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 16% of open issues come from outside the core team — the tracker reads mainly as internal planning. Work labelled "performance" is answered fastest, typically in about an hour, while "chore" waits about 24 hours. Almost all tracked open issues have seen activity in the last three months. Only 5% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 955
New in 7 days: 65
Closed in 7 days: 101
Avg open age: 106 days
Stale 30+ days: 507
Stale 90+ days: 11

Recent activity

Opened in 7 days: 65
Closed in 7 days: 101
Comments in 7 days: 62
Events in 7 days: 1,033

Top labels

  • enhancement (1,045)
  • bug (1,032)
  • SHOULD (706)
  • triage (691)
  • python (623)
  • security (509)
  • chore (442)
  • ui (436)

Most active issues this week

Detailed Description

ContextForge is an open source registry and proxy developed by IBM that federates Model Context Protocol (MCP) servers, Agent-to-Agent (A2A) services, and REST/gRPC APIs into a unified endpoint. Written in Python, it provides centralized governance, discovery, and observability for AI infrastructure while optimizing agent and tool calling through plugin extensibility. The project is distributed via PyPI as mcp-contextforge-gateway and available as Docker containers from GHCR, with deployment options ranging from local development to multi-cluster Kubernetes environments.

The gateway layer provides protocol flexibility by federating any MCP server or REST API while allowing users to select their MCP protocol version. It virtualizes non-MCP services as MCP-compliant servers through automatic service discovery and method introspection, with specific support for gRPC-to-MCP translation via server reflection protocol. A REST-to-MCP tool adapter wraps REST APIs into tools with automatic JSON Schema extraction, header and token support, and configurable retry, timeout, and rate-limit policies. The platform maintains unified registries for prompts using Jinja2 templates with multimodal support and versioning, resources with URI-based access and caching, and tools with input validation and concurrency controls.

The Admin UI, built with HTMX 2.0.3 and Alpine.js, provides real-time log viewing with filtering and search capabilities. Authentication options include Basic, JWT, and custom schemes. OpenTelemetry observability enables vendor-agnostic distributed tracing across federated gateways with support for multiple backends including Phoenix, Jaeger, Zipkin, Tempo, DataDog, and New Relic. The platform includes automatic instrumentation of tools, prompts, resources, and gateway operations with LLM-specific metrics for token usage and cost tracking.

The platform supports multiple transport protocols including HTTP, JSON-RPC, WebSocket, Server-Sent Events with configurable keepalive, stdio, and streamable-HTTP. Built-in features include authentication middleware, rate limiting, automatic retries, and reverse proxy capabilities for REST services. The system scales through Redis-backed caching and federation, with support for user-scoped OAuth tokens and unconditional X-Upstream-Authorization header support. Deployment is supported via PyPI installation, Docker containers, Docker Compose for full stacks with PostgreSQL and Redis, and Helm charts for Kubernetes with enterprise-grade features.