Workers MCP Server
by geelen
Workers MCP Server is a proof-of-concept for creating a Model Context Protocol (MCP) server using a Cloudflare Worker. It allows extending Claude Desktop by invoking functions using Cloudflare Worker's RPC syntax, providing access to Cloudflare or third-party bindings.
Last updated: N/A
What is Workers MCP Server?
This is a proof-of-concept MCP server implemented as a Cloudflare Worker. It enables Claude Desktop (and other MCP clients) to execute functions within a Cloudflare Worker environment, leveraging Cloudflare's bindings and services.
How to use Workers MCP Server?
To use this server, clone the repository, install dependencies, configure wrangler.json
, deploy the worker using pnpm deploy:worker
, generate and upload a secret, install the server using npx workers-mcp install <server-alias> <worker-url>
, and restart Claude Desktop. Iterate by modifying src/index.ts
and redeploying.
Key features of Workers MCP Server
Exposes Cloudflare Worker functions to MCP clients
Uses Cloudflare Worker's RPC syntax
Automatic documentation generation from JSDoc comments
Local proxy for development and testing
Easy installation via command-line tools
Use cases of Workers MCP Server
Extending Claude Desktop with custom functionalities
Accessing Cloudflare bindings (e.g., Email Routing, Browser Rendering) from Claude Desktop
Integrating third-party APIs with Claude Desktop
Creating custom tools for LLMs using Cloudflare Workers
FAQ from Workers MCP Server
What is MCP?
What is MCP?
Model Context Protocol (MCP) is a protocol that allows applications like Claude Desktop to interact with external tools and services.
What is a Cloudflare Worker?
What is a Cloudflare Worker?
Cloudflare Workers are serverless functions that run on Cloudflare's edge network.
How does this server extend Claude Desktop?
How does this server extend Claude Desktop?
By exposing functions running on a Cloudflare Worker, this server allows Claude Desktop to access and utilize Cloudflare's services and third-party APIs.
Why use a Cloudflare Worker for this?
Why use a Cloudflare Worker for this?
Cloudflare Workers provide a scalable and cost-effective way to run server-side logic and access Cloudflare's global network.
Is this project actively maintained?
Is this project actively maintained?
This project has been superseded by the Workers MCP package (https://github.com/cloudflare/workers-mcp). It is recommended to use the newer package instead.