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.
DNS レコードの管理、キャッシュの消去、自然言語コマンドによる Cloudflare API との対話を行う軽量の MCP サーバー。
Related Resources
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-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 -89TypeScriptApache 2.0
- AsecurityAlicenseAqualityThis MCP server provides tools for interacting with Cloudflare Browser Rendering, allowing you to fetch and process web content for use as context in LLMs directly from Cline or Claude Desktop.Last updated -510TypeScriptMIT License
- -securityAlicense-qualityA lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.Last updated -416GPL 2.0