MCP.so
Sign In

Remote MCP Server on Cloudflare

@heiyhia

Basic information

Category

Cloud & Infrastructure

Transports

stdio

Author

heiyhia

About Remote MCP Server on Cloudflare

No overview available yet

Remote MCP Server on Cloudflare config

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

{
  "mcpServers": {
    "remote-mcp-server-heiyhia": {
      "command": "npx",
      "args": [
        "nx",
        "dev",
        "remote-mcp-server"
      ]
    }
  }
}

Remote MCP Server on Cloudflare tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

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 remote MCP server that runs on Cloudflare Workers with integrated OAuth login. It allows developers to serve MCP tools over the internet and authenticate users before tool access.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. For remote access, deploy to Cloudflare using npx wrangler kv namespace create OAUTH_KV and npm run deploy. Connect clients like the MCP Inspector or Claude Desktop via the SSE endpoint (e.g., http://localhost:8787/sse or your workers.dev URL). Use a local proxy (npx mcp-remote) when connecting from Claude Desktop.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global, serverless deployment.
  • Includes OAuth-based login for secure access.
  • Supports SSE transport for MCP communication.
  • Works with MCP Inspector and Claude Desktop.
  • Provides a local development environment.
  • Uses Cloudflare KV for OAuth state storage.

Use cases of Remote MCP Server on Cloudflare

  • Hosting custom MCP tools accessible from any internet-connected MCP client.
  • Adding authentication to an MCP server without building auth from scratch.
  • Rapidly prototyping and deploying MCP tools using Cloudflare's serverless platform.
  • Connecting Claude Desktop to a remote MCP server with secure login.

Frequently asked questions

1

What do I need to run the server locally?

Clone the `cloudflare/ai` repository, run `npm install`, then `npx nx dev remote-mcp-server`. The server will be available at `http://localhost:8787/`.

2

How do I connect Claude Desktop to the server?

Configure Claude Desktop's MCP settings to point to a local proxy: set the `mcpServers` entry with command `npx`, arguments `["mcp-remote", "http://localhost:8787/sse"]` (or the remote URL). Restart Claude and a browser window will open for login.

3

How do I deploy the server to Cloudflare?

Create a KV namespace with `npx wrangler kv namespace create OAUTH_KV`, copy its ID into `wrangler.jsonc`, then run `npm run deploy`. Your server will be live at a `workers.dev` URL.

4

How can I debug connection issues?

Restart Claude, or test the server directly with `npx mcp-remote http://localhost:8787/sse`. In rare cases, delete the `~/.mcp-auth` folder.

5

How do I connect a remote MCP client (like the Inspector)?

Use the MCP Inspector, set Transport Type to SSE, and enter your deployed `workers.dev` URL appended with `/sse` (e.g., `worker-name.account-name.workers.dev/sse`). Click Connect; you will be redirected to an OAuth login page.

Comments

More Cloud & Infrastructure MCP servers