Skip to main content
Glama
puspoaditya

Cloudflare Workers AI MCP Server

Cloudflare Workers AI MCP Server

Model Context Protocol (MCP)-Server, der KI-Agenten Zugriff auf Cloudflare Workers AI bietet – serverlose LLM-Inferenz, Einbettungen und Bildgenerierung mit einem großzügigen kostenlosen Tarif.

Tools

Tool

Beschreibung

list_models

Listet unterstützte Chat-, Einbettungs- und Bildmodelle auf

chat_completion

LLM-Chatabschluss (Llama 3.3 70B, Llama 3.1 8B, Llama 4 Scout, Qwen Coder 32B, DeepSeek R1 Distill)

embed_text

Text-Einbettungen (BGE small/base)

generate_image

Bildgenerierung (Flux 1 Schnell) → Base64-Bild (PNG/JPEG)

Related MCP server: Remote MCP Server Authless

Setup

  1. Erstellen Sie ein Cloudflare-API-Token mit der Workers AI-Berechtigung: https://dash.cloudflare.com/profile/api-tokens

  2. Holen Sie sich Ihre Account-ID (rechte Seitenleiste des Cloudflare-Dashboards oder das /accounts/{id}-Segment einer beliebigen Dashboard-URL)

  3. Exportieren Sie die Umgebungsvariablen:

export CLOUDFLARE_ACCOUNT_ID="your-account-id"
export CLOUDFLARE_API_TOKEN="your-api-token"

Ausführen

npm install && npm run build
npm start   # stdio MCP server

Claude Desktop

Fügen Sie zu claude_desktop_config.json hinzu:

{
  "mcpServers": {
    "cloudflare-workers-ai": {
      "command": "node",
      "args": ["/absolute/path/to/cloudflare-workers-ai-mcp/dist/index.js"],
      "env": {
        "CLOUDFLARE_ACCOUNT_ID": "your-account-id",
        "CLOUDFLARE_API_TOKEN": "your-api-token"
      }
    }
  }
}

Cursor / VS Code / andere MCP-Clients

Weisen Sie den Client auf denselben Befehl hin (node dist/index.js mit den beiden Umgebungsvariablen).

OpenClaw

OpenClaw unterstützt MCP-Server – fügen Sie denselben Befehl zur MCP-Konfiguration hinzu.

Beispiel-Prompts

  • „Fassen Sie diesen Text mit dem Llama 3.3 70B-Modell auf Cloudflare Workers AI zusammen"

  • „Generieren Sie ein Bild eines Rotfuchses im Schneesturm"

  • „Betten Sie diese 3 Sätze für eine Ähnlichkeitssuche ein"

Modelle (live verifiziert)

Chat: POST /ai/v1/chat/completions (OpenAI-kompatibel) · Einbettungen & Bilder: POST /ai/run/{model} (nativ)

Modelle – Chat: @cf/meta/llama-3.3-70b-instruct-fp8-fast · @cf/meta/infire-llama-3.1-8b-instruct · @cf/meta/llama-4-scout-17b-16e-instruct · @cf/qwen/qwen2.5-coder-32b-instruct · @cf/deepseek-ai/deepseek-r1-distill-qwen-32b

Einbettungen: @cf/baai/bge-small-en-v1.5 · @cf/baai/bge-base-en-v1.5

Bilder: @cf/black-forest-labs/flux-1-schnell

Hinweis: @cf/meta/llama-3.1-8b-instruct wurde von Cloudflare (2026-05-30) veraltet – verwenden Sie @cf/meta/infire-llama-3.1-8b-instruct.

Test

npm test   # unit tests (mocked fetch) + protocol test

Lizenz

MIT – erstellt von puspoaditya.

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

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

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Free public MCP for AI agents — 193 tools, 44 workflows. No API key.

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

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/puspoaditya/cloudflare-workers-ai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server