@archawat/mcp-cloudflare
@archawat/mcp-cloudflare
単一のAPIトークンから複数のゾーン(ドメイン)にわたるCloudflare DNSを管理するためのModel Context Protocol (MCP) サーバーです。バルクワークフロー向けに構築されており、多数のレコードに対するプロキシのオン/オフ切り替え、ゾーン全体のDNS監査、レコードの一括更新などが行えます。
機能
1つのトークンでマルチゾーン対応 —
"example.com"のようなドメイン名を渡すだけで、サーバーがゾーンを解決します。ゾーンIDも使用可能です。バルク操作 —
bulk_toggle_proxy、bulk_update_dns_record、bulk_list_dns_recordsは並行して実行され、呼び出しごとのゾーンIDキャッシュを共有するため、繰り返しゾーンを検索するコストがかかりません。安全なデフォルト設定 — 新しいA/CNAMEレコードは
proxied: false(DNSのみ、グレーの雲)で作成されます。プロキシはオプトイン方式です。自動ページネーション —
list_dns_recordsは、特定のページを指定しない限り、すべてのページを並行して取得します。
Related MCP server: Cloudflare API MCP
インストール
ローカルへのインストールは不要です。npx または bunx を使用してオンデマンドで実行してください。
Claude Code / Claude Desktop (.mcp.json)
npx (Node) を使用する場合:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "@archawat/mcp-cloudflare"],
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}bunx (Bun) を使用する場合:
{
"mcpServers": {
"cloudflare": {
"command": "bunx",
"args": ["-y", "@archawat/mcp-cloudflare"],
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}Claude Code CLI
claude mcp add cloudflare -s user \
-e CLOUDFLARE_API_TOKEN="cf-token-here" \
-- npx -y @archawat/mcp-cloudflareグローバルインストール(コールドスタートが最速)
npm install -g @archawat/mcp-cloudflare
# or: bun add -g @archawat/mcp-cloudflareグローバルバイナリ名は mcp-cloudflare(スコープなし)です:
{
"mcpServers": {
"cloudflare": {
"command": "mcp-cloudflare",
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}APIトークン
https://dash.cloudflare.com/profile/api-tokens にて、以下の権限を持つCloudflareトークンを作成してください:
Zone:ReadZone:DNS:Edit
トークンのスコープを管理したいゾーンに限定するか、「すべてのゾーン」へのアクセス権を付与してください。
ツール
ツール | 目的 |
| トークンで管理可能なドメインを検出します。 |
| ゾーン内のレコードをリスト表示します。 |
| 1回の呼び出しで複数のゾーンにわたるレコードをリスト表示します。ゾーンごとに並行処理されます。 |
| Aレコードを作成します。 |
| CNAMEレコードを作成します。 |
| レコードID、または名前(+オプションでタイプ)を指定してプロキシをオン/オフに切り替えます。 |
| 1回の呼び出しで多数のレコードのプロキシを切り替えます(共有の |
| レコードの |
| アイテムごとのフィールドを指定して、1回の呼び出しで多数のレコードをパッチ更新します。 |
| IDを指定してレコードを削除します。破壊的な操作です。 |
すべてのツールは、zone 引数としてドメイン名("example.com")または32文字のゾーンIDのいずれかを受け入れます。
バルク結果の形式
バルクツールはアイテムごとの結果を返します。単一の失敗がバッチ全体を中断させることはありません:
{
"succeeded": 10,
"failed": 1,
"results": [
{ "zone": "example.com", "ok": true, "record": { "id": "…", "proxied": true } },
{ "zone": "other.com", "ok": false, "error": "No proxyable record found for 'www.other.com'." }
]
}いずれかのアイテムが失敗した場合、ツールレスポンスには isError: true が設定されますが、すべての結果は引き続き返されます。
開発
Bun(推奨)またはNode 18以降が必要です。
bun install
bun run dev # run src/index.ts with --watch
bun run start # run src/index.ts once
bun run typecheck # tsc --noEmit
bun run build # emit dist/ for publishing公開されたパッケージの代わりに開発用コピーをMCPサーバーとして実行するには、.mcp.json でローカルビルドを指定してください:
{
"mcpServers": {
"cloudflare": {
"command": "bun",
"args": ["/abs/path/to/mcp-cloudflare/src/index.ts"],
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}サーバーはstdioを使用します。MCPクライアントがプロセスを起動し、stdin/stdout経由で通信します。
ライセンス
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.24
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.515GPL 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceA token-efficient MCP server for managing Cloudflare DNS zones and records with full CRUD support and bulk operations. It can be deployed locally via stdio or as a Cloudflare Worker for remote HTTP access.
- FlicenseAqualityDmaintenanceMCP server for managing and analyzing Cloudflare DNS — zones, records, analytics, and DNSSEC.141
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for Blockscout
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/archawat/mcp-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server