The official Python library for the cloudflare API
The official Python library for the cloudflare API
The Cloudflare Python library provides convenient access to the Cloudflare REST API from any Python 3.9+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.
Once Cloudflare is connected, these are the calls the assistant has available:
Retries — Certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a networkTimeouts — By default requests time out after 1 minute. You can configure this with a timeout option, which accepts a float or anLogging — We use the standard library logging modulePython 3.9 or higher.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
{
"mcpServers": {
"cloudflare-1": {
"command": "uvx",
"args": ["cloudflare"],
"env": {
"CLOUDFLARE_LOG": "your-value",
"CLOUDFLARE_API_TOKEN": "your-value",
"CLOUDFLARE_BASE_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Python 3.9 or higher.
| Variable | Description | Required |
|---|---|---|
| CLOUDFLARE_LOG | Configuration value read at startup. | Optional |
| CLOUDFLARE_API_TOKEN | Credential the server authenticates with. | Yes |
| CLOUDFLARE_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.
AWS Labs' official server suite — current AWS docs, CDK guidance, cost analysis and service tools.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.
kubectl with a conversational interface — inspect pods, read logs, diagnose clusters and manage workloads.