Remote MCP Server logo

Remote MCP Server

by tomtev

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 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 MCP server designed to run on Cloudflare Workers. It allows you to expose MCP tools and services over the internet, enabling remote access and integration with applications like Claude.

How to use Remote MCP Server?

  1. Clone the repository and install dependencies. 2. Run the server locally for development. 3. Deploy to Cloudflare using Wrangler. 4. Connect to the server using the MCP Inspector or configure Claude to use the remote server URL.

Key features of Remote MCP Server

  • Remote access to MCP tools

  • Cloudflare Workers deployment

  • OAuth login

  • Integration with MCP Inspector

  • Integration with Claude

  • SSE transport

Use cases of Remote MCP Server

  • Connecting Claude to remote MCP tools

  • Building distributed AI applications

  • Exposing MCP services to multiple users

  • Testing and debugging MCP integrations

  • Creating a centralized MCP server for multiple clients

FAQ from Remote MCP Server

How do I connect to the server locally?

Use the MCP Inspector and set the Transport Type to SSE, then enter http://localhost:8787/sse as the URL.

How do I deploy the server to Cloudflare?

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

How do I connect Claude to the remote server?

Update the Claude configuration file to point to your workers.dev URL (ex: worker-name.account-name.workers.dev/sse).

What if something goes wrong?

Try restarting Claude, or connecting directly to your MCP server on the command line with the command: npx mcp-remote http://localhost:8787/sse. You can also try clearing the files added to ~/.mcp-auth.

What is MCP?

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