MCP.so
登录
服务器

Building a Remote MCP Server on Cloudflare (Without Auth)

@elizabethsiegle

概览

What is Building a Remote MCP Server on Cloudflare (Without Auth)?

A template and deployment guide for creating a remote MCP server that runs on Cloudflare Workers without requiring authentication. It allows developers to define custom tools and connect them to MCP clients.

How to use Building a Remote MCP Server on Cloudflare (Without Auth)?

Deploy by clicking the "Deploy to Workers" button or running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Add custom tools in src/index.ts inside the init() method using this.server.tool(...). Connect clients like Cloudflare AI Playground (enter the SSE URL) or Claude Desktop (via the mcp-remote proxy).

Key features of Building a Remote MCP Server on Cloudflare (Without Auth)

  • Deploy on Cloudflare Workers with a single button
  • No authentication required for the MCP server
  • Add custom tools using a standard MCP API
  • Connect directly from Cloudflare AI Playground
  • Works with Claude Desktop via the mcp-remote proxy

Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)

  • Quickly spin up a remote MCP server for testing or demos
  • Expose MCP tools without needing user authentication
  • Integrate MCP tools with Cloudflare AI Playground
  • Use MCP tools in Claude Desktop from a remote server

FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)

How do I deploy the MCP server?

Click the "Deploy to Workers" button in the README, or use npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless.

How do I add my own tools?

Inside src/index.ts, in the init() method, define each tool using this.server.tool(...).

How do I connect Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed server URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), and start using the tools.

How do I connect Claude Desktop?

Use the mcp-remote proxy (npx mcp-remote) and update the Claude Desktop config to point to your server’s SSE endpoint.

Does this server require authentication?

No, this deployment deliberately does not include authentication.

标签

来自「开发工具」的更多内容