Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by RayDataCo

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 MCP clients 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. It enables interaction with tools and models using the Model Context Protocol, providing a standardized way for applications like Claude to access and utilize external functionalities.

How to use Remote MCP Server on Cloudflare?

To use this server, you can develop it locally using npm run dev remote-mcp-server. Then, deploy it to Cloudflare Workers following the provided steps involving wrangler and KV namespaces. Finally, configure your MCP client (like MCP Inspector or Claude Desktop) to connect to the deployed server's URL.

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server deployment

  • Cloudflare Workers compatibility

  • OAuth login

  • Integration with MCP Inspector

  • Integration with Claude Desktop

Use cases of Remote MCP Server on Cloudflare

  • Connecting Claude to external tools

  • Providing a remote interface for MCP tools

  • Developing and testing MCP integrations

  • Enabling model access to external functionalities

  • Standardizing tool access for AI models

FAQ from Remote MCP Server on Cloudflare

How do I connect the MCP Inspector?

Start the inspector with npx @modelcontextprotocol/inspector. Switch the Transport Type to SSE and enter your server's URL (e.g., http://localhost:8787/sse)

How do I connect Claude Desktop?

Update the Claude configuration file to point to your server's 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 your MCP server on the command line with 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, a standard for connecting AI models to external tools and functionalities.