Purpose: This is a Model Context Protocol (MCP) server that enables AI agents to call Cloudflare Workers AI's serverless inference services, including large language model chat, text embeddings, and image generation.
Main capabilities: Chat completions go through POST /ai/v1/chat/completions (OpenAI-compatible); embeddings and image generation go through POST /ai/run/{model} (native interface). Verified chat models that are live include @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; embedding models are @cf/baai/bge-small-en-v1.5, @cf/baai/bge-base-en-v1.5; the image model is @cf/black-forest-labs/flux-1-schnell. Note that @cf/meta/llama-3.1-8b-instruct has been deprecated by Cloudflare (2026-05-30), and @cf/meta/infire-llama-3.1-8b-instruct should be used instead.
How to use: First create an API Token with Workers AI permissions in Cloudflare, and obtain the Account ID (the right sidebar in the console or the /accounts/{id} segment of the dashboard URL); then export two environment variables and run with node dist/index.js. You can add the configuration to claude_desktop_config.json; MCP clients such as Cursor and VS Code also point to the same command and two environment variables; OpenClaw supports MCP and can add the same command. Example prompts include summarizing text with Llama 3.3 70B, generating an image of a red fox in a snowstorm, and embedding three sentences for similarity search.
Use cases: Development scenarios that need to connect AI agents to chat, vector embedding, and text-to-image capabilities.
Limitations: Official materials do not provide specific free quota figures, rate limits, deployment details, or complete configuration examples; model availability and deprecation dates are subject to Cloudflare. The project is under the MIT license, author puspoaditya.