Skip to content

Commit 0044ffc

Browse files
Create the documentation for the new DEX MCP server feature
1 parent c602576 commit 0044ffc

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
pcx_content_type: reference
3+
title: MCP Server
4+
sidebar:
5+
order: 8
6+
---
7+
8+
The MCP server [(Model Context Protocol)](cloudflare.com/learning/ai/what-is-model-context-protocol-mcp/) for Digital Experience Monitoring (DEX) is an AI tool that allows customers to ask a question like, "Show me the connectivity and performance metrics for the device used by carly‌@acme.com", and receive an answer that contains data from the DEX API.
9+
10+
Any Cloudflare One customer using a Free, PayGo, or ENT account can access the DEX MCP Server. This feature is available to all Cloudflare One customers.
11+
12+
There are two primary options for connecting to the DEX MCP server.
13+
14+
## Cloudflare AI Playground
15+
16+
Customers can test the DEX MCP server in less than 1 minute by visiting the website for Cloudflare's AI Playground.
17+
18+
1. Copy the URL for the DEX MCP server: `https://dex.mcp.cloudflare.com/sse`
19+
2. Open [playground.ai.cloudflare.com](https://playground.ai.cloudflare.com) in a browser.
20+
3. Find the section in the left side bar titled MCP Servers.
21+
4. Paste the URL for the DEX MCP server into the URL input box and click Connect.
22+
5. Authenticate your Cloudflare account, and then start asking questions about your DEX data.
23+
24+
Today, Cloudflare's AI Playground is a great way to quickly try out a new MCP Server.
25+
26+
There is one important caveat. End users will need to ask specific and explicit questions to get a response. For example, you need to provide the instruction “Set XYZ as the active account". Then, you can ask a specific question: “Fetch the DEX test results for the user bob@‌acme.com over the past 24 hours”.
27+
28+
## AI Assistant
29+
30+
Customers will get a more flexible and robust prompt experience by configuring the DEX MCP server with their preferred AI assistant (Claude, Gemini, ChatGPT, etc.).
31+
32+
If you get stuck during the configuration process, you can ask your AI assistant for help with configuring an MCP server via URL.
33+
34+
### Claude
35+
36+
You will need a Claude Pro account (or higher subscription) to configure an MCP server.
37+
38+
1. Download the [Claude desktop client](https://claude.ai/download)
39+
2. Open the Claude desktop client, and login or set up an account.
40+
3. Expand the left side bar menu, and select **Claude Code**.
41+
4. Within the Desktop App menu, select **Developer** and you'll see the **Local MCP servers** page.
42+
5. Click **Edit Config** and open claude_desktop_config.json in a text editor of your choice.
43+
6. Copy the JSON configuration for the DEX MCP server and paste it into **claude_desktop_config.json**. Save the file.
44+
45+
```bash
46+
{
47+
"globalShortcut": "",
48+
"mcpServers": {
49+
"cloudflare-dex-analysis": {
50+
"command": "npx",
51+
"args": ["mcp-remote", "https://dex.mcp.cloudflare.com/sse"]
52+
}
53+
}
54+
}
55+
```
56+
57+
7. Fully close Claude by using the task manager to stop any background processes related to Claude.
58+
8. Open Claude, and your DEX MCP server configuration should appear on the **Local MCP servers** page.
59+
9. Authenticate your Cloudflare account and allow the DEX MCP server.
60+
10. You can start asking Claude questions about DEX. As a simple test, you can ask "Are you connected to the DEX MCP server".
61+
62+
### Gemini CLI
63+
64+
All tiers of Google AI Free, Pro, and Ultra offer an MCP server integration via the Gemini CLI.
65+
66+
You will need to use a CLI of your choice and npm or homebrew to install and access the Gemini CLI.
67+
68+
1. Visit the GitHub page for the [Gemini CLI](https://github.com/google-gemini/gemini-cli) and follow the installation instructions.
69+
2. Navigate to the **settings.json** file for your Gemini CLI install and open it in a text editor of your choice.
70+
71+
File path for the settings.json file for different operating systems:
72+
73+
- Windows: %USERPROFILE%\.gemini\settings.json
74+
- Mac and Linux: ~/.gemini/settings.json
75+
76+
3. Copy the JSON configuration for the DEX MCP server and paste it into **settings.json**. Save the file.
77+
78+
```bash
79+
{
80+
"globalShortcut": "",
81+
"mcpServers": {
82+
"cloudflare-dex-analysis": {
83+
"command": "npx",
84+
"args": ["mcp-remote", "https://dex.mcp.cloudflare.com/sse"]
85+
}
86+
}
87+
}
88+
```
89+
90+
4. Run Gemini in your CLI of choice.
91+
5. If everything is working as expected, you will see a message in the Gemini CLI that says "Using: 1 MCP server (ctrl+t to view)".
92+
6. Authenticate the email associated with your Cloudflare account in the Gemini CLI.
93+
7. You can start asking the Gemini CLI questions about DEX. As a simple test, you can ask "Are you connected to the DEX MCP server".
94+
95+
### ChatGPT
96+
97+
You will need a ChatGPT Pro or Business account to configure an MCP server. ChatGPT Free and Plus do not support MCP servers.
98+
99+
1. Download the [ChatGPT desktop app](https://chatgpt.com/features/desktop).
100+
2. Open the ChatGPT desktop app, and login or set up an account.
101+
3. Open the **Settings** menu and select **Connectors**.
102+
4. Select the option to create a new Connector.
103+
5. Provide a Name (like "DEX MCP"), Description (optional), and MCP Server URL for the Connector. The DEX MCP Server URL is: `https://dex.mcp.cloudflare.com/sse`
104+
6. Create the new Connector
105+
7. Before you ask ChatGPT a question about DEX, select the plus "+" button next to the ChatGPT prompt box.
106+
8. Select **Use Connectors**, then select **Add Sources** and select the DEX MCP as a source.
107+
9. You can start asking ChatGPT questions about DEX. As a simple test, you can ask "Are you connected to the DEX MCP server".

0 commit comments

Comments
 (0)