Remote MCP Server on Cloudflare
by irvinebroque
This project provides a remote MCP (Model Context Protocol) server that can be deployed on Cloudflare Workers, complete with OAuth login. It allows you to connect to the server using tools like the MCP Inspector and Claude Desktop.
Last updated: N/A
What is Remote MCP Server on Cloudflare?
This is a remote Model Context Protocol (MCP) server designed to run on Cloudflare Workers. It enables interaction with tools and models using the MCP standard, facilitating communication and data exchange.
How to use Remote MCP Server on Cloudflare?
To use this server, you can either develop locally using npm run dev remote-mcp-server
or deploy it to Cloudflare Workers using npm run deploy
. After deployment, you can connect to it using the MCP Inspector or configure Claude Desktop to use it by updating the configuration file with the server's URL.
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 Claude to remote tools
Exposing tools via MCP
Building serverless MCP integrations
Testing MCP implementations
Integrating with AI models using MCP
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.
How do I connect the MCP Inspector?
How do I connect the MCP Inspector?
Start the inspector with npx @modelcontextprotocol/inspector
, switch the Transport Type to SSE
, and enter the server's URL (e.g., http://localhost:8787/sse
).
How do I connect Claude Desktop?
How do I connect Claude Desktop?
Update the Claude configuration file with the server's URL in the mcpServers
section.
How do I deploy to Cloudflare?
How do I deploy to Cloudflare?
Create a KV namespace, add the namespace ID to wrangler.jsonc
, and run npm run deploy
.
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 with npx mcp-remote http://localhost:8787/sse
, or clearing the files in ~/.mcp-auth
.