Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by hamishll

This project provides a remote MCP (Model Context Protocol) server that can be deployed on Cloudflare Workers. It enables integration with tools like the MCP Inspector and Claude Desktop, allowing them to interact with and call defined tools.

View on GitHub

Last updated: N/A

What is Remote MCP Server on Cloudflare?

This is a remote Model Context Protocol (MCP) server designed to run on Cloudflare Workers. It allows you to expose tools and functionalities that can be accessed by MCP-compatible clients like the MCP Inspector and Claude Desktop.

How to use Remote MCP Server on Cloudflare?

To use this server, you first need to clone the repository and install dependencies. You can then run it locally for development and testing. To deploy it to Cloudflare, you need to create a KV namespace, configure wrangler.jsonc with the namespace ID, and then run the deploy command. Finally, configure your MCP client (e.g., MCP Inspector or Claude Desktop) to point to the server's URL.

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server

  • Cloudflare Workers deployment

  • OAuth login

  • Integration with MCP Inspector

  • Integration with Claude Desktop

  • SSE transport

Use cases of Remote MCP Server on Cloudflare

  • Exposing custom tools to AI models

  • Integrating AI models with external services

  • Building serverless AI applications

  • Providing a standardized interface for AI tool interaction

  • Extending the functionality of Claude Desktop

FAQ from Remote MCP Server on Cloudflare

How do I connect the MCP Inspector?

Start the inspector, switch the Transport Type to SSE and enter the server URL (e.g., http://localhost:8787/sse or worker-name.account-name.workers.dev/sse).

How do I connect Claude Desktop?

Update the Claude configuration file to point to your server's URL and restart Claude.

What if something goes wrong?

Restart Claude, or try connecting directly to your MCP server on the command line with npx mcp-remote <server-url>.

Where is the Claude configuration file?

In Claude Desktop, go to Settings > Developer > Edit Config to find your configuration file.

What do I do if I have authentication issues?

In some cases, clearing the files added to ~/.mcp-auth might help. Use the command rm -rf ~/.mcp-auth.