What is Remote MCP Server on Cloudflare?
Remote MCP Server on Cloudflare is a project that demonstrates how to run a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It is intended for developers who want to create and test remote MCP tools accessible over HTTP via SSE transport.
How to use Remote MCP Server on Cloudflare?
Clone the repository from GitHub, install dependencies with npm, run the server locally with npx nx dev remote-mcp-server on port 8787, then connect any MCP client (e.g., MCP Inspector or Claude Desktop) using SSE at the /sse endpoint. To deploy, use npx wrangler kv namespace create OAUTH_KV, add the KV namespace ID to wrangler.jsonc, and run npm run deploy.
Key features of Remote MCP Server on Cloudflare
- Runs on Cloudflare Workers for remote access.
- Includes OAuth-based login flow.
- Uses SSE transport for MCP communication.
- Supports local development with hot reload.
- Deployable to a
workers.dev URL.
Use cases of Remote MCP Server on Cloudflare
- Connect Claude Desktop to a remote MCP server for custom tool use.
- Test MCP tools locally with the MCP Inspector before deployment.
- Build and host MCP tools accessible from any remote MCP client.
- Prototype OAuth‑protected MCP APIs on Cloudflare’s edge.
评论