Data as of

Cloudflare MCP Server for VS Code: Setup & Config

VS Code: Cloudflare MCP Server is a collection of product-specific remote servers for Cloudflare accounts.

What you can do with Cloudflare in VS Code

Choose curated Cloudflare product endpoints instead of a broad code-execution API interface.

  • Consult current Cloudflare reference documentation.
  • Work with Workers storage, AI, and compute bindings.
  • Review account audit logs or security misconfiguration information.

Before you start: Cloudflare in VS Code

  • An MCP-compatible client
  • A Cloudflare account for account operations
  • npx when using the mcp-remote bridge
  • Appropriate API token permissions when using the OpenAI Responses API

This example selects the Observability server. Remote-capable clients can use its URL directly; the npx command is a compatibility bridge. Other product areas use separate URLs.

Cloudflare VS Code configuration

  1. Choose VS Code configuration scope

    For Cloudflare MCP Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.

  2. Add Cloudflare MCP Server to VS Code

    Use the mcp-server-cloudflare entry below in servers. Keep Cloudflare MCP Server's documented http connection fields and your other VS Code entries.

  3. Check Cloudflare MCP Server in VS Code

    Cloudflare MCP Server: Start in VS Code’s MCP controls; inspect output and trust prompts.

Config file · Workspace: .vscode/mcp.json

JSON
{
  "servers": {
    "mcp-server-cloudflare": {
      "type": "http",
      "url": "https://observability.mcp.cloudflare.com/mcp"
    }
  }
}

Troubleshooting Cloudflare in VS Code

  • The Cloudflare MCP Server entry connects to observability.mcp.cloudflare.com with type http. Start it through VS Code's MCP controls and review the endpoint before accepting trust prompts.
  • Cloudflare MCP Server: check http connectivity to observability.mcp.cloudflare.com from VS Code; a stdio command is not a replacement for this endpoint.
  • Transport mismatch: Cloudflare's catalog lists stdio; the displayed VS Code configuration uses http.
  • Known limitation: Some capabilities require a paid Cloudflare Workers plan.
  • Known limitation: Long tool chains can exceed client context limits.
  • Known limitation: SSE remains available but is deprecated.
  • General VS Code troubleshooting lives in the /clients/vscode guide.

Cloudflare MCP Server — details. VS Code guide

Frequently asked questions

For Cloudflare MCP Server, edit workspace .vscode/mcp.json. VS Code requires servers rather than mcpServers; preserve the displayed type on each entry.