What is Remote MCP Server on Cloudflare?
A template to get a remote MCP (Model Context Protocol) server running on Cloudflare Workers with OAuth login. It is for developers who want to host MCP tools remotely and connect them to 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. Use the MCP Inspector with SSE transport (e.g., http://localhost:8787/sse) or configure Claude Desktop with a local proxy using npx mcp-remote. Deploy to Cloudflare by creating a KV namespace (npx wrangler kv namespace create OAUTH_KV), adding its ID to wrangler.jsonc, and running npm run deploy.
Key features of Remote MCP Server on Cloudflare
- Runs MCP server on Cloudflare Workers with OAuth authentication.
- Supports SSE (Server-Sent Events) transport for remote clients.
- Works with MCP Inspector for testing and debugging.
- Integrates with Claude Desktop via the
mcp-remote proxy.
- Provides local development workflow with live reload.
Use cases of Remote MCP Server on Cloudflare
- Hosting a remote MCP server for use with MCP-compatible AI clients.
- Testing MCP tools locally with the MCP Inspector.
- Connecting Claude Desktop to a remote MCP server over the internet.
- Prototyping and deploying custom MCP tools on Cloudflare’s edge network.
Comments