MCP.so
登录

Remote MCP Server on Cloudflare

@RomanTCC

基本信息

分类

云与基础设施

传输方式

stdio

作者

RomanTCC

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

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

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

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

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

概览

What is Remote MCP Server on Cloudflare?

It is a guide and reference implementation to get a remote MCP server running on Cloudflare Workers, complete with OAuth login. It is intended for developers who want to host Model Context Protocol servers remotely and connect them to clients like Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Deploy to Cloudflare by creating a KV namespace, updating wrangler.jsonc, and running npm run deploy. Connect clients (e.g., MCP Inspector or Claude Desktop) using the SSE endpoint (e.g., /sse) of the local or deployed server.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers with OAuth login.
  • Supports local development with hot-reload via npx nx dev.
  • Integrates with MCP Inspector for testing tools.
  • Connects to Claude Desktop via SSE and a local proxy.
  • Deployable to a workers.dev URL with KV namespace for OAuth state.
  • Provides a mock login screen for local testing.

Use cases of Remote MCP Server on Cloudflare

  • Hosting a secure, remote MCP server with OAuth authentication.
  • Developing and testing MCP tools locally before deploying to production.
  • Connecting Claude Desktop to a remote MCP server for tool invocation.
  • Experimenting with MCP’s SSE transport and OAuth flow in a serverless environment.

常见问题

1

How do I deploy my MCP 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`.

2

How do I connect Claude Desktop to my remote MCP server?

Edit your Claude Desktop configuration file to set the MCP server command to `npx mcp-remote` with the `workers.dev`/sse URL (e.g., `https://worker-name.account-name.workers.dev/sse`).

3

How can I test my MCP server locally?

Run `npx nx dev remote-mcp-server`, open `http://localhost:8787/` in a browser, then use the MCP Inspector with SSE transport pointing to `http://localhost:8787/sse`. Log in with any email and password.

4

What transport does the MCP server use?

It uses Server-Sent Events (SSE). Clients connect to the `/sse` endpoint of the server.

5

How can I debug connection issues?

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

评论

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