Remote MCP Server logo

Remote MCP Server

by Spel

This is a remote MCP (Model Context Protocol) server designed to run on Cloudflare Workers, complete with OAuth login. It allows you to connect to and interact with MCP tools remotely, enabling integration with applications like Claude.

View on GitHub

Last updated: N/A

What is Remote MCP Server?

This is a remote Model Context Protocol (MCP) server implementation that can be deployed on Cloudflare Workers. It provides a way to expose MCP tools over the internet, allowing remote clients like the MCP Inspector and Claude to access and utilize them.

How to use Remote MCP Server?

To use this server, you first develop it locally using the provided instructions, which involve cloning the repository, installing dependencies, and running the server. Then, you can deploy it to Cloudflare using Wrangler. Finally, configure your MCP client (e.g., MCP Inspector or Claude) to connect to the deployed server's URL.

Key features of Remote MCP Server

  • Remote access to MCP tools

  • Cloudflare Workers deployment

  • OAuth login

  • SSE (Server-Sent Events) transport

  • Integration with MCP Inspector and Claude

Use cases of Remote MCP Server

  • Connecting Claude to remote tools

  • Exposing AI tools to remote applications

  • Building distributed AI systems

  • Testing and debugging MCP integrations

  • Providing a centralized MCP server for multiple clients

FAQ from Remote MCP Server

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) and click 'Connect'.

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?

Restart Claude, or try connecting directly to your MCP server on the command line with npx mcp-remote http://localhost:8787/sse. Clearing ~/.mcp-auth may also help.

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for connecting AI models with external tools and services.