MCP.so
Sign In

Remote MCP Server on Cloudflare

@nevikashah

About Remote MCP Server on Cloudflare

No overview available yet

Config

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

{
  "mcpServers": {
    "remote-mcp-server-nevikashah": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"
      ]
    }
  }
}

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 project that shows how to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It includes a math tool example and is intended for developers wanting to host MCP servers remotely.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, and run locally with npm run dev. Deploy to Cloudflare by creating a KV namespace, adding the ID to wrangler.jsonc, and running npm run deploy. Connect clients like the MCP Inspector or Claude Desktop by pointing them to the SSE endpoint (e.g., http://localhost:8787/sse or the deployed workers.dev URL).

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server hosted on Cloudflare Workers with OAuth login
  • Local development workflow with npm run dev
  • Connect via MCP Inspector using SSE transport
  • Connect Claude Desktop via the mcp-remote proxy
  • Deploy to Cloudflare with npm run deploy
  • Includes an example math tool

Use cases of Remote MCP Server on Cloudflare

  • Deploy a remote MCP server accessible over the internet
  • Use Claude Desktop with a remote MCP server requiring OAuth login
  • Develop and test MCP tools locally before deploying to production
  • Integrate MCP capabilities into Cloudflare Workers

FAQ from Remote MCP Server on Cloudflare

How do I connect the MCP Inspector?

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

How do I connect Claude Desktop to the remote server?

Edit your Claude Desktop configuration file to add an entry using mcp-remote pointing to your server's SSE URL, e.g., https://worker-name.account-name.workers.dev/sse.

How do I deploy the server to Cloudflare?

Run npx wrangler@latest kv namespace create remote-mcp-server-oauth-kv, add the returned KV namespace ID to wrangler.jsonc, then run npm run deploy.

How can I debug connectivity issues?

Restart Claude, or try connecting directly from the command line with npx mcp-remote http://localhost:8787/sse. In rare cases, clear the files in ~/.mcp-auth with rm -rf ~/.mcp-auth.

What dependencies are required?

Node.js, npm, npx, a Cloudflare account, and the Wrangler CLI. For local development, the project clones from the cloudflare/ai repository.

Frequently asked questions

How do I connect the MCP Inspector?

Start the inspector (`npx @modelcontextprotocol/inspector`), switch Transport Type to `SSE`, enter `http://localhost:8787/sse` (or your deployed URL), click "Connect", and log in with any email/password.

How do I connect Claude Desktop to the remote server?

Edit your Claude Desktop configuration file to add an entry using `mcp-remote` pointing to your server's SSE URL, e.g., `https://worker-name.account-name.workers.dev/sse`.

How do I deploy the server to Cloudflare?

Run `npx wrangler@latest kv namespace create remote-mcp-server-oauth-kv`, add the returned KV namespace ID to `wrangler.jsonc`, then run `npm run deploy`.

How can I debug connectivity issues?

Restart Claude, or try connecting directly from the command line with `npx mcp-remote http://localhost:8787/sse`. In rare cases, clear the files in `~/.mcp-auth` with `rm -rf ~/.mcp-auth`.

What dependencies are required?

Node.js, npm, npx, a Cloudflare account, and the Wrangler CLI. For local development, the project clones from the `cloudflare/ai` repository.

Comments

More Cloud & Infrastructure MCP servers