Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by growtha

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

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 enables you to expose tools and functionalities defined using the Model Context Protocol (MCP) and interact with them remotely.

How to use Remote MCP Server on Cloudflare?

First, clone the repository and install dependencies. Then, you can run the server locally for development and testing. To deploy to Cloudflare, create a KV namespace, update wrangler.jsonc with the namespace ID, and run the deploy command. You can connect to the server using the MCP Inspector or Claude Desktop by configuring the appropriate URLs.

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server

  • Cloudflare Workers deployment

  • OAuth login

  • Integration with MCP Inspector

  • Integration with Claude Desktop

Use cases of Remote MCP Server on Cloudflare

  • Exposing AI tools remotely

  • Connecting Claude to custom tools

  • Building serverless AI applications

  • Testing and development of MCP integrations

  • Creating a scalable MCP server infrastructure

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).

How do I connect Claude Desktop?

Update the Claude configuration file with the server URL and restart Claude.

What if something goes wrong?

Restart Claude, try connecting directly to the MCP server on the command line, or clear the files in ~/.mcp-auth.

How do I deploy to Cloudflare?

Create a KV namespace, update wrangler.jsonc, and run npm run deploy.

What is MCP?

MCP stands for Model Context Protocol. Refer to modelcontextprotocol.io for more information.