MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@apples2gotoday

概要

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

This example allows you to deploy a remote Model Context Protocol (MCP) server that doesn't require authentication on Cloudflare Workers. It is designed for developers who want to create custom MCP tools and make them accessible remotely without needing an auth layer.

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

Deploy using the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing the init() method in src/index.ts using this.server.tool(...). Connect remote clients like Cloudflare AI Playground by entering your server’s URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), or connect Claude Desktop via the mcp-remote proxy with the provided JSON configuration.

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

  • No authentication required for remote access.
  • Deploys directly to Cloudflare Workers.
  • Custom tools defined in src/index.ts.
  • Compatible with Cloudflare AI Playground.
  • Works with local MCP clients via mcp-remote proxy.

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

  • Host MCP tools as a public endpoint without auth overhead.
  • Experiment with MCP tool creation in a serverless environment.
  • Connect custom MCP tools to Cloudflare AI Playground.
  • Link tools to Claude Desktop through a remote proxy.
  • Rapidly prototype and share MCP tools across teams.

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

What does this MCP server do?

It provides a remote MCP server that can be deployed on Cloudflare Workers with no authentication, allowing you to define custom tools accessible over SSE.

How do I deploy this server?

Click the “Deploy to Workers” button or run the npm create cloudflare command with the template cloudflare/ai/demos/remote-mcp-authless.

How can I add my own tools?

Inside the init() method of src/index.ts, use this.server.tool(...) to define each tool. Refer to the Cloudflare MCP tools documentation for details.

How do I connect to Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed MCP server URL (ending in /sse), and you can use the tools directly in the playground.

How do I connect to Claude Desktop?

Install the mcp-remote package, then add the server configuration in Claude Desktop’s Developer settings using npx mcp-remote <your-sse-url>. Restart Claude to see the tools.

What runtime or dependencies are required?

You need Node.js and npm to use the npm create cloudflare command. Deployment requires a Cloudflare Workers account. The server itself runs without authentication.

タグ

「開発者ツール」の他のコンテンツ