cloudflare-api-mcp
これは、create-mcpでブートストラップされ、Cloudflare Workers にデプロイされた軽量の Model Control Protocol (MCP) サーバーです。
この MCP サーバーは、エージェント (Cursor など) がCloudflare REST APIとインターフェースすることを可能にします。
まだ開発中なので、必要に応じてツールを追加していく予定です。
利用可能なツール
現在のツールリストについては、src/index.ts を参照してください。クラス内のすべてのメソッドは MCP ツールです。
インストール
- 自動インストール スクリプトを実行してこの MCP サーバーのクローンを作成し、Cloudflare アカウントにデプロイします。
Cursor Settings -> MCP -> Add new MCP server
を開き、クリップボードにコピーされたコマンドを貼り付けます。- Cloudflare API キーとメールをワーカーシークレットにアップロードします。
地域開発
Cloudflare API キーとメールを.dev.vars
ファイルに追加します。
展開中
- デプロイ スクリプトを実行します。
- 新しいツールを表示するには、カーソル ウィンドウを再読み込みしてください。
新しいMCPツールを作成する方法
新しいMCPツールを作成するには、 src/index.ts
のMyWorker
クラスにメソッドを追加します。各関数は自動的にエージェントが使用できるMCPツールになります。
例:
JSDoc コメントは重要です:
- 最初の行はツールの説明になります
@param
タグは、ツールのパラメータをタイプと説明で定義します。@return
タグは戻り値と型を指定します
もっと詳しく知る
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 の REST API とインターフェースし、DNS レコードやその他の Cloudflare サービスを管理できるようにする軽量の MCP サーバー。
Related MCP Servers
- -securityAlicense-qualityA lightweight MCP server that interacts with the Neon REST API, deployable on Cloudflare Workers for streamlined database management and integration.Last updated -7TypeScriptMIT License
- -securityAlicense-qualityA lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.Last updated -21TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that allows using natural language to manage Cloudflare resources (Workers, KV, R2, D1) through Claude Desktop, VSCode, and other MCP clients.Last updated -59TypeScriptApache 2.0
- -securityFlicense-qualityA deployable authentication-free MCP (Model Context Protocol) server on Cloudflare Workers that allows you to add custom tools and connect to AI clients like Claude Desktop or Cloudflare AI Playground.Last updated -TypeScript