MCP.so
Sign In

Building a Remote MCP Server on Cloudflare (Without Auth)

@piyushgithub15

About Building a Remote MCP Server on Cloudflare (Without Auth)

No overview available yet

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"
      ]
    }
  }
}

Tools

No tools detected

Fetch the live tool list by running this server in a temporary sandbox using the button above.

Overview

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

It is an example that deploys a remote MCP server without authentication on Cloudflare Workers. It is intended for developers who want to create MCP endpoints for AI agents and tools.

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

Deploy via the "Deploy to Workers" button or by running npm create cloudflare@latest my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground by entering the deploy URL, or from Claude Desktop using the mcp-remote proxy.

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

  • Deploy remote MCP server on Cloudflare Workers
  • No authentication required
  • Customize tools in src/index.ts
  • Connect from Cloudflare AI Playground
  • Connect from Claude Desktop via mcp-remote proxy

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

  • Build remote MCP endpoints for AI agents
  • Integrate custom tools with Cloudflare Workers
  • Connect MCP server to Claude Desktop or AI Playground

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

Do I need authentication?

No, this example deploys a remote MCP server that does not require authentication.

How do I deploy the server?

Use the "Deploy to Workers" button or run npm create cloudflare with the specified template.

How do I add my own tools?

Define each tool inside the init() method of src/index.ts using this.server.tool(...).

How can I test the server remotely?

Connect from Cloudflare AI Playground by entering your deploy URL, or use the mcp-remote proxy to connect from Claude Desktop.

What protocol does the server use?

The server uses SSE (Server-Sent Events), as indicated by the /sse endpoint in the deploy URL.

Frequently asked questions

Do I need authentication?

No, this example deploys a remote MCP server that does not require authentication.

How do I deploy the server?

Use the "Deploy to Workers" button or run `npm create cloudflare` with the specified template.

How do I add my own tools?

Define each tool inside the `init()` method of `src/index.ts` using `this.server.tool(...)`.

How can I test the server remotely?

Connect from Cloudflare AI Playground by entering your deploy URL, or use the `mcp-remote` proxy to connect from Claude Desktop.

What protocol does the server use?

The server uses SSE (Server-Sent Events), as indicated by the `/sse` endpoint in the deploy URL.

Comments

More Developer Tools MCP servers