MCP.so
登录

Remote MCP Server on Cloudflare

@UXMcCauley

基本信息

分类

云与基础设施

传输方式

stdio

作者

UXMcCauley

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

{
  "mcpServers": {
    "remote-mcp-server-uxmccauley": {
      "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 template for running a remote MCP (Model Context Protocol) server on Cloudflare Workers, complete with OAuth login. The server hosts tools (e.g., a math tool) that can be called by MCP clients like 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 with npx nx dev remote-mcp-server. Connect clients using the SSE endpoint (e.g., http://localhost:8787/sse). Deploy with npx wrangler kv namespace create OAUTH_KV, update wrangler.jsonc, then npm run deploy.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for remote access
  • OAuth login flow integrated
  • Example math tool (add) ready to use
  • Uses SSE transport for MCP communication
  • Supports local development with MCP Inspector
  • Can connect to Claude Desktop via mcp-remote proxy

Use cases of Remote MCP Server on Cloudflare

  • Hosting an MCP server on a global edge network
  • Testing MCP tools locally before deployment
  • Connecting Claude Desktop to remote MCP tools
  • Demonstrating OAuth authentication for MCP servers
  • Building and deploying custom MCP tools with Cloudflare Workers

常见问题

1

What runtime and dependencies are required?

Node.js and npm are needed for local development. A Cloudflare account and Wrangler CLI are required for deployment.

2

How does authentication work?

The server uses OAuth login. When connecting via MCP Inspector or Claude Desktop, a browser window opens for user/password login (mock login in local development).

3

What transport protocol does the server use?

It uses SSE (Server-Sent Events) as the MCP transport, accessed via the `/sse` endpoint.

4

How can I debug connection issues?

Run `npx mcp-remote http://localhost:8787/sse` to test direct CLI connection. Restart Claude or clear `~/.mcp-auth` if needed.

5

Where are OAuth data stored?

OAuth tokens are stored in a Cloudflare KV namespace (`OAUTH_KV`), created during deployment setup.

评论

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