MCP.so
Sign In

Remote MCP Server on Cloudflare

@anishone

Basic information

Category

Cloud & Infrastructure

Transports

stdio

Author

anishone

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-anishone": {
      "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?

Remote MCP Server on Cloudflare is a template to get a remote MCP (Model Context Protocol) server running on Cloudflare Workers with OAuth login. It is for developers who want to deploy and connect MCP tools to clients like Claude Desktop over SSE.

How to use Remote MCP Server on Cloudflare?

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

Key features of Remote MCP Server on Cloudflare

  • Deploy a remote MCP server on Cloudflare Workers.
  • Includes OAuth login flow for authentication.
  • SSE transport for remote connections.
  • Local development with hot reload via Nx.
  • Connect to Claude Desktop via a local proxy.
  • Debugging support with CLI and credential cleanup.

Use cases of Remote MCP Server on Cloudflare

  • Running a serverless math tool MCP server for AI assistants.
  • Hosting custom MCP tools and calling them from remote clients.
  • Prototyping MCP integrations with OAuth-based user authentication.
  • Connecting MCP tools to Claude Desktop in a production-like environment.

Frequently asked questions

1

How to connect the MCP Inspector to the local server?

Start the inspector with `npx @modelcontextprotocol/inspector`, switch transport type to SSE, and enter `http://localhost:8787/sse` as the server URL. A mock login screen will appear; input any email and password to authenticate.

2

How to connect Claude Desktop to the remote server?

Update Claude Desktop’s configuration file to include an `mcpServers` entry with the command `npx mcp-remote` and the `args` set to your `workers.dev` URL with the `/sse` path (e.g., `["https://worker-name.account-name.workers.dev/sse"]`).

3

How to deploy the server to Cloudflare?

Run `npx wrangler kv namespace create OAUTH_KV` to create a KV namespace, add its ID to `wrangler.jsonc`, then run `npm run deploy` to deploy the Worker.

4

What to do if the connection fails?

Restart Claude, or test the MCP server directly with `npx mcp-remote <URL>`. If needed, clear cached credentials with `rm -rf ~/.mcp-auth`.

Comments

More Cloud & Infrastructure MCP servers