MCP.so
Sign In

Overview

What is Remote MCP Server on Cloudflare?

A template project that sets up a remote MCP (Model Context Protocol) server on Cloudflare Workers, complete with OAuth login. It is intended for developers who want to deploy and host MCP servers at the edge using Cloudflare's infrastructure.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Deploy to Cloudflare by creating an OAUTH_KV namespace and running npm run deploy. Connect clients such as the MCP Inspector or Claude Desktop via SSE transport at the /sse endpoint.

Key features of Remote MCP Server on Cloudflare

  • Runs entirely on Cloudflare Workers
  • Includes built-in OAuth login flow
  • Uses SSE (Server-Sent Events) transport
  • Connects to MCP Inspector and Claude Desktop
  • Deployable with a single deploy command

Use cases of Remote MCP Server on Cloudflare

  • Hosting remote MCP tools on the Cloudflare edge
  • Connecting Claude Desktop to server-side MCP tools
  • Prototyping and testing MCP servers locally before deployment
  • Implementing OAuth-based authentication for MCP endpoints

FAQ from Remote MCP Server on Cloudflare

What transport protocol does it use?

It uses SSE (Server-Sent Events) as the transport layer for MCP communication.

What runtime or platform does it require?

It requires Cloudflare Workers as the deployment platform and Node.js for local development.

How do I deploy the server to production?

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

How do I connect Claude Desktop to the remote server?

Add the server's workers.dev /sse URL to your Claude Desktop configuration using the mcp-remote proxy, restart Claude, and authenticate via the OAuth flow.

Tags

More from Cloud & Infrastructure