Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by langjihao

This project provides a remote MCP (Model Context Protocol) server that can be deployed on Cloudflare Workers. It includes OAuth login and allows connection to tools like the MCP Inspector and Claude Desktop.

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, enabling communication between applications and language models using the Model Context Protocol. It facilitates the use of tools and integrations with platforms like Claude.

How to use Remote MCP Server on Cloudflare?

To use this server, you can first develop it locally using the provided instructions, which involve cloning the repository, installing dependencies, and running the server. Then, you can connect the MCP inspector or Claude Desktop to your local server. Finally, you can deploy it to Cloudflare using Wrangler and connect to the deployed server remotely.

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server

  • Cloudflare Workers deployment

  • OAuth login

  • MCP Inspector integration

  • Claude Desktop integration

Use cases of Remote MCP Server on Cloudflare

  • Connecting applications to language models

  • Enabling tool usage within language model contexts

  • Building serverless MCP solutions

  • Integrating with Anthropic's Claude

  • Facilitating communication between different software components

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.

How do I deploy to Cloudflare?

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

What if something goes wrong?

Try restarting Claude or connecting directly to the MCP server using npx mcp-remote http://localhost:8787/sse. You can also clear the files added to ~/.mcp-auth.

What is MCP?

MCP stands for Model Context Protocol. It is a protocol that allows applications to communicate with language models and tools.