cloudflare-mcp
cloudflare-mcp v1.0.0
Servidor universal del Model Context Protocol (MCP) para todo el ecosistema de Cloudflare. Reemplaza 16 endpoints MCP remotos fragmentados con un único servidor local de alto rendimiento.
Características (7 herramientas unificadas)
cf_dns: Zonas, registros DNS (A, CNAME, TXT, MX, etc.), purga de caché CDNcf_compute: Cloudflare Workers, almacenamiento clave-valor KV, ejecución de base de datos SQL D1 sin servidorcf_storage: Cubos de R2 Object Storage, consultas a la base de datos vectorial Vectorizecf_ai: Inferencia de Workers AI (Llama, DeepSeek, Embeddings), registros y telemetría de AI Gatewaycf_security: Túneles Zero Trust (cloudflared), reglas de firewall WAF, registros de auditoríacf_radar: Escáner de URL de Radar, análisis global de tráfico/ataques, consultas GraphQLcf_api: Puerta de enlace REST API universal (accede directamente a cualquiera de los más de 2.500 endpoints de Cloudflare)
Related MCP server: mcp-server-cloudflare
Configuración
Establece tu token de API de Cloudflare en tu entorno o guárdalo en ~/.secrets/cloudflare-token.txt:
export CLOUDFLARE_API_TOKEN="your-cloudflare-api-token"
export CLOUDFLARE_ACCOUNT_ID="your-account-id" # Optional, automatically discovered if omittedInstalación en clientes MCP (Claude Desktop, OpenCode, Cursor, Windsurf)
Opción 1: Instalación inmediata mediante uvx (Recomendada)
{
"mcpServers": {
"cloudflare": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Steph-ux/cloudflare-mcp.git", "cloudflare-mcp"]
}
}
}Opción 2: Mediante pip install
pip install git+https://github.com/Steph-ux/cloudflare-mcp.gitLuego, en tu configuración de MCP:
{
"mcpServers": {
"cloudflare": {
"command": "cloudflare-mcp"
}
}
}Opción 3: Clon local (Desarrollo)
{
"mcpServers": {
"cloudflare": {
"command": "python",
"args": ["D:\\Steph\\script\\cloudflare-mcp\\server.py"]
}
}
}Ejemplos de uso
1. Gestión de DNS
# List zones:
cf_dns(action='list_zones')
# Create DNS record:
cf_dns(
action='create_record',
zone_id='example.com',
type='A',
name='api',
content='192.168.10.1',
proxied=True
)
# Purge CDN cache:
cf_dns(action='purge_cache', zone_id='example.com', purge_everything=True)2. Base de datos SQL D1 y Workers
# Query D1 SQL database:
cf_compute(
action='d1_query',
database_id='YOUR_D1_DATABASE_ID',
sql='SELECT * FROM users WHERE active = 1 LIMIT 10;'
)
# Store key-value in KV:
cf_compute(
action='kv_put',
namespace_id='YOUR_KV_NAMESPACE_ID',
key_name='session_token',
value='xyz123'
)3. Almacenamiento de objetos R2
# List buckets:
cf_storage(action='list_r2')
# Create bucket:
cf_storage(action='create_r2', bucket_name='my-app-assets', location_hint='weur')4. Inferencia de Workers AI
# Run Llama 3 on Cloudflare edge:
cf_ai(
action='run_model',
model='@cf/meta/llama-3.1-8b-instruct',
prompt='Write a python snippet for async retry logic.'
)5. Escaneo de URL de Radar y seguridad
# Scan URL for malware & phishing via Cloudflare Radar:
cf_radar(action='scan_url', url='https://target-to-scan.com')
# List active Zero Trust Tunnels:
cf_security(action='list_tunnels')6. Puerta de enlace REST universal (cf_api)
# Call any specific Cloudflare v4 REST endpoint:
cf_api(method='GET', path='/user')Pruebas
pytest testsLicencia
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseAqualityAmaintenanceLets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things on your Cloudflare account.21,9244,121Apache 2.0- AlicenseAqualityDmaintenanceMCP server to manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE.13454MIT
- AlicenseNot gradedqualityDmaintenanceA high-performance MCP server providing AI assistants with read-only access to the Cloudflare ecosystem. Query your entire Cloudflare infrastructure using natural language through Claude, Cursor, or any MCP-compatible client.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables managing Cloudflare domains, DNS records, SSL certificates, zone operations, analytics, and cache purging via MCP or CLI.10
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
One PAT, any MCP agent: Vercel, GitHub, Cloudflare, Supabase, GCP — unified dev infra gateway.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Steph-ux/cloudflare-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server