Cloudflare API MCP Server
Connects AI agents to the Cloudflare API and documentation to inspect settings and manage authorized infrastructure resources.
Connect MCP
Copy the setup for your client. YourAgents does not run it or ask for tokens.
After adding the server, sign in through your client and review the requested permissions.
Codex
Run the command in your terminal, then sign in if prompted.
codex mcp add cloudflare --url https://mcp.cloudflare.com/mcp
codex mcp login cloudflare
Claude Code
Run the command in your terminal, then sign in if prompted.
claude mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp
# Claude Code: /mcp
Cursor · .cursor/mcp.json
If you already have a config file, merge only this server entry and keep the other settings.
{
"mcpServers": {
"cloudflare": {
"url": "https://mcp.cloudflare.com/mcp"
}
}
}
VS Code · .vscode/mcp.json
If you already have a config file, merge only this server entry and keep the other settings.
{
"servers": {
"cloudflare": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}
Description
Cloudflare API MCP Server is the official remote endpoint that lets AI agents access the Cloudflare API through Model Context Protocol. It exposes infrastructure operations without requiring a separate connector for each product. Its tools search for API operations, execute authorized requests, and retrieve developer documentation. They can work with account services such as DNS, Workers, R2, and security settings when the connected account allows it. MCP clients connect to mcp.cloudflare.com/mcp over Streamable HTTP. Interactive users can authorize with OAuth and select permissions, while automation can use an appropriately scoped API token. Code Mode executes generated API calls in an isolated environment. A Cloudflare account and relevant resource permissions are required. Changes can affect production infrastructure, so tokens and requested operations need careful review. Costs of underlying Cloudflare services depend on the products used and are not a separate stated MCP plan.