Remote MCP Server on Cloudflare
@easy-apis
Overview
What is Remote MCP Server on Cloudflare?
Remote MCP Server on Cloudflare is a template and guide for deploying a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It provides a local development environment, deployment to Cloudflare, and instructions for connecting MCP clients such as 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. Deploy to Cloudflare by creating an OAUTH_KV namespace, updating wrangler.jsonc, and running npm run deploy. Connect clients like the MCP Inspector or Claude Desktop using the SSE endpoint (/sse) with the mcp-remote proxy.
Key features of Remote MCP Server on Cloudflare
- Deploys MCP server on Cloudflare Workers with OAuth
- Supports local development and testing
- Connects to MCP Inspector via SSE transport
- Integrates with Claude Desktop through mcp-remote proxy
- Provides OAuth login flow for authentication
- Includes example math tool for demonstration
Use cases of Remote MCP Server on Cloudflare
- Host a remote MCP server accessible over the internet
- Connect Claude Desktop to a remote MCP server via OAuth
- Develop and test MCP tools locally before deployment
- Use MCP Inspector to list and call server tools
FAQ from Remote MCP Server on Cloudflare
How do I deploy the server to Cloudflare?
Create an OAUTH_KV namespace, add its ID to wrangler.jsonc, and run npm run deploy.
How do I connect Claude Desktop to the server?
Use the mcp-remote proxy with the SSE URL. Configure Claude’s mcpServers with the workers.dev or localhost URL.
How can I debug connection issues?
Restart Claude, test directly with npx mcp-remote <URL>, or clear the `~/.