What is Remote MCP Server on Cloudflare?
Remote MCP Server on Cloudflare is 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 deploy and connect MCP tools to clients like Claude Desktop over SSE.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies with npm install, and run locally with npx nx dev remote-mcp-server. Connect via the MCP Inspector by switching transport to SSE and entering http://localhost:8787/sse. Deploy to Cloudflare using npm run deploy after setting up an OAuth KV namespace in wrangler.jsonc. Connect Claude Desktop by configuring the mcpServers JSON with the mcp-remote command and the deployed Workers URL.
Key features of Remote MCP Server on Cloudflare
- Deploy a remote MCP server on Cloudflare Workers.
- Includes OAuth login flow for authentication.
- SSE transport for remote connections.
- Local development with hot reload via Nx.
- Connect to Claude Desktop via a local proxy.
- Debugging support with CLI and credential cleanup.
Use cases of Remote MCP Server on Cloudflare
- Running a serverless math tool MCP server for AI assistants.
- Hosting custom MCP tools and calling them from remote clients.
- Prototyping MCP integrations with OAuth-based user authentication.
- Connecting MCP tools to Claude Desktop in a production-like environment.
Comments