Skip to main content
Glama
cloudflare

mcp-server-cloudflare

Official
by cloudflare

Cloudflare MCP Server

Model Context Protocol (MCP) は、大規模言語モデル (LLM) と外部システム間のコンテキストを管理するための新しい標準化プロトコルです。このリポジトリでは、MCPクライアント (Cursor、Claudeなど) からCloudflareのサービスに接続し、自然言語を使用してCloudflareアカウント経由でタスクを実行できる複数のMCPサーバーを提供しています。

これらのMCPサーバーを使用すると、MCPクライアントがアカウントの設定を読み取り、情報を処理し、データに基づいた提案を行い、さらには提案された変更をユーザーに代わって実行できるようになります。これらのアクションはすべて、アプリケーション開発、セキュリティ、パフォーマンスなど、Cloudflareの多くのサービス全体で実行可能です。

これらは、/mcp を介した streamable-http トランスポートと、/sse を介した sse トランスポート (非推奨) の両方をサポートしています。

このリポジトリには、以下のサーバーが含まれています。

サーバー名

説明

サーバーURL

Documentation server

Cloudflareに関する最新の参照情報を取得

https://docs.mcp.cloudflare.com/mcp

Workers Bindings server

ストレージ、AI、コンピューティングプリミティブを使用してWorkersアプリケーションを構築

https://bindings.mcp.cloudflare.com/mcp

Workers Builds server

Cloudflare Workers Buildsのインサイト取得と管理

https://builds.mcp.cloudflare.com/mcp

Observability server

アプリケーションのログと分析のデバッグおよびインサイト取得

https://observability.mcp.cloudflare.com/mcp

Radar server

グローバルなインターネットトラフィックのインサイト、トレンド、URLスキャン、その他のユーティリティを取得

https://radar.mcp.cloudflare.com/mcp

Container server

サンドボックス開発環境を起動

https://containers.mcp.cloudflare.com/mcp

Browser rendering server

Webページの取得、Markdownへの変換、スクリーンショットの撮影

https://browser.mcp.cloudflare.com/mcp

Logpush server

Logpushジョブの健全性に関するクイックサマリーを取得

https://logs.mcp.cloudflare.com/mcp

AI Gateway server

ログの検索、プロンプトとレスポンスの詳細取得

https://ai-gateway.mcp.cloudflare.com/mcp

Audit Logs server

監査ログのクエリとレビュー用レポートの生成

https://auditlogs.mcp.cloudflare.com/mcp

DNS Analytics server

現在の設定に基づいたDNSパフォーマンスの最適化と問題のデバッグ

https://dns-analytics.mcp.cloudflare.com/mcp

Digital Experience Monitoring server

組織にとって重要なアプリケーションに関するクイックインサイトを取得

https://dex.mcp.cloudflare.com/mcp

Cloudflare One CASB server

SaaSアプリケーションのセキュリティ設定ミスを迅速に特定し、ユーザーとデータを保護

https://casb.mcp.cloudflare.com/mcp

GraphQL server

CloudflareのGraphQL APIを使用して分析データを取得

https://graphql.mcp.cloudflare.com/mcp

どの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 tools
migrate_pages_to_workers_guideA
Read-only

ALWAYS read this guide before migrating Pages projects to Workers.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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_documentationA
Read-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.
	
ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultsYes

TDQS

A4.1/5.0
Behavior4/5

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.

Conciseness4/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 2 tool updatesv1.0.4
    • Changedmigrate_pages_to_workers_guide1 field changed
      • changedInput schema / $schema
        Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • Changedsearch_cloudflare_documentation2 fields changed
      • changedInput schema / $schema
        Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
      • changedOutput schema / $schema
        Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. 1 tool updatev1.0.3
    • Changedsearch_cloudflare_documentation1 field changed
      • changedOutput 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"
        +}
  3. 2 tool updatesv1.0.2
    • Changedmigrate_pages_to_workers_guide1 field changed
      • removedInput schema / additionalProperties
        Removed value: -false
    • Changedsearch_cloudflare_documentation1 field changed
      • removedInput schema / additionalProperties
        Removed value: -false
  4. 2 tool updates
    • First observedmigrate_pages_to_workers_guide
    • First observedsearch_cloudflare_documentation

TDQS

A3.9/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: one for general documentation search and one specifically for migrating Pages to Workers. There is no overlap.

Naming Consistency4/5

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.

Tool Count2/5

With only 2 tools, the server feels very thin for the broad domain of Cloudflare products. It likely needs more tools to be useful.

Completeness2/5

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

ActivityActive
ResponsivenessWithin a week

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A 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.
    11
    810
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    5
    MIT

Latest Blog Posts

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