Cloudflare API logo
Developer ToolsAuth: OAuth

Cloudflare API MCP Server

Connect Cloudflare API to your AI agents with the Cloudflare API MCP server.

Updated

What is Cloudflare API MCP?

The Cloudflare API MCP server is a Model Context Protocol server that connects Cloudflare API to AI agents and assistants as a set of tools. With it connected, an agent can work with Cloudflare API (full cloudflare api — 2,500+ endpoints via code mode) directly — instead of you copying data in and out by hand.

It is a remote MCP server that uses OAuth, so you point your client at the server URL, authorize once, and the Cloudflare API tools become available to the model.

Connect the Cloudflare API MCP server

Connect Cloudflare API MCP to Claude Code

  1. 1

    Add the server

    Use `claude mcp add` with the Cloudflare API MCP server URL (or its `npx` command), following the official docs.

  2. 2

    Authorize

    Complete authentication (OAuth) so Claude Code can call the server.

  3. 3

    Verify

    Ask Claude to use a Cloudflare API tool to confirm the connection is live.

Connect Cloudflare API MCP to Cursor

  1. 1

    Open MCP settings

    In Cursor, go to Settings → MCP → Add new server.

  2. 2

    Add Cloudflare API

    Provide the Cloudflare API MCP server URL or command and complete authentication.

  3. 3

    Test

    Reference Cloudflare API from chat to confirm Cursor can reach the tools.

Using Cloudflare API MCP with Gamut

On Gamut, the Cloudflare API MCP server becomes a tool your agents use inside an automated, event-driven workflow — triggered by an event or a schedule, acting through Cloudflare API and your other connected MCP servers, with the connection managed by Gamut rather than a local config file.

Frequently asked questions

What is the Cloudflare API MCP server?

It is a Model Context Protocol server that exposes Cloudflare API to AI agents as tools so they can work with it (full cloudflare api — 2,500+ endpoints via code mode).

How do I connect the Cloudflare API MCP server?

Point your MCP client (Claude, Cursor, or Gamut) at the Cloudflare API MCP server URL and complete authentication (OAuth). See the official documentation for the exact URL and scopes.

Can I use Cloudflare API MCP with Gamut?

Yes — Gamut supports the Cloudflare API MCP server, so your agents can use it as a tool in automated, triggered workflows.