home / mcp / cloudflare mcp server
Deploys a remote MCP server on Cloudflare Workers with a public SSE endpoint for tools access and remote clients.
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.
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.
Prerequisites you need on your machine before installing your MCP server:
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-authlessAlternatively, 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.
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:
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"
]
}
}
}