MCP.so
登录

Remote MCP Server on Cloudflare

@githubpradeep

基本信息

分类

云与基础设施

传输方式

stdio

作者

githubpradeep

关于 Remote MCP Server on Cloudflare

暂无概览

Remote MCP Server on Cloudflare 配置

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

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

Remote MCP Server on Cloudflare 工具

工具列表暂未提供

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

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

概览

What is Remote MCP Server on Cloudflare?

Remote MCP Server on Cloudflare is a template for deploying a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It is designed for developers who want to host remote MCP servers and connect them to clients like Claude Desktop or the MCP Inspector.

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. To connect clients, use npx @modelcontextprotocol/inspector with SSE transport at <url>/sse. Deploy with npx wrangler kv namespace create OAUTH_KV, add the KV namespace ID to wrangler.jsonc, then npm run deploy. Configure Claude Desktop by updating its mcpServers JSON to point to the remote SSE endpoint using mcp-remote.

Key features of Remote MCP Server on Cloudflare

  • Deploy MCP server on Cloudflare Workers with OAuth
  • Supports local development with live reload
  • Connect via MCP Inspector over SSE transport
  • Integrates with Claude Desktop via mcp-remote proxy
  • Uses Cloudflare KV for OAuth token storage
  • Includes mock login for local testing

Use cases of Remote MCP Server on Cloudflare

  • Host a math tool server that Claude can call remotely
  • Run custom MCP tools behind OAuth authentication
  • Prototype and debug MCP servers locally then deploy to production
  • Connect multiple MCP clients to a single cloud-hosted server

常见问题

1

What runtime or dependencies are required?

Node.js and npm are required for local development. Deployment uses Cloudflare Workers, so a Cloudflare account and Wrangler CLI are needed.

2

How does authentication work?

The server includes OAuth login. Locally, a mock login screen accepts any email and password. On Cloudflare, OAuth flows as configured.

3

How do I connect Claude Desktop to a remote server?

Update Claude's config file with an mcpServers entry using `command: "npx"`, args `["mcp-remote", "https://your-worker.workers.dev/sse"]`, then restart Claude.

4

Where is the OAuth token stored?

It is stored in a Cloudflare KV namespace (configured via `wrangler kv namespace create OAUTH_KV` and adding the ID to `wrangler.jsonc`).

5

What transport does the server use?

The server uses SSE (Server-Sent Events) as the transport protocol, exposed at the `/sse` endpoint.

6

How do I debug connection issues?

Try connecting directly via `npx mcp-remote http://localhost:8787/sse` (or your deployed URL). Restart Claude, or clear `~/.mcp-auth` in rare cases.

评论

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