MCP.so
Sign In

Remote MCP Server on Cloudflare

@RomanTCC

About Remote MCP Server on Cloudflare

No overview available yet

Basic information

Category

Cloud & Infrastructure

Runtime

node

Transports

stdio

Publisher

RomanTCC

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

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

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.dev URL 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.

Comments

More Cloud & Infrastructure MCP servers