MCP.so
登录

Remote MCP Server on Cloudflare

@Rev4nchist

基本信息

分类

云与基础设施

传输方式

stdio

作者

Rev4nchist

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

{
  "mcpServers": {
    "cloudflare-remote-mcp-server-rev4nchist": {
      "command": "npx",
      "args": [
        "nx",
        "dev",
        "remote-mcp-server"
      ]
    }
  }
}

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

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

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

概览

What is Remote MCP Server on Cloudflare?

Remote MCP Server on Cloudflare is a reference implementation that deploys a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It demonstrates how to run a remote MCP server that communicates over SSE (Server-Sent Events) and can be connected to MCP clients such as 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 using npx nx dev remote-mcp-server. Connect via the MCP Inspector by selecting SSE transport and entering http://localhost:8787/sse. For Claude Desktop, configure mcpServers with the mcp-remote command pointing to the SSE URL. Deploy to Cloudflare with npm run deploy after setting up an OAuth KV namespace in wrangler.jsonc.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global edge deployment.
  • Includes OAuth-based login flow for authentication.
  • Uses SSE (Server-Sent Events) transport for MCP communication.
  • Provides example tools like math (add) for demonstration.
  • Can be developed locally and then deployed remotely.

Use cases of Remote MCP Server on Cloudflare

  • Developing and testing a remote MCP server locally with the MCP Inspector.
  • Connecting Claude Desktop to a locally running MCP server via a proxy.
  • Deploying an OAuth-protected MCP server on Cloudflare Workers for production use.
  • Extending the server with custom tools for various MCP clients.

常见问题

1

How do I connect the MCP Inspector?

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

2

How do I connect Claude Desktop?

Edit Claude Desktop’s config file and add an entry using `mcp-remote` with the command `npx` and args `["mcp-remote", "http://localhost:8787/sse"]` (or your remote URL). Restart Claude; a browser window will open for login.

3

How do I deploy the server to Cloudflare?

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

4

How can I debug connection issues?

Try restarting Claude, or connect directly via `npx mcp-remote http://localhost:8787/sse`. If needed, clear cached auth files with `rm -rf ~/.mcp-auth`.

5

What transport type does the server use?

The server communicates over SSE (Server-Sent Events). Clients connect to the `/sse` endpoint of the server URL.

评论

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