What is Remote MCP Server on Cloudflare?
This server enables running a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login, allowing remote AI clients to connect and use defined tools.
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 with npx wrangler kv namespace create OAUTH_KV, adding the ID to wrangler.jsonc, then running npm run deploy. Connect clients like the MCP Inspector or Claude Desktop by pointing them to the SSE endpoint (/sse).
Key features of Remote MCP Server on Cloudflare
- Runs MCP server on Cloudflare Workers
- Includes OAuth login for secure access
- Uses SSE (Server-Sent Events) transport
- Deployable with simple commands
- Works with MCP Inspector and Claude Desktop
Use cases of Remote MCP Server on Cloudflare
- Host a remote MCP server accessible anywhere
- Integrate custom tools with Claude Desktop
- Develop and test MCP tools locally before deploying
- Provide AI assistants with OAuth-protected tool endpoints
评论