MCP.so
Sign In

Remote MCP Server on Cloudflare

@UXMcCauley

Basic information

Category

Cloud & Infrastructure

Transports

stdio

Author

UXMcCauley

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

It is a guide and template for running a remote MCP (Model Context Protocol) server on Cloudflare Workers, complete with OAuth login. The server hosts tools (e.g., a math tool) that can be called by MCP clients like 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 with npx nx dev remote-mcp-server. Connect clients using the SSE endpoint (e.g., http://localhost:8787/sse). Deploy with npx wrangler kv namespace create OAUTH_KV, update wrangler.jsonc, then npm run deploy.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for remote access
  • OAuth login flow integrated
  • Example math tool (add) ready to use
  • Uses SSE transport for MCP communication
  • Supports local development with MCP Inspector
  • Can connect to Claude Desktop via mcp-remote proxy

Use cases of Remote MCP Server on Cloudflare

  • Hosting an MCP server on a global edge network
  • Testing MCP tools locally before deployment
  • Connecting Claude Desktop to remote MCP tools
  • Demonstrating OAuth authentication for MCP servers
  • Building and deploying custom MCP tools with Cloudflare Workers

Frequently asked questions

1

What runtime and dependencies are required?

Node.js and npm are needed for local development. A Cloudflare account and Wrangler CLI are required for deployment.

2

How does authentication work?

The server uses OAuth login. When connecting via MCP Inspector or Claude Desktop, a browser window opens for user/password login (mock login in local development).

3

What transport protocol does the server use?

It uses SSE (Server-Sent Events) as the MCP transport, accessed via the `/sse` endpoint.

4

How can I debug connection issues?

Run `npx mcp-remote http://localhost:8787/sse` to test direct CLI connection. Restart Claude or clear `~/.mcp-auth` if needed.

5

Where are OAuth data stored?

OAuth tokens are stored in a Cloudflare KV namespace (`OAUTH_KV`), created during deployment setup.

Comments

More Cloud & Infrastructure MCP servers