Skip to content
Cloudflare Docs

Test a Remote MCP Server

Remote, authorized connections are an evolving part of the Model Context Protocol (MCP) specification. Not all MCP clients support remote connections yet.

This guide will show you options for how to start using your remote MCP server with MCP clients that support remote connections. If you haven't yet created and deployed a remote MCP server, you should follow the Build a Remote MCP Server guide first.

The Model Context Protocol (MCP) inspector

The @modelcontextprotocol/inspector package is a visual testing tool for MCP servers.

You can run it locally by running the following command:

Terminal window
npx @modelcontextprotocol/inspector

Then, enter the URL of your remote MCP server. You can use an MCP server running on your local machine on localhost, or you can use a remote MCP server running on Cloudflare.

MCP inspector

Once you have authenticated, you will be redirected back to the inspector. You should see the "List Tools" button, which will list the tools that your MCP server exposes.

MCP inspector — authenticated

Connect your remote MCP server to Claude Desktop via a local proxy

Even though Claude Desktop doesn't yet support remote MCP clients, you can use the mcp-remote local proxy to connect it to your remote MCP server. This lets you to test what an interaction with your remote MCP server will be like with a real-world MCP client.

  1. Open Claude Desktop and navigate to Settings -> Developer -> Edit Config. This opens the configuration file that controls which MCP servers Claude can access.
  2. Replace the content with a configuration like this:
{
"mcpServers": {
"math": {
"command": "npx",
"args": ["mcp-remote", "http://my-mcp-server.my-account.workers.dev/sse"]
}
}
}

This tells Claude to communicate with your MCP server running at http://localhost:8787/sse.

  1. Save the file and restart Claude Desktop (command/ctrl + R). When Claude restarts, a browser window will open showing your OAuth login page. Complete the authorization flow to grant Claude access to your MCP server.

Once authenticated, you'll be able to see your tools by clicking the tools icon in the bottom right corner of Claude's interface.

Connect your remote MCP server to Cursor

To connect Cursor with your remote MCP server, choose Type: "Command" and in the Command field, combine the command and args fields into one (e.g.npx mcp-remote https://your-worker-name.your-account.workers.dev/sse).

Connect your remote MCP server to Windsurf

You can connect your remote MCP server to Windsurf by editing the mcp_config.json file, and adding the following configuration:

{
"mcpServers": {
"math": {
"command": "npx",
"args": ["mcp-remote", "http://my-mcp-server.my-account.workers.dev/sse"]
}
}
}