Skip to content
MCP server

cloudflare-workers-ai-mcp

MCP server giving AI agents chat, embedding and image tools via Cloudflare Workers AI

Actively maintained

The repository was last updated 105 days ago and is published under MIT.

cloudflare-workers-ai-mcp is an open-source MCP server for cloud and infrastructure. It is available on CLI and API.

Pricing
Open source
Platforms
CLI, API
GitHub stars
0
Last commit
Language
JavaScript

Similar MCP servers

About cloudflare-workers-ai-mcp

This server bridges MCP-compatible clients and Cloudflare's serverless model hosting, so an agent can call language models, text embedding models and an image generator without managing inference infrastructure itself. Four tools cover listing available models, running chat completions, producing embedding vectors and generating images returned as base64 PNG or JPEG data.

Setup requires a Cloudflare account ID and an API token with the Workers AI permission, both passed as environment variables. The server runs over stdio, so it can be attached to Claude Desktop, Cursor, VS Code or any other client that accepts a command-based MCP configuration.

It suits developers who want to give an assistant access to open-weight models such as Llama, Qwen and DeepSeek hosted on Cloudflare, particularly for prototyping against a free tier. The code is MIT licensed and can be run from source.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 4 tools reads data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

list_modelsName suggests: reads
List supported chat, embedding, and image models
chat_completion
LLM chat completion with supported Llama, Qwen and DeepSeek models
embed_text
Text embeddings using BGE small and base models
generate_image
Image generation with Flux 1 Schnell returning base64 image data

What it does

Chat completions
Runs chat prompts against several hosted open-weight models, including Llama 3.3 70B and Qwen Coder 32B.
Text embeddings
Produces vector embeddings from BGE small and base models for similarity search tasks.
Image generation
Creates images with the Flux 1 Schnell model and returns them as base64-encoded data.
Model listing
Exposes a tool that lists the chat, embedding and image models the server supports.
Stdio transport
Runs as a local stdio process that works with common MCP desktop and editor clients.

Good for

  • Summarizing documents inside an agent workflow using a hosted Llama model
  • Generating images from prompts during a conversation with an assistant
  • Creating embeddings for semantic search over a set of sentences
  • Prototyping LLM features on Cloudflare's hosted inference without a separate model server

Pricing

Open source

More servers for the same service

cloudflare-workers-ai-mcp FAQ

How is the server configured?

It reads CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN from environment variables, and the API token needs the Workers AI permission.

Which clients can connect to cloudflare-workers-ai-mcp?

Any MCP client that can launch a command over stdio, such as Claude Desktop, Cursor or VS Code, can point at the built dist/index.js file.

Which models are available?

Chat models include Llama 3.3 70B, Llama 3.1 8B, Llama 4 Scout, Qwen Coder 32B and DeepSeek R1 Distill; embeddings use BGE small and base; images use Flux 1 Schnell.

What license applies?

The project is released under the MIT license.

Is cloudflare-workers-ai-mcp free?

Yes. cloudflare-workers-ai-mcp is open source, so you can use and self-host it for free.

What are the best alternatives to cloudflare-workers-ai-mcp?

The closest alternatives to cloudflare-workers-ai-mcp are Design Assets (apimodels), Longai MCP, MCP Flux Pro, legit2compute and mcp-computeflux.

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers