Create MCP

by fefergrgrgrg
Integrations
  • Deploys MCP servers to Cloudflare Workers for quick setup and fast execution of agent tools

  • Initializes a Git repository as part of the MCP server setup process

  • Uses TypeScript functions with JSDoc comments to define and implement MCP tools

作成-mcp

モデル制御プロトコル (MCP)サーバーをセットアップして Cloudflare Workers にデプロイする CLI ツール。これにより、数分でカーソル エージェント用の新しいツールの作成を開始できます。

JSDoc コメントを使用して TypeScript 関数を記述するだけで、エージェントに MCP ツールを提供できます。

前提条件

  • Wrangler CLIがインストールされ、Cloudflare アカウントでログインしています。
  • Claude デスクトップ アプリがインストールされました。(近日中に削除されます)

説明書

新しい MCP サーバーをスキャフォールディングしてデプロイするには、次のコマンドを実行します。

bun create mcp

コマンドに直接名前を渡すこともできます: bun create mcp --name <server-name>

このCLIの機能

  • テンプレートワーカーリポジトリを<current-dir>/<server-name>に複製します。
  • 依存関係をインストールします
  • Gitリポジトリを初期化する
  • CloudflareアカウントにHello World MCPサーバーをデプロイします
  • Claude Desktopに追加します
  • MCPサーバコマンドをクリップボードにコピーして、カーソルに貼り付けることができます。

使い方

src/index.tsMyWorkerクラスに関数を追加するだけです。各関数はMCPツールにコンパイルされます。

例えば:

/** * 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}!`; }
  • 最初の行はツールの説明です。
  • @paramタグは、タイプと説明が付いたツールのパラメータです。
  • @returnタグは、ツールの戻り値とその型です。

変更の展開

  1. ワーカーを再デプロイします。
bun run deploy
  1. カーソル ウィンドウを再読み込みします。

これで、エージェントに新しいツールを使用するように依頼できるようになりました。

Cloudflare Workersを選ぶ理由

雰囲気、素晴らしい DX、そして驚くほど速い展開。

私はMCPサーバーをローカルで実行するのが嫌いで、皆さんもそうではないと思います。しかし、CursorでAPIを呼び出すシンプルなMCPツールを使うために、Nodeプロセスを実行する必要がなくなりました。

関数を書くだけで、JSDocのコメントに説明とパラメータを記述するだけで動作します。

create-mcp で作成されたサンプルサーバー

create-mcp で作成された任意の MCP サーバーを複製して、自分の Cloudflare アカウントにデプロイできます。

bun create mcp --clone <github-url>
-
security - not tested
A
license - permissive license
-
quality - not tested

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 にデプロイする CLI ツール。TypeScript 関数を記述するだけで、カーソル エージェント用のカスタム ツールをすばやく作成できます。

  1. 前提条件
    1. 説明書
      1. このCLIの機能
        1. 使い方
          1. 変更の展開
            1. Cloudflare Workersを選ぶ理由
              1. create-mcp で作成されたサンプルサーバー

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables the creation and deployment of API-based MCP tools for Cursor Agent using Cloudflare Workers, streamlining development and integration of custom functionalities.
                  Last updated -
                  62
                  25
                  TypeScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  A 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 -
                  11
                  2
                  Python
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  F
                  license
                  -
                  quality
                  A 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 -
                  26
                  TypeScript

                View all related MCP servers

                ID: yq0zdef6n0