MCP.so
登录

Remote MCP Server on Cloudflare

@anandkumarpatel

基本信息

分类

云与基础设施

传输方式

stdio

作者

anandkumarpatel

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

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

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

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

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

概览

What is Remote MCP Server on Cloudflare?

It is a template for deploying a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It allows developers to run MCP tools that can be accessed remotely over HTTP using SSE (Server-Sent Events) and authenticated via a login screen.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, then run locally with npx nx dev remote-mcp-server. To deploy, create a KV namespace with npx wrangler kv namespace create OAUTH_KV, add its ID to wrangler.jsonc, and run npm run deploy. Connect using the MCP Inspector by selecting SSE transport and entering the server’s /sse URL (e.g., http://localhost:8787/sse locally or the workers.dev URL remotely). For Claude Desktop, use the mcp-remote proxy in the configuration file.

Key features of Remote MCP Server on Cloudflare

  • Deploy MCP server on Cloudflare Workers with OAuth authentication
  • Local development with live reload via npx nx dev
  • Connect using MCP Inspector via SSE transport
  • Integrate with Claude Desktop using the mcp-remote proxy
  • OAuth login screen for access control
  • Debugging support with command-line testing and auth cache clearing

Use cases of Remote MCP Server on Cloudflare

  • Run a remote MCP server that can be accessed from anywhere via HTTP/SSE
  • Connect Claude Desktop to custom MCP tools hosted on Cloudflare Workers
  • Prototype and test MCP tools locally before deploying to production
  • Add OAuth-based authentication to protect MCP endpoints

常见问题

1

What dependencies are required to run the server?

You need Node.js, npm, and npx. The README uses `git clone`, `npm install`, and `npx` commands throughout.

2

How do I connect the MCP Inspector to my remote server?

Open the MCP Inspector (`npx @modelcontextprotocol/inspector`), set Transport Type to `SSE`, enter the server’s URL followed by `/sse` (e.g., `https://worker-name.account-name.workers.dev/sse`), and click “Connect”. You will be redirected to a login screen.

3

Can I connect this MCP server to Claude Desktop?

Yes. In Claude Desktop’s configuration file, add a “math” entry with `"command": "npx"` and `"args": ["mcp-remote", "https://your-worker.workers.dev/sse"]`. Restart Claude to see the available tools.

4

Where does the OAuth data live?

The README uses a KV namespace named `OAUTH_KV` to store OAuth-related data. You create it with `npx wrangler kv namespace create OAUTH_KV` and configure the namespace ID in `wrangler.jsonc`.

5

How can I debug connection issues?

Restart Claude, or test directly from the command line with `npx mcp-remote http://localhost:8787/sse`. If needed, clear the auth cache by deleting `~/.mcp-auth` with `rm -rf ~/.mcp-auth`.

评论

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