Best for
- Developers and operators managing Cloudflare resources through an agent.
- Users who need access to many Cloudflare API endpoints with low context usage.
- CI/CD and automation workflows.
The source identifies this as an official remote MCP server maintained by Cloudflare. It covers a large portion of the Cloudflare API while using Code Mode to reduce context usage. Configure Token permissions carefully before use.
Cloudflare MCP Server provides access to the Cloudflare API through Code Mode and can search Cloudflare developer documentation. The API specification remains on the server while the agent writes JavaScript to search endpoints and execute API requests. Supported products include Workers, KV, R2, D1, Pages, DNS, Firewall, Load Balancers, Stream, Images, AI Gateway, Vectorize, Access, and Gateway.
Add the provided JSON configuration to a client that supports remote HTTP MCP servers, then connect to https://mcp.cloudflare.com/mcp. On first connection, use OAuth to authorize and select permissions, or provide a Cloudflare API Token. API Tokens are suitable for CI/CD and automation. To expose individual endpoint tools, append ?codemode=false to the URL.
{"mcpServers":{"cloudflare-api":{"type":"http","url":"https://mcp.cloudflare.com/mcp"}}}