Skip to content

Cloudflare MCP and API

Cloudflare provides access to Workers, DNS, storage and other services in an authorized account. An agent can inspect service information and work with resources in an authorized account. Sign in to Cloudflare the first time an agent uses the server.

Add to Longwave

Install elsewhere

Install Cloudflare

Choose a harness. These instructions connect to the hosted MCP endpoint shown on this page.

Claude Code

Run this in your terminal. It adds a user-scoped server; use --scope project instead if it should apply only to the current project.

terminal
claude mcp add --scope user --transport http cloudflare https://mcp.cloudflare.com/mcp
access
Connect account

Use Cloudflare on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Sign in to Cloudflare the first time an agent uses the server.
  3. Ask for the result in any thread, for example: “Inspect Worker resources for a project brief”. The agent picks the Cloudflare function and calls it.

Use cases

Questions people ask

Does Cloudflare provide more than one MCP server?

Cloudflare publishes separate servers for different capabilities, including documentation and account services. Each server exposes its own tools. Cloudflare documentation

Can I search Cloudflare documentation through MCP?

Cloudflare provides a documentation MCP server. Its tools search documentation for Cloudflare products and services. Cloudflare documentation

How do I add the Cloudflare MCP server to Claude Code?

Run claude mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp in a terminal. Sign in to Cloudflare the first time an agent uses the server.

Who publishes the Cloudflare MCP server?

Cloudflare publishes the Cloudflare MCP server that Longwave installs.

Use Cloudflare in Longwave

Call Cloudflare from any agent thread, on your machine or in the cloud.

Add to Longwave