Cloudflare MCP Server — Code Mode
Cloudflare MCP Server — Code Mode
Serverless-Starter zum Erstellen eines entfernten Model Context Protocol (MCP)-Servers auf Cloudflare Workers.
Das Projekt wurde für den Code-Modus konzipiert: Clients können Fähigkeiten entdecken und Werkzeugaufrufe aus strukturierten Antworten zusammensetzen. Beliebige Codeausführung ist im Starter nicht aktiviert; sie darf erst dann hinzugefügt werden, wenn Sandbox, Authentifizierung, Limits und Auditierung definiert wurden.
Ziel
An der Edge über Cloudflare Workers ausführen.
Einen MCP-Endpunkt unter
/mcpbereitstellen.Werkzeuge klein, typisiert und komponierbar halten.
OAuth-Authentifizierung und Cloudflare-Bindings vorbereiten.
Zu sicherer Codeausführung in einer isolierten Sandbox weiterentwickeln.
Related MCP server: Adi MCP
Lokale Entwicklung
Voraussetzungen: Node.js 18+ und ein Cloudflare-Konto mit aktivierten Workers.
npm install
npm run devDer lokale Server ist unter http://localhost:8788/mcp erreichbar.
Zum Validieren mit dem MCP Inspector:
npx @modelcontextprotocol/inspector@latestKonfiguration
npx wrangler login
npm run deployNach dem Deployment wird der Endpunkt sein:
https://<worker>.<account>.workers.dev/mcpStruktur
src/index.ts: HTTP-Routing des Workers.src/mcp.ts: MCP-Server und Werkzeuge.wrangler.jsonc: Worker-Konfiguration.PLAN.md: Implementierungsplan und Abnahmekriterien.
Sicherheit
Fügen Sie kein eval, keine new Function und keinen Code-Interpreter direkt in den Worker ein. Für den Code-Modus mit realer Ausführung verwenden Sie eine geeignete Sandbox, starke Authentifizierung, API-Allowlists, CPU-/Speicher-/Zeitlimits, Isolierung pro Benutzer und Logs ohne Geheimnisse.
Nächste Schritte
Siehe 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