workers-mcp logo

Workers MCP

by cloudflare

29 forks
369 stars
Free

What is workers-mcp

workers-mcp is a tool provided by Cloudflare that allows you to interact with Cloudflare Workers directly from Claude Desktop or any compatible Model Context Protocol (MCP) client. This package includes command-line interface (CLI) tools and in-Worker logic, enabling you to customize and manage your Cloudflare Workers with ease. It serves as a bridge to connect AI systems like Claude to Cloudflare Workers, allowing for flexible and scalable customization based on your needs.

How to Use workers-mcp

To start using workers-mcp, follow these straightforward steps:

Step 1: Generate a New Worker

First, create a new Cloudflare Worker using the following command:

npx create-cloudflare@latest my-new-worker

Choose a simple "Hello World" Worker to get started.

Step 2: Install workers-mcp

Navigate to your new Worker directory and install the workers-mcp package:

cd my-new-worker
npm install workers-mcp

Step 3: Run the Setup Command

Set up the workers-mcp environment by executing:

npx workers-mcp setup

If you encounter issues, you can get help with:

npx workers-mcp help

Step 4: Iterating and Deploying

After making changes to your Worker code, update it using:

npm run deploy

This command updates both the Worker and its metadata on Claude. Note that changes to method names or parameters require restarting Claude to be recognized.

Using with Other MCP Clients

To use workers-mcp with other clients like Cursor or Windsurf, update your configuration files appropriately. Ensure your command and arguments are correctly set for your client environment.

Key Features of workers-mcp

  • Seamless Integration: Connects Cloudflare Workers with MCP clients like Claude Desktop, allowing for extensive customization and management.
  • Flexible Configuration: Easily update and deploy Worker code, and adjust settings via your preferred MCP client.
  • Robust CLI Tools: Provides comprehensive command-line tools to facilitate Worker setup, deployment, and management.
  • Example Implementations: Includes various examples, such as a simple "Hello World" setup and more complex use cases like image generation with AI models.
  • Iterative Development: Supports continuous development with minimal setup changes, making it easy to iterate on your Worker projects.

With workers-mcp, you can efficiently manage your Cloudflare Workers and integrate them with AI clients, enhancing functionality and allowing for real-time data access and processing.

How to Use

To use the workers-mcp, follow these steps:

  1. Visit https://github.com/cloudf...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using workers-mcp capabilities within your Claude conversations

Additional Information

Created

December 17, 2024

Company

cloudflare

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More