Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by cnndabbler

This project provides a remote MCP (Model Context Protocol) server that can be deployed on Cloudflare Workers. It allows you to connect to the server using the MCP Inspector or Claude Desktop and interact with defined tools.

View on GitHub

Last updated: N/A

What is Remote MCP Server on Cloudflare?

This is a remote MCP (Model Context Protocol) server implementation designed to run on Cloudflare Workers. It enables you to expose and interact with tools defined using the MCP standard.

How to use Remote MCP Server on Cloudflare?

To use this server, you first need to clone the repository and install the dependencies. You can then run it locally or deploy it to Cloudflare Workers. After deployment, you can connect to the server using the MCP Inspector or Claude Desktop by configuring the appropriate URL (either localhost or the workers.dev URL).

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server

  • Cloudflare Workers deployment

  • OAuth login

  • MCP Inspector compatibility

  • Claude Desktop integration

Use cases of Remote MCP Server on Cloudflare

  • Connecting Claude to custom tools

  • Exposing tools via a serverless function

  • Testing MCP implementations

  • Integrating with the Model Context Protocol ecosystem

FAQ from Remote MCP Server on Cloudflare

How do I connect to the server locally?

Use the MCP Inspector and set the Transport Type to SSE, then enter http://localhost:8787/sse as the URL.

How do I deploy the server to Cloudflare?

Create a KV namespace, add the namespace ID to wrangler.jsonc, and then run npm run deploy.

How do I connect Claude Desktop to the server?

Update the Claude configuration file to point to the server's URL (either localhost or the workers.dev URL) and restart Claude.

What if something goes wrong?

Try restarting Claude, or connect directly to the MCP server on the command line using npx mcp-remote http://localhost:8787/sse. Clearing the files in ~/.mcp-auth may also help.

What is MCP?

MCP stands for Model Context Protocol. It is a standard for connecting large language models to external tools and data sources.