What is Remote MCP Server on Cloudflare?
A guide and starter project to run a remote MCP server on Cloudflare Workers with built-in OAuth login. It is aimed at developers who want to deploy MCP servers for use with MCP clients like Claude Desktop.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. For remote deployment, use npx wrangler kv namespace create OAUTH_KV, add the KV namespace ID to wrangler.jsonc, then run npm run deploy. Connect MCP clients (Inspector or Claude Desktop) using the workers.dev URL with /sse endpoint.
Key features of Remote MCP Server on Cloudflare
- Run MCP servers on Cloudflare Workers with OAuth login
- Local development with hot reload
- Deploy to production with one command
- SSE transport for remote connections
- Easy integration with MCP Inspector and Claude Desktop
Use cases of Remote MCP Server on Cloudflare
- Hosting custom MCP tools accessible from any MCP client
- Developing and testing MCP servers with OAuth authentication
- Connecting Claude Desktop to a remote MCP server over the internet
评论