fold
OfficialProvides access to Cloudflare's MCP documentation server, enabling querying of Cloudflare docs through the gateway.
Provides access to Git repositories via the GitMCP upstream server, exposing version control tools through the gateway.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@foldlist all available tools across all connected MCP servers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fold
fold is the one. fold.run is the execution.
The high-performance enterprise MCP gateway: one governed endpoint between every MCP client and every MCP server. fold sits in front of any number of upstream MCP servers — in any language, on any SDK, from any team or vendor — providing federation, enterprise auth, policy, caching, rate limiting, and audit, while staying automatically aligned with the MCP specification, SEPs, and official SDK releases.
Use cases
Unify a federation. Acquisitions, child orgs, and teams each ship their own MCP servers; fold presents them as one virtual server with namespaced tools — no team rewrites anything.
Draw the security boundary. One choke point for authentication, deny-by-default tool allowlists, per-principal visibility, and an audit event for every request including denials.
Insulate protocol eras. fold speaks 2026-07-28 natively and translates in both directions — teams migrate off legacy SDKs on their own schedule while clients never notice.
Broker credentials. Clients hold one token with fold as audience; fold exchanges it per upstream (RFC 8693) or injects service credentials — API keys never reach agents.
Protect fragile services. SEP-2549 caching, global and per-upstream rate limits, and circuit breakers stand between agent traffic storms and your internal systems.
Govern vendor MCP servers. Put third-party/SaaS MCP endpoints behind your own auth, policy, and audit instead of scattering per-user API keys.
Expose tools outward, carefully. Offer partners or customers a curated, policy-scoped subset of internal tools on one hardened endpoint — self-hosted or at the edge on Cloudflare Workers.
Related MCP server: Master MCP Server
Highlights
Native 2026-07-28 stateless core. Routes on the
Mcp-Method/Mcp-Nameheaders (SEP-2243) without parsing request bodies; responses stream through untouched.Legacy compatible. Stateful 2025-era clients and upstream servers work through the gateway during the deprecation window.
Portable. One TypeScript core built on web-standard APIs, deployable on Node.js (Docker/k8s) and Cloudflare Workers.
Conformant, provably. The official
@modelcontextprotocol/conformancesuite runs against fold fronting a reference server on every merge — 40/40 scenarios on Node.js AND on Cloudflare Workers (workerd). Receipt: latest CI run (conformancejob), or any run in Actions.Fast, measurably. < 2 ms p50 added latency on the passthrough path (CI-gated on every merge), ~7,500 req/s sustained per instance with p99 ≤ 16 ms. Methodology, full tables, and reproduce-it-yourself commands: docs/benchmarks.md.
Enterprise-governed. OAuth 2.0 resource server (RFC 9207/8707/9728), Enterprise-Managed Authorization (ID-JAG exchange), per-upstream token exchange (RFC 8693), deny-by-default tool allowlists with per-principal list filtering, and an audit event for every request including denials.
Try it now
A live demo gateway runs at https://demo.fold.run/mcp — Cloudflare's
modern 2026-07-28 docs server, GitMCP (a stateful 2025-era server), and a
task-minting demo server, unified behind one endpoint. Point any MCP client
at it:
https://demo.fold.run/mcpYou'll see cfdocs__*, git__*, and jobs__* tools side by side; the legacy
upstream is translated live through a held session in a Durable Object. Call
jobs__start_job, poll it with tasks/get, or watch subscriptions/listen —
long-running work flows across the federation with fold routing every poll to
the owning server. Rate-limited, unauthenticated, no warranty.
Quick start
cat > fold.config.json <<'EOF'
{
"upstreams": [
{ "id": "github", "url": "https://mcp.example.com/mcp", "namespace": "github" }
]
}
EOF
npx @fold-run/gateway --config fold.config.json --port 8080
# MCP endpoint: http://localhost:8080/mcpEmbedding in your own Node service is one call: createFoldGateway(config) from the same package.
Edge deployment (same core, Durable Object-backed sessions and rate limits):
cd apps/gateway-workers
# set FOLD_CONFIG in wrangler.jsonc vars (or a secret), then:
npx wrangler deployA single upstream without a namespace runs in zero-copy passthrough mode. Multiple upstreams require namespaces; tools are exposed as {namespace}__{name}.
A federated multi-org config — each upstream owned by a different team, in any language:
{
"upstreams": [
{
"id": "github-tools",
"url": "https://mcp.platform.acme.com/mcp",
"namespace": "gh",
"owner": { "org": "acme-platform", "team": "devex" }
},
{
"id": "ml-search",
"url": "https://mcp.ml.acquired-co.com/mcp",
"namespace": "search",
"owner": { "org": "acquired-co", "team": "ml" },
"rateLimit": { "requestsPerMinute": 600 },
"circuitBreaker": { "failureThreshold": 5, "halfOpenAfterMs": 30000 }
}
],
"server": { "rateLimit": { "requestsPerMinute": 6000 } }
}fold fans list requests out across all upstreams, merges and namespaces the results (honoring SEP-2549 ttlMs/cacheScope caching), synthesizes server/discover for the virtual server, degrades gracefully when an upstream is down (_meta["run.fold/partialFailure"]), and short-circuits unhealthy upstreams with a per-upstream circuit breaker. Set REDIS_URL to share cache, rate-limit, and breaker state across instances.
Repository layout
Path | Purpose |
| Shared types: runtime ports, request context, middleware, hooks |
| Gateway engine: pipeline, routing, proxying, stores |
| Wire helpers: header routing, namespacing, version detection |
| Zod config schema |
| OAuth resource server, EMA token endpoint, upstream credentials |
| Allowlist policy engine + per-principal list filtering |
| Audit events + sinks |
| Held SDK sessions to pre-2026 legacy upstreams |
| Node.js adapter (in-memory or Redis stores) |
| Cloudflare Workers adapter (KV + Durable Objects) |
| Edge artifact ( |
| SDK-built fixture upstreams + integration harness |
| The published artifact: |
| Source of truth for spec/SEP/SDK alignment status |
Portable packages may only use web-standard APIs (enforced by pnpm lint). Only runtime-* packages touch node:* / cloudflare:*.
Development
pnpm check # boundaries + typecheck + tests
pnpm test # unit + integration (real SDK client/server fixtures)Conformance gate (requires the conformance repo's everything-server as upstream):
npx @modelcontextprotocol/conformance server --url http://localhost:8080/mcpDocumentation
Live docs: docs.fold.run — searchable, with /llms.txt for AI agents. Source lives in apps/docs; in-repo copies below.
Configuration reference — upstreams, auth, policy, audit, server
Deployment — Node/Docker, Cloudflare Workers, observability, production checklist
Architecture — pipeline, era translation, package boundaries, spec alignment
Benchmarks — latency gate + throughput sweep: methodology, numbers, how to reproduce
SPEC_ALIGNMENT.md — generated per-SEP coverage
License
Apache-2.0 © fold.run
Status
All planned milestones are shipped: federation + caching/rate limiting, enterprise auth (EMA, token exchange, policy) with audit and OpenTelemetry, bidirectional legacy↔stateless translation (including the durable MRTR parking bridge), federated tasks with the subscriptions/listen fan-in, the Cloudflare Workers runtime, and the automated spec/SEP/SDK alignment pipeline. Per-SEP coverage lives in spec-alignment.json / SPEC_ALIGNMENT.md — every row is implemented or not-applicable.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceA feature-rich Model Context Protocol gateway that federates MCP and REST services, unifying discovery, authentication, and transport protocols while providing virtualization of legacy APIs as MCP-compliant tools.Last updated
- Flicense-quality-maintenanceAggregates multiple MCP servers behind a single, secure endpoint with unified tool/resource discovery, OAuth authentication, and resilient request routing. Enables users to manage and interact with multiple MCP backends through one centralized interface with load balancing and circuit breakers.Last updated2
- Flicense-qualityDmaintenanceA centralized gateway platform for aggregating and managing multiple Model Context Protocol (MCP) servers through a single Electron-based interface. It provides enterprise-grade security features including policy-based access control, human-in-the-loop approval workflows, and comprehensive audit logging.Last updated
- Flicense-qualityDmaintenanceA centralized gateway and router that integrates multiple MCP servers into a single endpoint with built-in policy enforcement and secret management. It features a Web GUI for managing tool access, audit logs, and multi-environment configurations across various sub-servers.Last updated
Related MCP Connectors
Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.
MCP gateway federating 21 biomedical MCP servers behind one endpoint: gnomAD, ClinVar, HPO, VEP.
Hosted weather data MCP for discovery, validation, and OAuth-protected GribStream queries.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fold-run/fold'
If you have feedback or need assistance with the MCP directory API, please join our Discord server