MCP.so
Sign In

Overview

What is Remote MCP Server on Cloudflare?

It is an MCP (Model Context Protocol) server deployed on Cloudflare Workers with OAuth login. It allows MCP clients to connect remotely via SSE (Server-Sent Events) and provides a framework for building and running tools on the edge.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Use the MCP Inspector or configure Claude Desktop (via mcp-remote proxy) to connect to the local or deployed SSE endpoint (/sse). Deploy to Cloudflare using npx wrangler kv namespace create OAUTH_KV and npm run deploy.

Key features of Remote MCP Server on Cloudflare

  • OAuth-based login for secure access.
  • Server-Sent Events (SSE) transport.
  • Runs on Cloudflare Workers for global deployment.
  • Local development with MCP Inspector.
  • Connectable to Claude Desktop via mcp-remote proxy.
  • Uses Cloudflare KV for OAuth state.

Use cases of Remote MCP Server on Cloudflare

  • Run a public MCP server accessible from any MCP client.
  • Develop and test MCP tools locally with the inspector.
  • Connect Claude Desktop to a remote MCP server for tool calling.
  • Deploy an authenticated MCP server on a serverless edge platform.

FAQ from Remote MCP Server on Cloudflare

What transport does the server use?

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

How do I connect Claude Desktop to the server?

Configure Claude’s mcpServers entry with command: "npx", args: ["mcp-remote", "<URL>/sse"], replacing <URL> with your local or deployed Workers address.

How do I deploy the server to Cloudflare?

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

How can I debug connection issues?

Restart Claude, try connecting directly via npx mcp-remote <URL>/sse, or clear the ~/.mcp-auth directory with rm -rf ~/.mcp-auth.

What runtime dependencies are required?

Node.js, npm, a Cloudflare account, and local installation of the repository with npm install.

Tags

More from Cloud & Infrastructure