MCP ExplorerExplorer

Create Mcp

@ZukAi-MCPon a year ago
16 MIT
FreeCommunity
AI Systems
#ai#cli#cursor#mcp#model-context-protocol
CLI to set up and deploy MCP Servers to Cloudflare Workers in seconds. Just write TypeScript functions to make Cursor MCP tools.

Overview

What is Create Mcp

create-mcp is a command-line interface (CLI) tool designed to set up and deploy Model Control Protocol (MCP) servers to Cloudflare Workers quickly. It allows users to create tools for their Cursor Agent using TypeScript functions.

Use cases

Use cases for create-mcp include creating custom tools for Cursor Agents, developing server-side applications that require fast deployment, and building prototypes for new functionalities in a serverless architecture.

How to use

To use create-mcp, install the Wrangler CLI and log in with your Cloudflare account. Run ‘bun create mcp’ to scaffold a new MCP server. You can also specify a server name with ‘bun create mcp --name ’. Add functions to the MyWorker class in src/index.ts to create MCP tools, and deploy changes using ‘bun run deploy’.

Key features

Key features of create-mcp include quick setup and deployment of MCP servers, the ability to write TypeScript functions with JSDoc comments for tool creation, automatic Git repository initialization, and integration with Claude Desktop.

Where to use

create-mcp can be used in various fields that require rapid development and deployment of server-side tools, particularly in environments leveraging Cloudflare Workers for serverless applications.

Content

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

  1. Redeploy the worker:
bun run deploy
  1. 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>

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers