Remote MCP Server on Cloudflare
@Laity624
About Remote MCP Server on Cloudflare
MCP test
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"my-mcp-server-laity624": {
"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?
Remote MCP Server on Cloudflare is a guide and template to deploy an MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login, enabling secure, remote tool access for AI assistants.
How to use Remote MCP Server on Cloudflare?
Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Connect using the MCP Inspector or Claude Desktop by providing the SSE URL (e.g., http://localhost:8787/sse). For deployment, create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add its ID to wrangler.jsonc, then run npm run deploy.
Key features of Remote MCP Server on Cloudflare
- Deploy MCP server on Cloudflare Workers
- OAuth login for secure authentication
- Local development with MCP Inspector
- Connect Claude Desktop via a remote proxy
- SSE (Server-Sent Events) transport
- Simple configuration with wrangler.jsonc
Use cases of Remote MCP Server on Cloudflare
- Run MCP tools on a globally distributed edge network
- Provide authenticated tool access to AI assistants
- Prototype and test MCP servers locally before deploying
- Integrate with Claude Desktop for remote tool calling
FAQ from Remote MCP Server on Cloudflare
What are the prerequisites to use this server?
You need Node.js, npm, and, for deployment, a Cloudflare account. The server uses Cloudflare Workers and KV for OAuth.
What transport protocol does the server use?
It uses Server-Sent Events (SSE) for communication between the MCP client and server.
How do I connect Claude Desktop to the remote server?
Edit Claude Desktop’s config file to include a new MCP server entry with the command npx mcp-remote and the argument pointing to your worker’s /sse URL (e.g., https://worker-name.account-name.workers.dev/sse).
Can I test the server locally?
Yes, run npx nx dev remote-mcp-server to start on http://localhost:8787/ and test with the MCP Inspector or Claude Desktop using the local SSE URL.
How do I deploy the server to Cloudflare?
Create a KV namespace (npx wrangler kv namespace create OAUTH_KV), add the namespace ID to wrangler.jsonc, then run npm run deploy. The server will be available at your workers.dev URL.
Frequently asked questions
What are the prerequisites to use this server?
You need Node.js, npm, and, for deployment, a Cloudflare account. The server uses Cloudflare Workers and KV for OAuth.
What transport protocol does the server use?
It uses Server-Sent Events (SSE) for communication between the MCP client and server.
How do I connect Claude Desktop to the remote server?
Edit Claude Desktop’s config file to include a new MCP server entry with the command `npx mcp-remote` and the argument pointing to your worker’s `/sse` URL (e.g., `https://worker-name.account-name.workers.dev/sse`).
Can I test the server locally?
Yes, run `npx nx dev remote-mcp-server` to start on `http://localhost:8787/` and test with the MCP Inspector or Claude Desktop using the local SSE URL.
How do I deploy the server to Cloudflare?
Create a KV namespace (`npx wrangler kv namespace create OAUTH_KV`), add the namespace ID to `wrangler.jsonc`, then run `npm run deploy`. The server will be available at your `workers.dev` URL.
Basic information
More Cloud & Infrastructure MCP servers
Query | MCP server for Supabase
alexander-zuevQuery MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning, access to logs and much more.
🐳 docker-mcp
QuantGeekDevA docker MCP Server (modelcontextprotocol)
Lambda MCP Server Demo (Streamable HTTP)
mikegc-awsCreates a simple MCP tool server with "streaming" HTTP.
Cloudflare MCP Server
cloudflareAWS MCP
RafalWilinskiTalk with your AWS using Claude. Model Context Protocol (MCP) server for AWS. Better Amazon Q alternative.
Comments