MCP.so
Sign In

Overview

What is Remote MCP Server on Cloudflare?

It is a server that implements the Model Context Protocol (MCP) and runs on Cloudflare Workers, complete with OAuth login. It allows remote MCP clients to connect and call tools.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Connect using the MCP Inspector (SSE transport) or configure Claude Desktop with npx mcp-remote pointing to the local or deployed /sse URL. Deploy to Cloudflare using npm run deploy after creating a KV namespace for OAuth state.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global edge deployment.
  • Includes OAuth login for authentication.
  • Supports SSE (Server-Sent Events) transport.
  • Can be developed locally with the MCP Inspector.
  • Integrates with Claude Desktop via a local proxy (mcp-remote).
  • Uses Cloudflare KV for OAuth state storage.

Use cases of Remote MCP Server on Cloudflare

  • Deploying a remote MCP server accessible over the internet.
  • Providing tool access to MCP clients like Claude Desktop.
  • Developing and testing MCP tools locally before deployment.
  • Creating a math tool server (as shown with an add tool example).

FAQ from Remote MCP Server on Cloudflare

How do I connect Claude Desktop to my local MCP server?

Edit Claude Desktop config to use npx mcp-remote with the local SSE URL http://localhost:8787/sse.

What transport type does the MCP Inspector use?

SSE (Server-Sent Events). In the inspector, switch Transport Type to SSE and enter the /sse URL.

How do I deploy to Cloudflare?

Use npx wrangler kv namespace create OAUTH_KV, add the namespace ID to wrangler.jsonc, then npm run deploy.

How can I debug connection issues?

Restart Claude, try connecting with npx mcp-remote http://localhost:8787/sse on the command line, or clear ~/.mcp-auth files.

What runtime does this require?

It runs on Cloudflare Workers; local development requires Node.js and npm.

Tags

More from Cloud & Infrastructure