概要
What is Remote MCP Server on Cloudflare?
Remote MCP Server on Cloudflare is a starter project to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login, enabling tools to be exposed to MCP clients over HTTP.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies with npm install, run locally via npx nx dev remote-mcp-server, then deploy to Cloudflare Workers using npm run deploy. Connect to the server using the MCP Inspector or configure Claude Desktop to use it via the mcp-remote proxy.
Key features of Remote MCP Server on Cloudflare
- Runs on Cloudflare Workers with serverless deployment
- Includes OAuth login for secure access
- Connects to MCP Inspector for testing and debugging
- Works with Claude Desktop via the
mcp-remoteproxy - Supports SSE transport for remote MCP clients
Use cases of Remote MCP Server on Cloudflare
- Hosting a remote MCP server for AI assistants
- Running math or custom tools served via MCP
- Deploying MCP endpoints for Claude Desktop integration
- Testing MCP tools locally then deploying globally
FAQ from Remote MCP Server on Cloudflare
What is the purpose of this project?
It gets a remote MCP server up‑and‑running on Cloudflare Workers complete with OAuth login, allowing tools to be called from any MCP client.
How do I deploy the server?
Use npx wrangler kv namespace create OAUTH_KV, add the KV namespace ID to wrangler.jsonc, then run npm run deploy.
How do I connect Claude Desktop to the server?
Update Claude Desktop’s config with a math entry using npx mcp-remote pointing to your server’s SSE URL (e.g., https://worker-name.account-name.workers.dev/sse).
How do I debug connection issues?
Restart Claude or test the server directly using npx mcp-remote http://localhost:8787/sse. Clearing ~/.mcp-auth may help in rare cases.
What transport and authentication does the server use?
It uses SSE transport and OAuth login (a mock login is shown during local development).