Remote MCP Server on Cloudflare
by roysam
This project provides a remote Model Context Protocol (MCP) server that can be deployed on Cloudflare Workers, complete with OAuth login. It allows you to connect to the server locally or remotely using tools like the MCP Inspector or Claude Desktop.
Last updated: N/A
What is Remote MCP Server on Cloudflare?
This is a remote MCP server implementation designed to run on Cloudflare Workers. It enables you to expose and interact with AI tools and models through the Model Context Protocol, offering a serverless and scalable solution.
How to use Remote MCP Server on Cloudflare?
To use this server, you can first develop it locally using npm install
and npx nx dev remote-mcp-server
. Then, you can connect to it using the MCP Inspector or Claude Desktop. Finally, deploy it to Cloudflare Workers using npm run deploy
after creating a KV namespace.
Key features of Remote MCP Server on Cloudflare
Remote MCP server
Cloudflare Workers deployment
OAuth login
MCP Inspector compatibility
Claude Desktop integration
Use cases of Remote MCP Server on Cloudflare
Connecting AI tools to Claude
Exposing AI models as services
Building serverless AI applications
Integrating with Model Context Protocol ecosystems
Developing and testing MCP tools locally and remotely
FAQ from Remote MCP Server on Cloudflare
How do I connect to the server locally?
How do I connect to the server locally?
Run npx nx dev remote-mcp-server
and open http://localhost:8787/
in your browser. Then use the MCP Inspector or Claude with the local URL.
How do I deploy the server to Cloudflare?
How do I deploy the server to Cloudflare?
Create a KV namespace, add the namespace ID to wrangler.jsonc
, and then run npm run deploy
.
How do I connect Claude Desktop to the server?
How do I connect Claude Desktop to the server?
Update the Claude configuration file to point to the server's URL (either local or remote) and restart Claude.
What is the MCP Inspector?
What is the MCP Inspector?
The MCP Inspector is a tool for exploring and interacting with MCP APIs. You can use it to list and call defined tools.
What do I do if something goes wrong?
What do I do if something goes wrong?
Try restarting Claude, connecting directly to the MCP server on the command line with npx mcp-remote http://localhost:8787/sse
, or clearing the files in ~/.mcp-auth
.