Skip to main content
Glama
mcp-server-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.

Inputs: no named parameters.

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.
	

Inputs: query (required). Returns: results

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    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

    ActivityMaintained
    ResponsivenessMixed handling

    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.
      1,137
      Apache 2.0
    • A
      license
      C
      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.
      390
      5
      MIT