What is Remote MCP Server on Cloudflare?
Remote MCP Server on Cloudflare is a starter project that sets up a Model Context Protocol (MCP) server running on Cloudflare Workers, complete with OAuth login. It is intended for developers who want to deploy a remote MCP endpoint accessible over the internet.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies with npm install, and run locally using npx nx dev remote-mcp-server. Open http://localhost:8787/ in a browser. Use the MCP Inspector with SSE transport at http://localhost:8787/sse to test tools. To connect Claude Desktop, add a configuration entry using npx mcp-remote with the local or deployed URL. Deploy to Cloudflare with npm run deploy after creating an OAUTH_KV namespace with npx wrangler kv namespace create OAUTH_KV.
Key features of Remote MCP Server on Cloudflare
- Runs on Cloudflare Workers for global, serverless deployment.
- Includes OAuth login for authentication.
- Uses SSE (Server‑Sent Events) transport for MCP communication.
- Supports local development with a mock login screen.
- Works with MCP Inspector and Claude Desktop via a remote proxy.
Use cases of Remote MCP Server on Cloudflare
- Deploy a remote MCP tool server that requires user authentication.
- Prototype and test MCP tools locally before deploying to production.
- Connect Claude Desktop to a custom remote MCP server for advanced tool execution.
评论