MCP.so
登录

Remote MCP Server on Cloudflare

@shixixiyue

关于 Remote MCP Server on Cloudflare

暂无概览

基本信息

分类

云与基础设施

运行时

node

传输方式

stdio

发布者

shixixiyue

配置

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

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Remote MCP Server on Cloudflare?

Remote MCP Server on Cloudflare is a template for deploying a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It provides a ready-to-run example for developers who want to expose MCP tools over the internet and connect them to clients like Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, and run locally using npx nx dev remote-mcp-server. Connect the MCP Inspector by setting Transport Type to SSE and the URL to http://localhost:8787/sse. For Claude Desktop, update its configuration file with a npx mcp-remote command pointing to the server's SSE endpoint. Deploy to Cloudflare with npm run deploy after creating a KV namespace and adding its ID to wrangler.jsonc.

Key features of Remote MCP Server on Cloudflare

  • Local development with hot-reload via Nx.
  • OAuth login included for secure access.
  • Connect via MCP Inspector for testing.
  • Integrates with Claude Desktop through a local proxy.
  • Deploy to Cloudflare Workers with one command.
  • Debugging helpers like mcp-remote and auth cache clearing.

Use cases of Remote MCP Server on Cloudflare

  • Deploying math or other tool servers remotely for AI assistants.
  • Building and testing MCP tools locally before deployment.
  • Enabling Claude Desktop to call tools hosted on Cloudflare.
  • Creating a remote tool server with OAuth authentication.

FAQ from Remote MCP Server on Cloudflare

How do I debug connection issues?

Restart Claude, or try connecting directly using npx mcp-remote http://localhost:8787/sse. If problems persist, clear the auth cache with rm -rf ~/.mcp-auth.

How do I deploy the server to Cloudflare?

Run npx wrangler kv namespace create OAUTH_KV, add the returned KV namespace ID to wrangler.jsonc, then run npm run deploy.

How do I connect the MCP Inspector?

Start it with npx @modelcontextprotocol/inspector, switch Transport Type to SSE, enter the server's SSE URL (e.g., http://localhost:8787/sse), and click Connect. You will see a mock login screen.

What dependencies or runtime does this server require?

It runs on Cloudflare Workers and uses a KV namespace for OAuth data. Local development requires Node.js and npm.

Does the server include a real authentication provider?

No, the included OAuth screen is a mock. You can enter any email and password to log in locally. For production, you would replace it with a real OAuth provider.

评论

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