MCP.so
Sign In

Remote MCP Server on Cloudflare

@Codebrahma

About Remote MCP Server on Cloudflare

No overview available yet

Basic information

Category

Cloud & Infrastructure

Runtime

node

Transports

stdio

Publisher

Codebrahma

Config

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

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

A guide and starter template for deploying a remote MCP server on Cloudflare Workers, complete with OAuth login. It is for developers who want to host MCP tools externally and connect them to clients like the MCP Inspector or Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, run locally with npx nx dev remote-mcp-server, then connect clients via SSE at http://localhost:8787/sse. To deploy, create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add the ID to wrangler.jsonc, and run npm run deploy. Configure Claude Desktop by adding an entry to its config file that uses npx mcp-remote <URL>/sse.

Key features of Remote MCP Server on Cloudflare

  • Local development with hot reload via nx.
  • OAuth login flow with mock login screen locally.
  • SSE transport for MCP communication.
  • Deploy to Cloudflare Workers with KV storage.
  • Connect MCP Inspector or Claude Desktop remotely.

Use cases of Remote MCP Server on Cloudflare

  • Develop and test MCP tools locally before deploying.
  • Host a public MCP server that clients can call remotely.
  • Integrate MCP-based tools into Claude Desktop via a remote proxy.
  • Learn how to set up OAuth for MCP on Cloudflare Workers.

FAQ from Remote MCP Server on Cloudflare

What runtime does this server require?

It runs on Cloudflare Workers using the wrangler CLI. Local development requires Node.js and npm.

How do I connect the MCP Inspector?

Start the inspector with npx @modelcontextprotocol/inspector, set Transport Type to SSE, and enter the server URL (e.g., http://localhost:8787/sse). Complete the OAuth login to see and call tools.

How do I connect Claude Desktop to a remote deployment?

Update the Claude configuration file to use npx mcp-remote https://your-worker.your-account.workers.dev/sse as the MCP server. Claude will open a browser window for OAuth login.

What happens during OAuth login?

Locally, a mock login screen accepts any email and password. On the deployed server, OAuth is handled via Cloudflare Workers using a KV namespace for session storage.

What transport protocol does this server use?

It uses Server-Sent Events (SSE) as the transport for MCP communication, as shown by the /sse endpoint.

Comments

More Cloud & Infrastructure MCP servers