Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Cloud and hosting - official Cloudflare server

Cloudflare API MCP server

Cloudflare's recommended remote MCP server covering the whole Cloudflare API (over 2,500 endpoints) through a Code Mode search-and-execute pattern. It also searches the Cloudflare developer docs. Cloudflare hosts it at https://mcp.cloudflare.com/mcp with OAuth or API key auth.

Last verified 4 tools4 sources

Install

Generic

JSON
{
	"mcpServers": {
		"cloudflare-api": {
			"url": "https://mcp.cloudflare.com/mcp"
		}
	}
}

Tools

docs
Search Cloudflare developer documentation.
search
Write JavaScript to query spec.paths and find endpoints.
execute
Write JavaScript to call cloudflare.request() with the discovered endpoints.
whoami
Return the Cloudflare user or account this connection is authenticated as.

As documented on October 17, 2026. A running server reports its current list through tools/list.

Notes and caveats

  • OAuth is recommended; for CI or automation, pass a Cloudflare user or account API token as a Bearer token (tokens with Client IP Address Filtering are not supported; account tokens need Account Resources : Read). ?codemode=false registers one tool per endpoint (about 244k tokens instead of about 1k).
  • Results are capped at about 6,000 tokens unless ?truncateToolResult=false.
  • Also serves Cloudflare skills over the MCP Skills extension. /sse URLs are aliases for the same Streamable HTTP handler, not the deprecated SSE transport.
  • Cloudflare deprecated its older product servers (AI Gateway, Audit Logs, AutoRAG, DNS Analytics, GraphQL, Logpush, Observability, Radar, Workers Bindings, Workers Builds) in favor of this server.
  • Docs also offer the cloudflare/skills plugin (Claude Code: /plugin marketplace add cloudflare/skills) which bundles the MCP servers.
  • Some features need a paid Workers plan.

FAQ

What does the Cloudflare API MCP server do?

Cloudflare's recommended remote MCP server covering the whole Cloudflare API (over 2,500 endpoints) through a Code Mode search-and-execute pattern. It also searches the Cloudflare developer docs. The vendor documents 4 tools, including docs, search, execute and whoami.

How do I add the Cloudflare API MCP server to an MCP client?

Cloudflare documents a Generic config; copy it from the Generic section of this page.

Does the Cloudflare API MCP server need authentication?

Yes, OAuth or API key. Transport: Streamable HTTP. Status: Unlabelled, last checked October 17, 2026.

Sources

Last verified against 4 Cloudflare pages, then re-checked independently.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.