Model Control Protocol Server (MCP)
Enables the creation and deployment of API-based MCP tools for Cursor Agent using Cloudflare Workers, streamlining development and integration of custom functionalities.
zueai
README
create-mcp
A CLI tool that sets up a Model Control Protocol (MCP) server and deploys it to Cloudflare Workers so you can start making new tools for your Cursor Agent in minutes.
Just write TypeScript functions with JSDoc comments to give your agent MCP tools.
Prerequisites
- Wrangler CLI installed and logged in with your Cloudflare account.
- Claude Desktop App installed. (This will be removed soon)
Instructions
To scaffold and deploy a new MCP server, just run:
bun create mcp
You can also pass a name directly to the command: bun create mcp --name <server-name>
.
What this CLI does
- Clones the template worker repository into
<current-dir>/<server-name>
- Installs dependencies
- Initializes a Git repository
- Deploys a Hello World MCP server to your Cloudflare account
- Adds it to Claude Desktop
- Copies the MCP server command to your clipboard so you can paste it into Cursor
How to Use
Just add functions to the MyWorker
class in src/index.ts
. Each function will compile into an MCP tool.
For example:
/**
* A warm, friendly greeting from your new Workers MCP server.
* @param name {string} the name of the person we are greeting.
* @return {string} the contents of our greeting.
*/
sayHello(name: string) {
return `Hello from an MCP Worker, ${name}!`;
}
- The first line is the tool's description.
- The
@param
tags are the tool's params, with types and descriptions. - The
@return
tag is the tool's return value, with its type.
Deploying Changes
- Redeploy the worker:
bun run deploy
- Reload your Cursor window.
Now you can ask your agent to use the new tool!
Why Cloudflare Workers?
Vibes, great DX, and blazing fast deployments.
I don't like running MCP servers locally, and I'm pretty sure you don't either. Now we don't have to run node processes to use simple MCP tools in Cursor that call APIs.
All you have to do is write functions. Put your descriptions and params in JSDoc comments and it just works.
Example Servers made with create-mcp
You can clone and deploy any MCP server made with create-mcp to your own Cloudflare account:
bun create mcp --clone <github-url>
Contributing
Contributions and feedback are extremely welcome! Please feel free to submit a Pull Request or open an issue!
Acknowledgements
This project would not be possible without workers-mcp made by @geelen
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Playwright MCP Server
Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Apple MCP Server
Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
contentful-mcp
Update, create, delete content, content-models and assets in your Contentful Space