What is Remote MCP Server on Cloudflare?
Remote MCP Server on Cloudflare is a ready-to-deploy model context protocol server that runs on Cloudflare Workers and includes OAuth login integration. It is intended for developers who want to host an MCP server remotely and connect it to clients like Claude Desktop or the MCP Inspector.
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 SSE URL (e.g., http://localhost:8787/sse). To deploy, create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add its ID to wrangler.jsonc, and run npm run deploy. Then use the deployed workers.dev/sse endpoint with any MCP client.
Key features of Remote MCP Server on Cloudflare
- Runs on Cloudflare Workers for serverless deployment
- Includes OAuth login for authentication
- Supports SSE (Server-Sent Events) transport
- Works with MCP Inspector and Claude Desktop
- Local development with hot reload via Nx
- Uses Cloudflare KV for OAuth state storage
Use cases of Remote MCP Server on Cloudflare
- Host a remote MCP server for Claude Desktop to call tools over HTTP
- Develop and test MCP tools locally with the MCP Inspector
- Deploy a production MCP server with built-in OAuth authentication
- Share MCP tools with remote clients without exposing local infrastructure
コメント