# cloudflare-workers-ai-mcp

> cloudflare-workers-ai-mcp is an open-source MCP server for cloud and infrastructure. MCP server giving AI agents chat, embedding and image tools via Cloudflare Workers AI. It is available on CLI and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/puspoaditya/cloudflare-workers-ai-mcp
- **GitHub stars:** 0
- **License:** MIT
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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_models` (name 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

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

## Alternatives

- [Design Assets (apimodels)](https://ai-powered.com/mcp/design-assets-apimodels): Design Assets (apimodels) is an open-source MCP server for design and media.
- [Longai MCP](https://ai-powered.com/mcp/longai-mcp): Longai MCP is an open-source MCP server for design and media.
- [MCP Flux Pro](https://ai-powered.com/mcp/mcp-flux-pro): MCP Flux Pro is an open-source MCP server for design and media.
- [legit2compute](https://ai-powered.com/mcp/legit2compute): legit2compute is a paid MCP server for design and media.
- [mcp-computeflux](https://ai-powered.com/mcp/mcp-computeflux): mcp-computeflux is an open-source MCP server for ai models and llm tooling.
- [AI Image Editor MCP](https://ai-powered.com/mcp/ai-image-editor-mcp): AI Image Editor MCP is a freemium MCP server for design and media.
- [Photoproduct.io](https://ai-powered.com/mcp/photoproduct-io): Photoproduct.io is a paid MCP server for design and media.
- [fal-mcp-server](https://ai-powered.com/mcp/fal-mcp-server): fal-mcp-server is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/cloudflare-workers-ai-mcp
