What is Remote MCP Server on Cloudflare?
A guide and starter project to deploy a remote Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login, enabling clients like Claude Desktop to call tools over the internet.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Deploy using npx wrangler kv namespace create OAUTH_KV and npm run deploy. Connect clients via the MCP Inspector (SSE transport) or Claude Desktop using the mcp-remote proxy pointed to the server’s /sse endpoint.
Key features of Remote MCP Server on Cloudflare
- Deploy MCP server as a Cloudflare Worker
- OAuth login for secure tool access
- SSE-based transport for remote connections
- Local development with hot reload via Nx
- Ready integration with MCP Inspector and Claude Desktop
Use cases of Remote MCP Server on Cloudflare
- Host a math tool server accessible from any MCP client
- Connect Claude Desktop to remote MCP tools over the internet
- Develop and test MCP servers locally before deploying
- Provide external teams with OAuth-protected MCP endpoints
コメント