MCP.so
Sign In

Overview

What is Remote MCP Server on Cloudflare?

A template repository for deploying a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login, enabling secure, remote access to MCP tools from clients like Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, run locally with npx nx dev remote-mcp-server, then deploy with npm run deploy after creating a Cloudflare KV namespace. Connect clients via SSE URL (e.g., http://localhost:8787/sse locally or the deployed workers.dev URL).

Key features of Remote MCP Server on Cloudflare

  • Run MCP server locally and deploy to Cloudflare Workers.
  • OAuth login for authenticated access.
  • Connect via MCP Inspector for testing.
  • Integrate with Claude Desktop using the mcp-remote proxy.
  • Uses SSE (Server-Sent Events) transport.
  • Minimal configuration with a single wrangler.jsonc file.

Use cases of Remote MCP Server on Cloudflare

  • Host custom MCP tools remotely for Claude Desktop.
  • Develop and test MCP tools locally before deployment.
  • Provide secure, authenticated MCP endpoints over the internet.
  • Rapidly prototype and iterate on MCP tool implementations.

FAQ from Remote MCP Server on Cloudflare

What does this server actually do?

It provides a hosted MCP server endpoint on Cloudflare Workers that supports OAuth login, allowing any MCP client to connect and call the tools you define in the server code.

How do I connect Claude Desktop to this server?

Use the mcp-remote package as a local proxy: configure Claude’s MCP server with "command": "npx", "args": ["mcp-remote", "https://your-worker.workers.dev/sse"].

What are the runtime dependencies?

Node.js, npm, Cloudflare Workers, and a Cloudflare KV namespace for OAuth state. The local proxy mcp-remote is required for Claude Desktop.

Which transport does the server use?

Server-Sent Events (SSE) on the /sse endpoint.

Does the server include any built-in tools?

No; it is a scaffold. The README uses a “math” tool as an example, but you must define your own tools in the server code.

Tags

More from Cloud & Infrastructure