Remote MCP Server on Cloudflare
@RomanTCC
About Remote MCP Server on Cloudflare
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"remote-mcp-server-romantcc": {
"command": "npx",
"args": [
"nx",
"dev",
"remote-mcp-server"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is Remote MCP Server on Cloudflare?
It is a guide and reference implementation to get a remote MCP server running on Cloudflare Workers, complete with OAuth login. It is intended for developers who want to host Model Context Protocol servers remotely and connect them to clients like Claude Desktop.
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 a KV namespace, updating wrangler.jsonc, and running npm run deploy. Connect clients (e.g., MCP Inspector or Claude Desktop) using the SSE endpoint (e.g., /sse) of the local or deployed server.
Key features of Remote MCP Server on Cloudflare
- Runs on Cloudflare Workers with OAuth login.
- Supports local development with hot-reload via
npx nx dev. - Integrates with MCP Inspector for testing tools.
- Connects to Claude Desktop via SSE and a local proxy.
- Deployable to a
workers.devURL with KV namespace for OAuth state. - Provides a mock login screen for local testing.
Use cases of Remote MCP Server on Cloudflare
- Hosting a secure, remote MCP server with OAuth authentication.
- Developing and testing MCP tools locally before deploying to production.
- Connecting Claude Desktop to a remote MCP server for tool invocation.
- Experimenting with MCP’s SSE transport and OAuth flow in a serverless environment.
FAQ from Remote MCP Server on Cloudflare
How do I deploy my MCP server to Cloudflare?
Create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add the namespace ID to wrangler.jsonc, then run npm run deploy.
How do I connect Claude Desktop to my remote MCP server?
Edit your Claude Desktop configuration file to set the MCP server command to npx mcp-remote with the workers.dev/sse URL (e.g., https://worker-name.account-name.workers.dev/sse).
How can I test my MCP server locally?
Run npx nx dev remote-mcp-server, open http://localhost:8787/ in a browser, then use the MCP Inspector with SSE transport pointing to http://localhost:8787/sse. Log in with any email and password.
What transport does the MCP server use?
It uses Server-Sent Events (SSE). Clients connect to the /sse endpoint of the server.
How can I debug connection issues?
Restart Claude, or try connecting from the command line with npx mcp-remote http://localhost:8787/sse. In rare cases, clear the ~/.mcp-auth directory.
Frequently asked questions
How do I deploy my MCP server to Cloudflare?
Create a KV namespace with `npx wrangler kv namespace create OAUTH_KV`, add the namespace ID to `wrangler.jsonc`, then run `npm run deploy`.
How do I connect Claude Desktop to my remote MCP server?
Edit your Claude Desktop configuration file to set the MCP server command to `npx mcp-remote` with the `workers.dev`/sse URL (e.g., `https://worker-name.account-name.workers.dev/sse`).
How can I test my MCP server locally?
Run `npx nx dev remote-mcp-server`, open `http://localhost:8787/` in a browser, then use the MCP Inspector with SSE transport pointing to `http://localhost:8787/sse`. Log in with any email and password.
What transport does the MCP server use?
It uses Server-Sent Events (SSE). Clients connect to the `/sse` endpoint of the server.
How can I debug connection issues?
Restart Claude, or try connecting from the command line with `npx mcp-remote http://localhost:8787/sse`. In rare cases, clear the `~/.mcp-auth` directory.
Basic information
More Cloud & Infrastructure MCP servers
Run Model Context Protocol (MCP) servers with AWS Lambda
awslabsRun existing Model Context Protocol (MCP) stdio-based servers in AWS Lambda functions
Kubernetes MCP Server
manusaModel Context Protocol (MCP) server for Kubernetes and OpenShift
🐳 docker-mcp
QuantGeekDevA docker MCP Server (modelcontextprotocol)

Kilo IoT Platform
Kilo IoTYour AI can finally reach the physical world. Kilo is an AI-first IoT platform for commercial and industrial operations, and this connector hands a live deployment to the AI client you already use. Not an export. Not a
AWS MCP
RafalWilinskiTalk with your AWS using Claude. Model Context Protocol (MCP) server for AWS. Better Amazon Q alternative.
Comments