Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by irvinebroque

This project provides a remote MCP (Model Context Protocol) server that can be deployed on Cloudflare Workers, complete with OAuth login. It allows you to connect to and interact with MCP tools remotely, including integrating with applications like Claude.

View on GitHub

Last updated: N/A

What is Remote MCP Server on Cloudflare?

This is a remote MCP server implementation designed to run on Cloudflare Workers. It allows you to expose MCP tools and services over the internet, making them accessible to remote clients and applications.

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 for development. To deploy it to Cloudflare, you need to create a KV namespace, update the wrangler.jsonc file with the namespace ID, and then run the deploy command. Finally, configure your MCP client (e.g., MCP Inspector or Claude) to point to the deployed server's URL.

Key features of Remote MCP Server on Cloudflare

  • Remote access to MCP tools

  • Cloudflare Workers deployment

  • OAuth login

  • Integration with MCP Inspector

  • Integration with Claude

  • SSE transport support

Use cases of Remote MCP Server on Cloudflare

  • Exposing MCP tools to remote clients

  • Integrating MCP tools with cloud-based applications

  • Connecting Claude to remote MCP services

  • Developing and testing MCP tools in a remote environment

  • Providing a centralized MCP server for multiple users

FAQ from Remote MCP Server on Cloudflare

How do I connect the MCP inspector to my server?

Start the inspector, switch the Transport Type to SSE, and enter your server's URL (e.g., http://localhost:8787/sse) in the inspector.

How do I connect Claude Desktop to my local MCP server?

Follow Anthropic's Quickstart and update the Claude configuration file to point to your local server's URL.

How do I deploy the server to Cloudflare?

Create a KV namespace, update the wrangler.jsonc file with the namespace ID, and then run the deploy command.

How do I debug the server?

Restart Claude, or try connecting directly to your MCP server on the command line with the npx mcp-remote command. You can also try clearing the files added to ~/.mcp-auth.

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for connecting applications to models and tools.