home / mcp / cloudflare mcp server

Cloudflare MCP Server

Deploys a remote MCP server on Cloudflare Workers with a public SSE endpoint for tools access and remote clients.

Installation
Add the following to your MCP client configuration file.

Configuration

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

You can deploy a remote MCP (Multi-Client Platform) server on Cloudflare Workers that serves tools via an MCP client. This setup lets you run your own MCP server that others can connect to, customize with your tools, and access from compatible clients like the Cloudflare AI Playground or Claude Desktop.

How to use

Use an MCP client to connect to your remote server. For the Cloudflare-hosted MCP server, you connect via the deployed URL and the server exposes its tools for use inside your MCP workflow. You can also connect from local clients by pointing them to the server’s SSE endpoint, enabling you to invoke your custom tools remotely.

How to install

Prerequisites you need on your machine before installing your MCP server:

  • Node.js and npm installed on your system
  • A Cloudflare account if you plan to deploy to Cloudflare Workers
  • A terminal with access to the internet

Step-by-step commands to create and run your remote MCP server on Cloudflare Workers:

# Create the MCP server using the Cloudflare template
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

Alternatively, you can deploy your MCP server from a browser by opening the deployment URL and following the prompts to set up your server at the given Cloudflare URL. The deployment flow will provision a remote MCP server at a URL like remote-mcp-server-authless.your-account.workers.dev/sse.

Additional sections

Customize your MCP server by adding your own tools. Inside the server’s initialization file, define each tool with the server’s tool registration method. This lets you extend the MCP with personalized capabilities that your clients can invoke remotely.

Connect to the Cloudflare AI Playground to use your MCP server directly from a browser-based client. Steps:

  • Open the Cloudflare AI Playground at the designated URL
  • Enter your deployed MCP server’s SSE URL (for example, remote-mcp-server-authless.your-account.workers.dev/sse)
  • Interact with your server’s tools in the playground interface

You can also connect a local MCP client such as Claude Desktop to your remote MCP server using the mcp-remote proxy. Create or edit your MCP configuration in Claude Desktop to point at your server’s SSE endpoint. Example configuration shown below demonstrates connecting a remote server tool named calculator.

{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://remote-mcp-server-authless.your-account.workers.dev/sse"
      ]
    }
  }
}