Cloudflare MCP Server — Code Mode
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cloudflare MCP Server — Code ModeWhat tools are available on this MCP server?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cloudflare MCP Server — Code Mode
Serverless starter for building a remote Model Context Protocol (MCP) server on Cloudflare Workers.
The project is designed for code mode: clients can discover capabilities and compose tool calls with structured responses. Arbitrary code execution is not enabled in the starter; it should only be added after defining a sandbox, authentication, limits, and auditing.
Goals
Run on the edge via Cloudflare Workers.
Expose an MCP endpoint at
/mcp.Keep tools small, typed, and composable.
Prepare OAuth authentication and Cloudflare bindings.
Evolve to secure code execution in an isolated sandbox.
Related MCP server: Adi MCP
Local development
Prerequisites: Node.js 18+ and a Cloudflare account with Workers enabled.
npm install
npm run devThe local server is available at http://localhost:8788/mcp.
To validate with the MCP Inspector:
npx @modelcontextprotocol/inspector@latestDeploy
npx wrangler login
npm run deployAfter deploying, the endpoint will be:
https://<worker>.<account>.workers.dev/mcpStructure
src/index.ts: Worker HTTP routing.src/mcp.ts: MCP server and tools.wrangler.jsonc: Worker configuration.PLAN.md: implementation plan and acceptance criteria.
Security
Do not add eval, new Function, or a code interpreter directly to the Worker. For code mode with real execution, use an appropriate sandbox, strong authentication, API allowlists, CPU/memory/time limits, per-user isolation, and logs without secrets.
Next steps
See 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