作成-mcp
モデル制御プロトコル (MCP)サーバーをセットアップして Cloudflare Workers にデプロイする CLI ツール。これにより、数分でカーソル エージェント用の新しいツールの作成を開始できます。
JSDoc コメントを使用して TypeScript 関数を記述するだけで、エージェントに MCP ツールを提供できます。
前提条件
- Wrangler CLIがインストールされ、Cloudflare アカウントでログインしています。
- Claude デスクトップ アプリがインストールされました。(近日中に削除されます)
説明書
新しい MCP サーバーをスキャフォールディングしてデプロイするには、次のコマンドを実行します。
コマンドに直接名前を渡すこともできます: bun create mcp --name <server-name>
。
このCLIの機能
- テンプレートワーカーリポジトリを
<current-dir>/<server-name>
に複製します。 - 依存関係をインストールします
- Gitリポジトリを初期化する
- CloudflareアカウントにHello World MCPサーバーをデプロイします
- Claude Desktopに追加します
- MCPサーバコマンドをクリップボードにコピーして、カーソルに貼り付けることができます。
使い方
src/index.ts
のMyWorker
クラスに関数を追加するだけです。各関数はMCPツールにコンパイルされます。
例えば:
- 最初の行はツールの説明です。
@param
タグは、タイプと説明が付いたツールのパラメータです。@return
タグは、ツールの戻り値とその型です。
変更の展開
- ワーカーを再デプロイします。
- カーソル ウィンドウを再読み込みします。
これで、エージェントに新しいツールを使用するように依頼できるようになりました。
Cloudflare Workersを選ぶ理由
雰囲気、素晴らしい DX、そして驚くほど速い展開。
私はMCPサーバーをローカルで実行するのが嫌いで、皆さんもそうではないと思います。しかし、CursorでAPIを呼び出すシンプルなMCPツールを使うために、Nodeプロセスを実行する必要がなくなりました。
関数を書くだけで、JSDocのコメントに説明とパラメータを記述するだけで動作します。
create-mcp で作成されたサンプルサーバー
create-mcp で作成された任意の MCP サーバーを複製して、自分の Cloudflare アカウントにデプロイできます。
貢献
貢献とフィードバックは大歓迎です!お気軽にプルリクエストを送信したり、問題を報告してください。
謝辞
このプロジェクトは@geelenが作成したworkers-mcpなしでは実現できません。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Cloudflare Workers を使用して Cursor Agent 用の API ベースの MCP ツールの作成と展開を可能にし、カスタム機能の開発と統合を効率化します。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA template for creating custom tools for Cursor IDE using Model Context Protocol (MCP), allowing developers to extend Cursor's functionality with their own server-based tools.Last updated -112PythonMIT License
- -securityAlicense-qualityAn MCP server that converts Cursor agent plans into structured markdown task lists and organizes them in your repository, helping you track AI-generated plans and recommendations as actionable specifications.Last updated -3PythonMIT License
- -securityFlicense-qualityA demonstration project that uses Cloudflare Workers MCP to create custom AI tools that can be integrated with Claude, Cursor, and other AI assistants supporting the Model Context Protocol.Last updated -26TypeScript
Fastn Serverofficial
-securityAlicense-qualityAn MCP server that enables dynamic tool registration and execution based on API definitions, providing seamless integration with services like Claude.ai and Cursor.ai.Last updated -7PythonMIT License