MCP.so
登录

Remote MCP Server on Cloudflare

@hongsw

基本信息

分类

云与基础设施

传输方式

stdio

作者

hongsw

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

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

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

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

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

概览

What is Remote MCP Server on Cloudflare?

A template for running a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It allows developers to quickly deploy and test MCP tools that can be accessed by remote clients like Claude Desktop or the MCP Inspector.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, run locally with npx nx dev remote-mcp-server, or deploy to Cloudflare Workers using npm run deploy after setting up a KV namespace. Connect remote MCP clients (e.g., MCP Inspector, Claude Desktop) by pointing them to the server's SSE endpoint (e.g., http://localhost:8787/sse locally or the Worker's workers.dev URL).

Key features of Remote MCP Server on Cloudflare

  • Runs as a Cloudflare Worker with OAuth authentication
  • Supports SSE (Server-Sent Events) transport for MCP
  • Easy local development with hot‑reload
  • One‑command deployment to Cloudflare Workers
  • Works with standard MCP clients (Inspector, Claude Desktop)
  • Built‑in KV namespace for OAuth token storage

Use cases of Remote MCP Server on Cloudflare

  • Developing and testing custom MCP tools locally
  • Connecting Claude Desktop to a remote MCP server over the internet
  • Demonstrating MCP integrations without managing your own server infrastructure
  • Quick prototyping of MCP‑enabled AI workflows

常见问题

1

How do I debug connection issues?

Run `npx mcp-remote http://localhost:8787/sse` on the command line to test connectivity. In rare cases, clear the files in `~/.mcp-auth` with `rm -rf ~/.mcp-auth` and restart Claude.

2

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

In Claude Desktop, go to Settings > Developer > Edit Config and add an entry using `npx mcp-remote` with the server’s SSE URL (e.g., `https://worker-name.account-name.workers.dev/sse`). Restart Claude.

3

What transport protocol does this MCP server use?

The server uses Server‑Sent Events (SSE) as its transport protocol. Remote clients connect to the `/sse` endpoint.

4

What dependencies do I need to run or deploy?

Locally you need Node.js and npm. For deployment you need a Cloudflare account, the Wrangler CLI (`npx wrangler`), and a Cloudflare KV namespace named `OAUTH_KV`.

5

How do I deploy to Cloudflare Workers?

First run `npx wrangler kv namespace create OAUTH_KV` and add the returned namespace ID to `wrangler.jsonc`. Then run `npm run deploy`. The server will be accessible at a `workers.dev` URL.

评论

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