home / mcp / remote mcp server

Remote MCP Server

Deploys a Cloudflare-based MCP server that runs remotely and exposes tools to MCP clients.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "anandkumarpatel-remote-mcp-server-authless": {
      "url": "https://remote-mcp-server-authless.<your-account>.workers.dev/sse"
    }
  }
}

You learn how to deploy and run a remote MCP server on Cloudflare that exposes its tools to MCP clients without requiring authentication. This setup lets you connect from MCP clients and run your tools from a remote, browser-friendly environment.

How to use

You can connect to your remote MCP server from both MCP clients and visual playgrounds. Use the Cloudflare AI Playground to test your server by entering its public URL, then invoke your tools directly in the playground interface. You can also connect local MCP clients by pointing them at the server’s SSE endpoint and using the standard tool invocation workflow. Restart and refresh as needed to ensure the tools appear and respond correctly.

How to install

Prerequisites: you need Node.js and npm installed on your machine. You also need internet access to fetch dependencies and deploy to Cloudflare if you choose the remote path.

Step 1: Create the remote MCP server locally to run or deploy to Cloudflare.

npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

Additional setup notes

To customize your MCP server, add your own tools inside the init() method of src/index.ts using this.server.tool(...). This allows you to extend the server with bespoke capabilities that respond to client requests.