Remote MCP Server on Cloudflare
@peanut996
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-peanut996": {
"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?
A guide and example repository for deploying a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It is intended for developers who want to host MCP tools on Cloudflare’s edge network and connect clients like the MCP Inspector or Claude Desktop.
How to use Remote MCP Server on Cloudflare?
Clone the cloudflare/ai repo, install dependencies with npm install, and run npx nx dev remote-mcp-server for local development. Deploy with npx wrangler kv namespace create OAUTH_KV, add the KV namespace ID to wrangler.jsonc, then npm run deploy. Connect clients over SSE by pointing them to the server’s /sse endpoint.
Key features of Remote MCP Server on Cloudflare
- Run MCP servers on Cloudflare Workers with OAuth authentication.
- Develop locally with live reload via
npx nx dev. - Test tools with the MCP Inspector over SSE.
- Connect Claude Desktop through the
mcp-remoteproxy. - Deploy to a public
workers.devURL. - Example math tool (add) included in the repository.
Use cases of Remote MCP Server on Cloudflare
- Hosting remote MCP tools for AI assistants like Claude.
- Prototyping custom MCP servers with OAuth login.
- Demonstrating remote MCP client-server connections.
- Building and testing MCP endpoints before production deployment.
FAQ from Remote MCP Server on Cloudflare
What transport protocol does the server use?
The server uses SSE (Server-Sent Events) as the transport protocol.
How do I connect Claude Desktop to the server?
Add an entry to Claude’s configuration file that uses npx mcp-remote pointing to the server’s /sse URL, for example: https://worker-name.account-name.workers.dev/sse.
What are the dependencies for local development?
You need Node.js, npm, and the wrangler CLI installed. Clone the cloudflare/ai repository and run npm install.
How do I deploy the server to Cloudflare?
Create a KV namespace named OAUTH_KV with npx wrangler kv namespace create OAUTH_KV, add its ID to wrangler.jsonc, then run npm run deploy.
How can I debug connection issues?
Restart Claude or test the connection directly with npx mcp-remote http://localhost:8787/sse. In some cases, clearing ~/.mcp-auth may help.
Frequently asked questions
What transport protocol does the server use?
The server uses SSE (Server-Sent Events) as the transport protocol.
How do I connect Claude Desktop to the server?
Add an entry to Claude’s configuration file that uses `npx mcp-remote` pointing to the server’s `/sse` URL, for example: `https://worker-name.account-name.workers.dev/sse`.
What are the dependencies for local development?
You need Node.js, npm, and the `wrangler` CLI installed. Clone the `cloudflare/ai` repository and run `npm install`.
How do I deploy the server to Cloudflare?
Create a KV namespace named `OAUTH_KV` with `npx wrangler kv namespace create OAUTH_KV`, add its ID to `wrangler.jsonc`, then run `npm run deploy`.
How can I debug connection issues?
Restart Claude or test the connection directly with `npx mcp-remote http://localhost:8787/sse`. In some cases, clearing `~/.mcp-auth` may help.
Basic information
More Cloud & Infrastructure MCP servers
AWS MCP
RafalWilinskiTalk with your AWS using Claude. Model Context Protocol (MCP) server for AWS. Better Amazon Q alternative.
K8s MCP Server
alexei-ledK8s-mcp-server is a Model Context Protocol (MCP) server that enables AI assistants like Claude to securely execute Kubernetes commands. It provides a bridge between language models and essential Kubernetes CLI tools including kubectl, helm, istioctl, and argocd, allowing AI syste
Mcp K8s Go
strowkMCP server connecting to Kubernetes
AWS MCP Servers
awslabsOpen source MCP Servers for AWS
GCP MCP
eniayomiA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your Google Cloud Platform environment. This allows for natural language querying and management of your GCP resources during conversations.
Comments