Cloudflare MCP Server — Code Mode
Cloudflare MCP Server — Code Mode
Plantilla serverless para construir un servidor remoto Model Context Protocol (MCP) en Cloudflare Workers.
El proyecto está diseñado para code mode: los clientes pueden descubrir capacidades y componer llamadas de herramientas con respuestas estructuradas. La ejecución arbitraria de código no está habilitada en la plantilla inicial; solo debe añadirse después de definir sandbox, autenticación, límites y auditoría.
Objetivos
Ejecutar en el borde mediante Cloudflare Workers.
Exponer un endpoint MCP en
/mcp.Mantener herramientas pequeñas, tipadas y componibles.
Preparar autenticación OAuth y bindings de Cloudflare.
Evolucionar hacia una ejecución segura de código en sandbox aislado.
Related MCP server: Adi MCP
Desarrollo local
Requisitos previos: Node.js 18+ y una cuenta de Cloudflare con Workers habilitado.
npm install
npm run devEl servidor local está disponible en http://localhost:8788/mcp.
Para validar con el MCP Inspector:
npx @modelcontextprotocol/inspector@latestDespliegue
npx wrangler login
npm run deployDespués del despliegue, el endpoint será:
https://<worker>.<account>.workers.dev/mcpEstructura
src/index.ts: enrutamiento HTTP del Worker.src/mcp.ts: servidor MCP y herramientas.wrangler.jsonc: configuración del Worker.PLAN.md: plan de implementación y criterios de aceptación.
Seguridad
No añadas eval, new Function ni un intérprete de código directamente en el Worker. Para code mode con ejecución real, usa una sandbox apropiada, autenticación fuerte, allowlists de APIs, límites de CPU/memoria/tiempo, aislamiento por usuario y registros sin secretos.
Próximos pasos
Consulta PLAN.md.
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
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling tool creation and integration with MCP clients like Claude Desktop and Cloudflare AI Playground.
- FlicenseNot gradedqualityBmaintenanceA remote MCP server that exposes tools from many services (X, LinkedIn, GitHub, Gmail, Notion, etc.) through a single endpoint on Cloudflare Workers, enabling unified access to third-party APIs via natural language.
- FlicenseNot gradedqualityCmaintenanceDeploy a stateless remote MCP server on Cloudflare Workers without authentication, enabling tool calls via MCP protocol.
- FlicenseNot gradedqualityCmaintenanceA stateless remote MCP server on Cloudflare Workers without authentication, supporting custom tool registration and integration with MCP clients like Cloudflare AI Playground and Claude Desktop.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Remote MCP for GenAI span mapping, provider normalization, dashboard schemas, and receipts.
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/romeucampos/cloudflare-mcp-server-code-mode'
If you have feedback or need assistance with the MCP directory API, please join our Discord server