Skip to main content
Glama
romeucampos

Cloudflare MCP Server — Code Mode

by romeucampos

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 /mcp bereitstellen.

  • 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 dev

Der lokale Server ist unter http://localhost:8788/mcp erreichbar.

Zum Validieren mit dem MCP Inspector:

npx @modelcontextprotocol/inspector@latest

Konfiguration

npx wrangler login
npm run deploy

Nach dem Deployment wird der Endpunkt sein:

https://<worker>.<account>.workers.dev/mcp

Struktur

  • 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.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    Not graded
    quality
    B
    maintenance
    A 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.
  • F
    license
    Not graded
    quality
    C
    maintenance
    A 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.

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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