Skip to content

workers-mcp

Maintained
cloudflare/workers-mcp

Cloudflare's CLI and in-Worker library that turns TypeScript methods on a Worker into MCP tools you can call from Claude Desktop or any MCP client.

View on GitHub
Stars
649
Forks
67
Watchers
649
Open issues
23

Overview

workers-mcp provides both the CLI tooling and the in-Worker logic to connect Claude Desktop (or any MCP client) to a Cloudflare Worker on your account.

How it works

A build step translates the TypeScript methods of a WorkerEntrypoint class — documented with JSDoc — into MCP tools. A local Node.js server exposes those tools to the MCP client over stdio and proxies each call to the matching method on your Worker running on Cloudflare. That lets you expose any function, API or service binding in your Worker to an AI assistant.

Note

The README now recommends building a remote MCP server on Cloudflare instead, which clients such as Claude Desktop and Cursor can reach through mcp-remote. workers-mcp remains useful for understanding the local-proxy approach.

Similar open-source projects, ranked by shared categories and tags.

All AI projects →