MCP.so
Sign In

Remote MCP Server on Cloudflare

@Rev4nchist

About Remote MCP Server on Cloudflare

No overview available yet

Basic information

Category

Cloud & Infrastructure

Runtime

node

Transports

stdio

Publisher

Rev4nchist

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "cloudflare-remote-mcp-server-rev4nchist": {
      "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?

Remote MCP Server on Cloudflare is a reference implementation that deploys a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It demonstrates how to run a remote MCP server that communicates over SSE (Server-Sent Events) and can be connected to MCP clients such as the MCP Inspector or Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, and run locally using npx nx dev remote-mcp-server. Connect via the MCP Inspector by selecting SSE transport and entering http://localhost:8787/sse. For Claude Desktop, configure mcpServers with the mcp-remote command pointing to the SSE URL. Deploy to Cloudflare with npm run deploy after setting up an OAuth KV namespace in wrangler.jsonc.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global edge deployment.
  • Includes OAuth-based login flow for authentication.
  • Uses SSE (Server-Sent Events) transport for MCP communication.
  • Provides example tools like math (add) for demonstration.
  • Can be developed locally and then deployed remotely.

Use cases of Remote MCP Server on Cloudflare

  • Developing and testing a remote MCP server locally with the MCP Inspector.
  • Connecting Claude Desktop to a locally running MCP server via a proxy.
  • Deploying an OAuth-protected MCP server on Cloudflare Workers for production use.
  • Extending the server with custom tools for various MCP clients.

FAQ from Remote MCP Server on Cloudflare

How do I connect the MCP Inspector?

Start the inspector with npx @modelcontextprotocol/inspector, set Transport Type to SSE, enter http://localhost:8787/sse (or your remote URL), and log in with any email/password.

How do I connect Claude Desktop?

Edit Claude Desktop’s config file and add an entry using mcp-remote with the command npx and args ["mcp-remote", "http://localhost:8787/sse"] (or your remote URL). Restart Claude; a browser window will open for login.

How do I deploy the 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 can I debug connection issues?

Try restarting Claude, or connect directly via npx mcp-remote http://localhost:8787/sse. If needed, clear cached auth files with rm -rf ~/.mcp-auth.

What transport type does the server use?

The server communicates over SSE (Server-Sent Events). Clients connect to the /sse endpoint of the server URL.

Comments

More Cloud & Infrastructure MCP servers