MCP.so
登录

Remote MCP Server on Cloudflare

@Codebrahma

基本信息

分类

云与基础设施

传输方式

stdio

作者

Codebrahma

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

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

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

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

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

概览

What is Remote MCP Server on Cloudflare?

A guide and starter template for deploying a remote MCP server on Cloudflare Workers, complete with OAuth login. It is for developers who want to host MCP tools externally and connect them to clients like the MCP Inspector or Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, run locally with npx nx dev remote-mcp-server, then connect clients via SSE at http://localhost:8787/sse. To deploy, create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add the ID to wrangler.jsonc, and run npm run deploy. Configure Claude Desktop by adding an entry to its config file that uses npx mcp-remote <URL>/sse.

Key features of Remote MCP Server on Cloudflare

  • Local development with hot reload via nx.
  • OAuth login flow with mock login screen locally.
  • SSE transport for MCP communication.
  • Deploy to Cloudflare Workers with KV storage.
  • Connect MCP Inspector or Claude Desktop remotely.

Use cases of Remote MCP Server on Cloudflare

  • Develop and test MCP tools locally before deploying.
  • Host a public MCP server that clients can call remotely.
  • Integrate MCP-based tools into Claude Desktop via a remote proxy.
  • Learn how to set up OAuth for MCP on Cloudflare Workers.

常见问题

1

What runtime does this server require?

It runs on Cloudflare Workers using the `wrangler` CLI. Local development requires Node.js and npm.

2

How do I connect the MCP Inspector?

Start the inspector with `npx @modelcontextprotocol/inspector`, set Transport Type to `SSE`, and enter the server URL (e.g., `http://localhost:8787/sse`). Complete the OAuth login to see and call tools.

3

How do I connect Claude Desktop to a remote deployment?

Update the Claude configuration file to use `npx mcp-remote https://your-worker.your-account.workers.dev/sse` as the MCP server. Claude will open a browser window for OAuth login.

4

What happens during OAuth login?

Locally, a mock login screen accepts any email and password. On the deployed server, OAuth is handled via Cloudflare Workers using a KV namespace for session storage.

5

What transport protocol does this server use?

It uses Server-Sent Events (SSE) as the transport for MCP communication, as shown by the `/sse` endpoint.

评论

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