
mardak0/create-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP Server を Cloudflare ワーカーに秒単位でセットアップおよびデプロイします。 Cursor MCP ツールを作るために TypeScript 関数を書くだけです.
概要
モデルコントロールプロトコル(MCP)サーバーを設定し、CloudflareワーカーにデプロイするCLIツールで、数分で新しいツールを作成できます。 JSDoc のコメントで TypeScript 関数を書いて、エージェント MCP ツールを付与してください。 - Wrangler CLI をインストールして、Cloudflare アカウントでログインします。 - Claudeデスクトップアプリをインストールしました。 (今後削除されます) 新しいMCPサーバーをスキャフォールドしてデプロイするには、次のようにします。 また、コマンドに直接名前を渡すことができます: bun は mcp --name を作成します。 - テンプレートのワーカーリポジトリを/ - 依存関係をインストールします - Gitリポジトリを初期化 - クラウドフレアアカウントにHello World MCPサーバーをデプロイする - Claude Desktopに追加 - MCPサーバーコマンドをクリップボードにコピーして、Cursorに貼り付けることができます src/index.ts で MyWorker クラスに関数を追加するだけです。 各関数は MCP ツールにコンパイルされます。 - 最初の行は、ツールの説明です.
概要(AI 翻訳)
モデルコントロールプロトコル(MCP)サーバーを設定し、CloudflareワーカーにデプロイするCLIツールで、数分で新しいツールを作成できます。
JSDoc のコメントで TypeScript 関数を書いて、エージェントの MCP ツールを指定します。
前提条件
- Wrangler CLI をインストールして、Cloudflare アカウントでログインします。
- Claudeデスクトップアプリをインストールしました。 (今後削除されます)
指示
新しいMCPサーバーをスキャフォールドしてデプロイするには、次のようにします。
コマンドの[bun create mcp --name ]に直接名前を渡すことができます。
このCLIが何をしているのか
- テンプレートワーカーリポジトリを[
/にクローンします - 依存関係をインストールする
- Gitリポジトリを初期化
- Hello World MCP サーバーを Cloudflare アカウントにデプロイする
- Claudeデスクトップに追加
- MCP サーバーコマンドをクリップボードにコピーして、Cursor に貼り付ける
使用方法
[src/index.ts の [MyWorker] のクラスに関数を追加するだけです。 各関数は MCP ツールにコンパイルされます。
例えば:
- 最初の行は、ツールの説明です。
- [
@paramタグは、ツールのパラメータ、タイプと説明です。 - [
@returnタグは、そのタイプのツールの戻り値です。
展開変更
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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 .
What this CLI does
- Clones the template worker repository into
/ - 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
@paramtags are the tool’s params, with types and descriptions. - The
@returntag 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
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
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →