MCP.so
登录

Remote MCP Server on Cloudflare

@nevikashah

关于 Remote MCP Server on Cloudflare

暂无概览

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

常见问题

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.

评论

云与基础设施 分类下的更多 MCP 服务器