Cloudflare AI Gateway Remote MCP Server

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~265 tok4 toolsยทOnline67msยท30d uptime: 100%ยทLast checked 2m ago

Cloudflare's AI Gateway MCP (ai-gateway.mcp.cloudflare.com/mcp) exposes gateway configuration, request logs and usage analytics for your LLM traffic.

https://ai-gateway.mcp.cloudflare.com/mcp
Provider
Cloudflare โ†—
Categories
โ˜๏ธ Cloud, Infrastructure & DevOps๐Ÿ› ๏ธ Developer Tools & Git
ไธญๆ–‡็ฎ€ไป‹

Cloudflare ๅฎ˜ๆ–น AI ็ฝ‘ๅ…ณ MCP ๆœๅŠกๅ™จใ€‚AI ไปฃ็†ๅฏ้€š่ฟ‡ OAuth ๅˆ—ๅ‡บ็ฝ‘ๅ…ณใ€ๆŸฅ็œ‹่ฏทๆฑ‚ๆ—ฅๅฟ—ๅนถๅˆ†ๆž็”จ้‡ๆŒ‡ๆ ‡ใ€‚

Maintainer of Cloudflare AI Gateway? Claim or update this listing โ†’

Streamable HTTPhttps://ai-gateway.mcp.cloudflare.com/mcp
Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "cloudflare-ai-gateway": {
      "url": "https://ai-gateway.mcp.cloudflare.com/mcp"
    }
  }
}

๐Ÿงฐ Cloudflare AI Gateway MCP Tools & Schema (4)

ToolSafetyDescriptionParameters
list_gateways
~34 tok
๐ŸŸข ReadList AI gateways in your account.โ€”
get_gateway_logs
~84 tok
๐ŸŸข ReadQuery request logs for a gateway with filters.gatewayId*: stringtimeRange: stringstatus: string
get_gateway_analytics
~73 tok
๐ŸŸข ReadGet usage metrics (requests, tokens, cost) for a gateway.gatewayId*: stringtimeRange: string
get_request_details
~54 tok
๐ŸŸข ReadGet full details of a single logged request.logId*: string

๐Ÿ›ก๏ธ Security, Quality & Context Token Audit

๐Ÿ›ก๏ธ Grade A+Context tax: ~265 tokens injected into every system prompt by this serverโ€™s 4 tools

Every tool definition (name + description + input schema) is injected into your LLMโ€™s context on every request โ€” Estimate per-call LLM token cost โ†’

  • No prompt-injection or hidden-character anomalies detected in tool descriptions
  • Streamable HTTP primary endpoint (current 2025-03-26 transport)
  • OAuth 2.1 with PKCE S256 enforced
  • Official first-party endpoint operated by the vendor
  • Manually verified by RemoteMCP.net

๐Ÿ” OAuth 2.1 & Security

Auth type
OAuth 2.1
Dynamic Client Registration
โœ… Supported
PKCE S256
โœ… Supported
Protected resource metadata
https://ai-gateway.mcp.cloudflare.com/.well-known/oauth-protected-resource (expected location)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ Recommended Agent Skills

๐Ÿ“– Cloudflare AI Gateway MCP Endpoint Overview & Security Guide

Cloudflare AI Gateway MCP โ€” Remote MCP Server

AI Gateway MCP lets agents answer operational questions about your LLM traffic โ€” which gateway is burning tokens, what model mix is in use, why a request failed โ€” by querying logs and analytics directly from the account.

Official Cloudflare AI Gateway MCP Endpoint & Transport Architecture

  • Endpoint URL: https://ai-gateway.mcp.cloudflare.com/mcp
  • Transport: Streamable HTTP

Streamable HTTP is the current MCP transport (2025-03-26 spec): a single URL accepts JSON-RPC POSTs and may stream responses over SSE, so one endpoint serves both simple and streaming workloads. Cloudflare AI Gateway MCP does not publish a separate legacy SSE endpoint, so your client must speak Streamable HTTP.

Authentication, Scopes & Permission Boundaries

Cloudflare AI Gateway MCP uses OAuth 2.1 โ€” the first request returns a 401 Unauthorized challenge with a WWW-Authenticate header pointing at the authorization metadata. Compliant clients (Cursor, Claude, VS Code, ChatGPT) handle the whole flow โ€” PKCE and Dynamic Client Registration, so no manual client setup is needed โ€” and simply open a browser consent screen.

All 4 cataloged tools are read-only โ€” Cloudflare AI Gateway MCP cannot mutate your account data, which makes it safe to connect broadly.

Common Troubleshooting & Connection Tips

  • 401 Unauthorized on connect โ€” that's expected; the server is OAuth-protected. Let your client complete the browser consent flow, or inspect the endpoint in our OAuth debugger to see the exact WWW-Authenticate challenge.
  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.
  • Read-only analytics surface โ€” gateway mutations go through the API MCP.
  • Log retention follows your AI Gateway plan limits.

๐Ÿš€ How to Connect

  1. Copy the Cloudflare AI Gateway MCP endpoint URL
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport http cloudflare-ai-gateway https://ai-gateway.mcp.cloudflare.com/mcp. Cursor: add "cloudflare-ai-gateway": { "url": "https://ai-gateway.mcp.cloudflare.com/mcp" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Complete the OAuth consent
    On first connection your client opens a Cloudflare consent screen in the browser. Approve it to grant access; the token is stored by the client and refreshed automatically.
  4. Verify with the online inspector
    Paste https://ai-gateway.mcp.cloudflare.com/mcp into remotemcp.net/inspector, run initialize and tools/list, and confirm Cloudflare AI Gateway MCP's 4 tools respond.

โ“ FAQ

What is the Cloudflare AI Gateway MCP remote MCP endpoint?

The primary endpoint is https://ai-gateway.mcp.cloudflare.com/mcp. It is an official first-party server operated by Cloudflare, speaking the Streamable HTTP transport.

How do I authenticate with Cloudflare AI Gateway MCP?

Cloudflare AI Gateway MCP uses OAuth 2.1. When your client first connects it receives a 401 challenge, discovers the authorization server via RFC 9728 metadata, and opens a browser consent screen. Dynamic Client Registration is supported, so compliant clients register themselves automatically.

I'm getting a 401 Unauthorized from Cloudflare AI Gateway MCP โ€” what's wrong?

A 401 means your client hasn't completed (or has lost) the OAuth authorization. Remove and re-add the server in your client to restart the consent flow, and check that your browser session can reach the provider's login page. If the 401 arrives without a WWW-Authenticate header, run it through our OAuth debugger to see what's missing.

Which MCP clients work with Cloudflare AI Gateway MCP?

Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http cloudflare-ai-gateway https://ai-gateway.mcp.cloudflare.com/mcp`), VS Code Copilot, ChatGPT connectors, Windsurf, Kiro (`~/.kiro/settings/mcp.json`), and Claude Desktop via the `mcp-remote` bridge.

What tools does Cloudflare AI Gateway MCP expose?

4 tools are cataloged in this directory โ€” including `list_gateways`, `get_gateway_logs`, `get_gateway_analytics` and more. Use our online inspector to fetch the live tool list straight from the endpoint.

๐Ÿ”— Connect Guides

๐Ÿ“› Embed Status Badge in README

Cloudflare AI Gateway MCP status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/cloudflare-ai-gateway.svg)](https://remotemcp.net/servers/cloudflare-ai-gateway)
Cloudflare AI Gateway MCP inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/cloudflare-ai-gateway.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fai-gateway.mcp.cloudflare.com%2Fmcp)
Cloudflare AI Gateway MCP audit grade badge
[![MCP Audit Grade](https://remotemcp.net/api/badge/grade/cloudflare-ai-gateway.svg)](https://remotemcp.net/servers/cloudflare-ai-gateway)
Cloudflare AI Gateway MCP context tax badge
[![Context Tax](https://remotemcp.net/api/badge/tokens/cloudflare-ai-gateway.svg)](https://remotemcp.net/servers/cloudflare-ai-gateway)

Related Servers

AWS KnowledgeAmazon Web Services

AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ€” connect and call tools immediately.

https://knowledge-mcp.global.api.aws
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPPublic ยท No Auth๐Ÿ›ก๏ธ A+~1896 tok5 toolsOnline178ms

Cloudflare's free, authless documentation MCP server. Agents can search the full Cloudflare docs corpus โ€” no account or token required.

https://docs.mcp.cloudflare.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEPublic ยท No Auth๐Ÿ›ก๏ธ A+~271 tok2 toolsOnline7ms

Vercel's official remote MCP server. Agents can list deployments, fetch build logs and search Vercel docs with a token-authorized connection.

https://mcp.vercel.com
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~506 tok16 toolsOnline210ms

Sentry's hosted MCP server for error monitoring. Agents can inspect issues, search events and resolve regressions directly from your IDE.

https://mcp.sentry.dev/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.1๐Ÿ›ก๏ธ A+~575 tok18 toolsOnline62ms