mcp-server-cloudflare
OfficialCloudflare MCP Server
Model Context Protocol (MCP) は、大規模言語モデル (LLM) と外部システム間のコンテキストを管理するための新しい標準化プロトコルです。このリポジトリでは、MCPクライアント (Cursor、Claudeなど) からCloudflareのサービスに接続し、自然言語を使用してCloudflareアカウント経由でタスクを実行できる複数のMCPサーバーを提供しています。
これらのMCPサーバーを使用すると、MCPクライアントがアカウントの設定を読み取り、情報を処理し、データに基づいた提案を行い、さらには提案された変更をユーザーに代わって実行できるようになります。これらのアクションはすべて、アプリケーション開発、セキュリティ、パフォーマンスなど、Cloudflareの多くのサービス全体で実行可能です。
これらは、/mcp を介した streamable-http トランスポートと、/sse を介した sse トランスポート (非推奨) の両方をサポートしています。
このリポジトリには、以下のサーバーが含まれています。
サーバー名 | 説明 | サーバーURL |
Cloudflareに関する最新の参照情報を取得 |
| |
ストレージ、AI、コンピューティングプリミティブを使用してWorkersアプリケーションを構築 |
| |
Cloudflare Workers Buildsのインサイト取得と管理 |
| |
アプリケーションのログと分析のデバッグおよびインサイト取得 |
| |
グローバルなインターネットトラフィックのインサイト、トレンド、URLスキャン、その他のユーティリティを取得 |
| |
サンドボックス開発環境を起動 |
| |
Webページの取得、Markdownへの変換、スクリーンショットの撮影 |
| |
Logpushジョブの健全性に関するクイックサマリーを取得 |
| |
ログの検索、プロンプトとレスポンスの詳細取得 |
| |
監査ログのクエリとレビュー用レポートの生成 |
| |
現在の設定に基づいたDNSパフォーマンスの最適化と問題のデバッグ |
| |
組織にとって重要なアプリケーションに関するクイックインサイトを取得 |
| |
SaaSアプリケーションのセキュリティ設定ミスを迅速に特定し、ユーザーとデータを保護 |
| |
CloudflareのGraphQL APIを使用して分析データを取得 |
|
どのCloudflare MCPサーバーを使用すべきですか?
Cloudflareは2種類のMCPサーバーを提供しています。
Code Modeサーバー (
mcp.cloudflare.com) (cloudflare/mcp内): コード実行を通じてCloudflareのAPI全体に広くアクセスしたい場合に最適です。ドメイン固有サーバー (
*.mcp.cloudflare.com) (本リポジトリ内): 特定のCloudflare製品領域に対して、キュレーションされた型付きツールを使用したい場合に最適です。
それぞれをいつ使用すべきですか?
Code Modeサーバーを使用すべきケース:
多くのCloudflare製品にわたる広範なAPIカバレッジが必要な場合
汎用的なツールのセットを好む場合
ワークフローがコード実行に適している場合
本リポジトリのドメイン固有サーバーを使用すべきケース:
特定の製品領域向けに構築された専用ツールが必要な場合
よりガイド付きの型付きインタラクションを求める場合
可観測性 (Observability)、バインディング、Radar、ブラウザレンダリングなど、主に1つのCloudflareドメイン内で作業している場合
Code Modeサーバーの詳細については、cloudflare/mcp を参照してください。
Related MCP server: Cloudflare MCP Server
任意のMCPクライアントからリモートMCPサーバーにアクセスする
お使いのMCPクライアントがリモートMCPサーバーをネイティブでサポートしている場合、クライアントのインターフェース内で直接サーバーURLを受け入れる方法が提供されます (例: Cloudflare AI Playground)。
クライアントがまだリモートMCPサーバーをサポートしていない場合は、mcp-remote (https://www.npmjs.com/package/mcp-remote) を使用してそれぞれの設定ファイルをセットアップし、クライアントがアクセスできるサーバーを指定する必要があります。
{
"mcpServers": {
"cloudflare-observability": {
"command": "npx",
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
},
"cloudflare-bindings": {
"command": "npx",
"args": ["mcp-remote", "https://bindings.mcp.cloudflare.com/mcp"]
}
}
}OpenAI Responses APIからCloudflareのMCPサーバーを使用する
CloudflareのMCPサーバーのいずれかをOpenAIのResponses APIで使用するには、その特定のMCPサーバーに必要なスコープ (権限) を持つAPIトークンをResponses APIに提供する必要があります。
例えば、Browser Rendering MCPサーバーをOpenAIで使用するには、CloudflareダッシュボードのこちらでAPIトークンを作成し、以下の権限を付与してください。
他のCloudflareツールへのアクセスが必要ですか?
私たちはこのリモートMCPサーバーリポジトリにさらなる機能を追加し続けています。フィードバック、バグ報告、機能リクエストがある場合は、このリポジトリでIssueを作成してください。
トラブルシューティング
"Claude's response was interrupted ... "
このメッセージが表示される場合、Claudeがコンテキスト長の制限に達し、返信の途中で停止した可能性があります。これは、可観測性サーバーのように、多くの連鎖的なツール呼び出しをトリガーするサーバーで最も頻繁に発生します。
この問題が発生する可能性を減らすには:
具体的に指示し、クエリを簡潔に保つようにしてください。
1つのリクエストで複数のツールを呼び出す場合は、レスポンスを短く保つために、いくつかの小さなツール呼び出しに分割してみてください。
有料機能
一部の機能には、有料のCloudflare Workersプランが必要な場合があります。使用する機能に必要なサブスクリプションレベルがCloudflareアカウントにあることを確認してください。
貢献
貢献に興味があり、このサーバーをローカルで実行したいですか?開始方法についてはCONTRIBUTING.mdを参照してください。
Available Tools
2 toolsmigrate_pages_to_workers_guideARead-only
ALWAYS read this guide before migrating Pages projects to Workers.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true; description adds no additional behavioral context beyond the instruction to read the guide, which is sufficient for a static document.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence, front-loaded, no unnecessary words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter guide without output schema, the description adequately conveys the tool's purpose and usage context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
No parameters exist, so schema coverage is 100%. Description does not need to add parameter details; baseline 4 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool is a guide to be read before migrating Pages to Workers, distinguishing it from the sibling search tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states when to use the tool (before migration), though no alternatives or exclusions are discussed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_cloudflare_documentationARead-only
Search the Cloudflare documentation.
This tool should be used to answer any question about Cloudflare products or features, including:
- Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workflows, Hyperdrive, Queues
- AI Search, Workers AI, Vectorize, AI Gateway, Browser Run
- Zero Trust, Access, Tunnel, Gateway, Browser Isolation, WARP, DDOS, Magic Transit, Magic WAN
- CDN, Cache, DNS, Zaraz, Argo, Rulesets, Terraform, Account and Billing
Results are returned as semantically similar chunks to the query.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| results | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations include readOnlyHint=true, so the read-only nature is known. The description adds that results are 'semantically similar chunks', which gives insight into the behavior. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two paragraphs; the first sentence is concise, but the product list in the second paragraph is lengthy. Could be more concise, but overall efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one parameter, read-only search), the description covers purpose, usage, and return format. Output schema exists, so return values are explained elsewhere. Adequately complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It lists topics to search, implying the query is a search string, but adds no details about format, length, or constraints. With only one parameter, it's minimally acceptable.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Search the Cloudflare documentation' and lists many product areas. The verb 'search' and resource 'Cloudflare documentation' are specific. The sibling tool 'migrate_pages_to_workers_guide' is clearly different, so no confusion.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description says it 'should be used to answer any question about Cloudflare products or features', providing clear usage context. It does not explicitly exclude cases where more specific tools might be better, but given only one sibling, it's adequate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v1.0.4- Changed
migrate_pages_to_workers_guide1 field changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
- Changed
search_cloudflare_documentation2 fields changed- changed
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema" - changed
Output schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
1 tool update
v1.0.3- Changed
search_cloudflare_documentation1 field changed- changed
Output schema / (root)Previous value: -nullNew value: +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "additionalProperties": false, + "properties": { + "results": { + "items": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Source file ID", + "type": "string" + }, + "similarity": { + "description": "Similarity score from AI Search", + "type": "number" + }, + "text": { + "description": "Matching documentation chunk text", + "type": "string" + }, + "title": { + "description": "Documentation page title", + "type": "string" + }, + "url": { + "description": "Developer documentation URL", + "type": "string" + } + }, + "required": [ + "similarity", + "id", + "url", + "title", + "text" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "results" + ], + "type": "object" +}
2 tool updates
v1.0.2- Changed
migrate_pages_to_workers_guide1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
- Changed
search_cloudflare_documentation1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
2 tool updates
- First observed
migrate_pages_to_workers_guide - First observed
search_cloudflare_documentation
TDQS
The two tools have clearly distinct purposes: one for general documentation search and one specifically for migrating Pages to Workers. There is no overlap.
Both tool names follow a verb_noun pattern in snake_case, with 'search_cloudflare_documentation' and 'migrate_pages_to_workers_guide', though the second is much longer.
With only 2 tools, the server feels very thin for the broad domain of Cloudflare products. It likely needs more tools to be useful.
Only documentation search and a specific migration guide are provided. Many core Cloudflare operations (e.g., managing resources, troubleshooting) are missing, leading to significant gaps.
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 Connectors
Cloudflare Workers MCP server: claude-skill-validator
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: ai-model-router
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 gradedqualityCmaintenanceAn MCP server that allows using natural language to manage Cloudflare resources (Workers, KV, R2, D1) through Claude Desktop, VSCode, and other MCP clients.1910Apache 2.0

Cloudflare MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceA token-efficient MCP server that provides access to the entire Cloudflare API (2500+ endpoints) using a code execution pattern, enabling natural language management of Cloudflare services.11810Apache 2.0- AlicenseNot gradedqualityDmaintenanceA high-performance MCP server providing AI assistants with read-only access to the Cloudflare ecosystem. Query your entire Cloudflare infrastructure using natural language through Claude, Cursor, or any MCP-compatible client.5MIT
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/cloudflare/mcp-server-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server