MCP.so
登录

Remote MCP Server on Cloudflare

@ctbedford

关于 Remote MCP Server on Cloudflare

暂无概览

基本信息

分类

云与基础设施

运行时

node

传输方式

stdio

发布者

ctbedford

配置

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

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

工具

未检测到工具

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

概览

What is Remote MCP Server on Cloudflare?

This project provides a template to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers, complete with OAuth login. It allows developers to quickly set up a server that can expose tools to MCP-compatible clients such as Claude Desktop or the MCP Inspector.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. Connect clients (MCP Inspector or Claude Desktop) by pointing them to the SSE endpoint (e.g., http://localhost:8787/sse). Deploy to Cloudflare Workers with wrangler kv namespace create OAUTH_KV and npm run deploy, then use the resulting workers.dev URL.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global edge deployment.
  • Includes OAuth login flow for authentication.
  • Supports SSE transport for MCP communication.
  • Works with the MCP Inspector for testing.
  • Integrates with Claude Desktop via mcp-remote proxy.
  • Provides local development environment with hot reload.

Use cases of Remote MCP Server on Cloudflare

  • Deploy a remote MCP server to expose custom tools to AI clients.
  • Develop and test MCP tools locally before deploying to the edge.
  • Connect Claude Desktop to a remote server with OAuth authentication.
  • Use as a reference implementation for Cloudflare-based MCP servers.

FAQ from Remote MCP Server on Cloudflare

How do I authenticate when connecting via the MCP Inspector?

The inspector shows a mock login screen; input any email and password to proceed.

What transport type does the server use?

It uses SSE (Server-Sent Events); set the transport type to SSE in the MCP Inspector.

How do I connect Claude Desktop to the remote server?

Update Claude's config file (~/.claude/config.json or via Settings) to use mcp-remote with the server's SSE URL, e.g., https://worker-name.account-name.workers.dev/sse.

What if I encounter connection issues?

Restart Claude, or test the connection directly with npx mcp-remote <URL>. In rare cases, clear the auth cache at ~/.mcp-auth by removing the folder.

What environment variables or services are required for deployment?

You need a Cloudflare Workers account and a KV namespace (OAUTH_KV) created via wrangler kv namespace create.

评论

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