Cloudflare MCP Server
The Cloudflare MCP servers give AI agents access to the Cloudflare developer platform — searching Cloudflare documentation and managing Workers, KV namespaces, R2 buckets, D1 databases, and Hyperdrive configurations. Agents can list, create, inspect, and query these resources across your Cloudflare account.
Install Cloudflare
- Published by
- Official (vendor)
- Transport
- Remote (HTTP)
- Authentication
- OAuth
Claude Desktop, Claude Code and Cursor
Add this to the mcpServers object in your client's
config file, then restart the client.
{
"mcpServers": {
"cloudflare": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}
VS Code uses a different key — show that config
Identical entry, filed under servers rather than
mcpServers. Put it in
.vscode/mcp.json for one workspace.
{
"servers": {
"cloudflare": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}
Before it will answer
Cloudflare publishes a family of servers rather than one: the API server below plus docs, Workers bindings, observability, Radar and a dozen more product-specific endpoints. OAuth redirects you to pick the permissions to grant; an API token sent as a bearer token works for automation.
Tools
d1_database_create
Create a new D1 database in your Cloudflare account.
d1_database_query
Run a SQL query against a specific Cloudflare D1 database.
d1_databases_list
List all of the D1 SQL databases in your Cloudflare account.
hyperdrive_config_create
Create a new Hyperdrive configuration in your account.
hyperdrive_configs_list
List the Hyperdrive configurations in your account.
kv_namespace_create
Create a new KV namespace in your Cloudflare account.
kv_namespace_delete
Delete a KV namespace from your Cloudflare account.
kv_namespace_get
Get the details of a KV namespace in your account.
kv_namespaces_list
List all KV namespaces in your Cloudflare account.
r2_bucket_create
Create a new R2 object-storage bucket in your Cloudflare account.
r2_bucket_get
Get details about a specific Cloudflare R2 bucket.
r2_buckets_list
List the R2 storage buckets in your Cloudflare account.
search_cloudflare_documentation
Search the Cloudflare documentation for up-to-date reference info.
workers_get_worker
Get the configuration details of a specific Cloudflare Worker.
workers_get_worker_code
Get the source code of a specific Cloudflare Worker.
workers_list
List all Workers deployed in your Cloudflare account.