Servers
Remote MCP Server on Cloudflare
@miracledevlol
Overview
What is Remote MCP Server on Cloudflare?
A template and guide for running a remote MCP server on Cloudflare Workers with OAuth login, enabling developers to expose tools over HTTP and connect them to MCP clients like Claude Desktop.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies, and run npx nx dev remote-mcp-server for local development. For production, deploy using npm run deploy after creating a KV namespace with npx wrangler kv namespace create OAUTH_KV. Connect clients by configuring the SSE endpoint (e.g., http://localhost:8787/sse or https://worker-name.account-name.workers.dev/sse) in the MCP Inspector or Claude Desktop settings using the mcp-remote proxy.
Key features of Remote MCP Server on Cloudflare
- OAuth login built into the server.
- Runs locally and deploys to Cloudflare Workers.
- Uses SSE transport for MCP communication.
- Works with the MCP Inspector for testing.
- Connects to Claude Desktop via a local proxy.
- Supports remote access from any MCP client.
Use cases of Remote MCP Server on Cloudflare
- Developing and testing a remote MCP server locally.
- Deploying an MCP server to Cloudflare’s global edge network.
- Connecting Claude Desktop to a remote MCP server with OAuth.
- Using the MCP Inspector to list and call tools.
- Integrating custom tools into MCP-compatible applications.
FAQ from Remote MCP Server on Cloudflare
—