MCP.so
Sign In

Overview

What is Remote MCP Server on Cloudflare?

A remote MCP server that runs on Cloudflare Workers with built-in OAuth login, enabling you to host and access MCP tools over the internet.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. For deployment, use npx wrangler to create a KV namespace and run npm run deploy. Connect via the MCP Inspector (SSE transport) or configure Claude Desktop with npx mcp-remote pointing to your server URL.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global deployment
  • OAuth login for secure access
  • SSE (Server-Sent Events) transport
  • Works with MCP Inspector and Claude Desktop
  • Easy local development and deployment

Use cases of Remote MCP Server on Cloudflare

  • Host a math tool MCP server and call it from Claude Desktop
  • Test MCP endpoints remotely using the MCP Inspector
  • Deploy custom MCP tools on Cloudflare’s edge network

FAQ from Remote MCP Server on Cloudflare

What transport protocol does the server use?

It uses SSE (Server-Sent Events) at the /sse endpoint.

How do I deploy the server to Cloudflare?

Create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add its ID to wrangler.jsonc, then run npm run deploy.

How can I connect Claude Desktop to the remote server?

Update your Claude Desktop config to use npx mcp-remote with your server’s workers.dev/sse URL as an argument.

How does authentication work?

The server includes OAuth login; locally a mock login screen appears, and after deployment real OAuth handles authentication.

What should I do if something goes wrong?

Restart Claude, try connecting via command line with npx mcp-remote, or clear the ~/.mcp-auth directory.

Tags

More from Cloud & Infrastructure