Cloudflare Dex Analysis MCP server

Digital Experience Monitoring (DEX) provides visibility into device, network, and application performance across your Zero Trust organization.
Back to servers
Setup instructions
Provider
Cloudflare
Release date
May 01, 2025
Stats
2.8K stars

This server implements the Model Context Protocol (MCP) with Cloudflare OAuth, providing tools to monitor and manage your Cloudflare Zero Trust organization through the DEX API. It offers insights into device performance, network paths, and application metrics across your organization.

Getting Started with Cloudflare DEX MCP Server

Available Tools

The MCP server provides several categories of tools:

  • Synthetic Application Monitoring - Analyze test results, list tests, and retrieve detailed metrics
  • Remote Captures - Manage packet captures and WARP diagnostics on devices
  • Fleet Status - View metrics and logs for your Zero Trust device fleet
  • Miscellaneous - Additional utility tools like listing Cloudflare colos

Accessing the MCP Server

You can access the Cloudflare DEX MCP server from any MCP client in two ways:

Option 1: MCP Clients with Native Remote Server Support

If your MCP client (like Cloudflare AI Playground) directly supports remote MCP servers:

  1. Enter the server URL: https://dex.mcp.cloudflare.com
  2. Follow the authentication prompts

Option 2: Using mcp-remote Package

For clients without native remote server support:

  1. Install the mcp-remote package:

    npm install mcp-remote
    
  2. Create or modify your client's configuration file with:

    {
      "mcpServers": {
        "cloudflare": {
          "command": "npx",
          "args": ["mcp-remote", "https://dex.mcp.cloudflare.com/sse"]
        }
      }
    }
    
  3. Restart your MCP client

  4. Complete the OAuth authentication process in the browser window that opens

  5. The tools will become available after authentication

Using the MCP Server

Example Prompts

You can interact with the MCP server using natural language prompts like:

  • "Are there any anomalies in the DEX test to the internal wiki in the past 24 hours?"
  • "How many macOS devices are connected right now in DFW?"
  • "Capture a WARP diag for [email protected] and make sure to test all routes"
  • "Which users have toggled off WARP recently?"
  • "Which Cloudflare colo is most used by my users in the EU running DEX application tests?"

Tool Capabilities

The server offers tools to:

  • Analyze test statistics and performance metrics
  • View detailed time series data for HTTP and traceroute tests
  • Examine network paths and hop-by-hop information
  • Manage remote captures on devices
  • Monitor fleet status in real-time and historically
  • Access logs for diagnostics and user activities

Each tool is designed to provide specific insights into your Zero Trust environment, helping you troubleshoot issues and monitor performance across your organization.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "cloudflare" '{"command":"npx","args":["mcp-remote","https://<your-subdomain>.workers.dev/sse"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cloudflare": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://<your-subdomain>.workers.dev/sse"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "cloudflare": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://<your-subdomain>.workers.dev/sse"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later