MCP.so
登录

Remote MCP Server on Cloudflare

@nevikashah

基本信息

分类

云与基础设施

传输方式

stdio

作者

nevikashah

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

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

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

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

常见问题

1

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.

2

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`.

3

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`.

4

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`.

5

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 服务器