
Cloudflare MCP Server
github.com/cloudflare/mcp-server-cloudflare- Category
- Developer Tools
- Rank
- No. 357Tools index
Previous survey · No. 362 ·
- Listed in
- #11 Connect tools with MCP
- Pricing
- Free
- Type
- TOOL
- Use case
- Deployment & Operations
- Interfaces
- MCP
- Builder
- cloudflare
- GitHub
- 4.3k stars
- Latest release
- workers-observability@0.5.5
- Date
About
Cloudflare's official MCP servers: manage Workers, KV, R2, D1 and DNS, read analytics and logs, and search the Cloudflare docs from any MCP client.
What it does
This is a suite of specialized remote endpoints that lets AI clients inspect, reason about, and act within a Cloudflare account. Each request gets a fresh server instance over stateless Streamable HTTP. Users choose an endpoint for a particular product area, then interact through natural language with curated, typed operations.
Why it's ranked here
The project pairs unusually broad product coverage with a disciplined shared transport layer. Its focused servers give clients clearer operations than a general API executor, while request-scoped instances, authentication validation, bounded request bodies, migration responses, and centralized observability show serious production intent. The main catch is fragmentation: users must select the right endpoint and permissions.
What's good
The product-specific design keeps interactions guided and typed. Remote-server clients can connect directly, without running the service locally. A shared handler standardizes authentication, account selection, metrics, error reporting, CORS behavior, and transport compatibility. Legacy connection attempts receive an actionable migration response instead of a vague failure. The repository also configures tests across applications and shared packages.
Tradeoffs
These servers favor depth within one product area, not broad coverage through a small general-purpose toolset. That broader workflow belongs to Cloudflare's separate Code Mode server. Users must provision tokens with suitable scopes, and some capabilities may require a paid Workers plan. Tool-heavy chains, especially observability work, can exhaust a client's context window unless requests stay narrow.
How to use it well
Pick it when an MCP-capable assistant repeatedly works inside one Cloudflare domain and benefits from constrained, typed operations. Connect only the relevant endpoint, grant the minimum required token scopes, and split investigations into concise steps. Use the separate Code Mode server when work spans many Cloudflare APIs. This suite does not replace a general code-execution interface.
Technical notes+
The root package.json defines a private Apache-2.0 ESM pnpm monorepo using Turbo, TypeScript, Vitest, and Changesets. packages/mcp-common/src/server.ts implements createCloudflareMcpHandler around the Agents SDK handler, creates a fresh McpServer per request, validates AuthPropsSchema, adds account instructions, records metrics, limits POST bodies to 4 MiB, and applies configurable CORS. It maps /sse to the stateless handler while returning a 410 Problem Details migration response for legacy SSE GET requests. packages/mcp-common/src/index.ts exposes the shared account, authentication, registration, request-context, and server surfaces. vitest.config.ts discovers application and package test projects, while apps/autorag/vitest.config.ts demonstrates isolated Workers tests with Miniflare bindings and remote bindings disabled.
Observed
- License
- Apache-2.0
- Primary language
- TypeScript
- Packaging
- Private ESM pnpm monorepo managed with Turbo
- Interface
- Remote MCP servers over stateless Streamable HTTP
- Client support
- Any MCP client with remote-server support, plus the OpenAI Responses API
- Runtime target
- Cloudflare Workers
- Testing
- Vitest projects cover applications and shared packages, with Workers tests using Miniflare
Read from README.md, package.json, packages/mcp-common/src/index.ts, packages/mcp-common/src/server.ts, packages/mcp-observability/src/index.ts, vitest.config.ts, apps/autorag/types.d.ts, apps/graphql/types.d.ts, apps/demo-day/types.d.ts, apps/auditlogs/types.d.ts, apps/ai-gateway/types.d.ts, apps/dex-analysis/types.d.ts, apps/autorag/vitest.config.ts, apps/dns-analytics/types.d.ts, apps/graphql/vitest.config.ts.
Tech Stack
Media

Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.