Remote MCP Server logo

Remote MCP Server

by nevikashah

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 MCP clients like the MCP Inspector and Claude Desktop to your server.

View on GitHub

Last updated: N/A

What is Remote MCP Server?

This is a remote MCP server implementation designed to run on Cloudflare Workers. It allows you to expose MCP tools and functionalities over a network, enabling communication between different applications and services using the Model Context Protocol.

How to use Remote MCP Server?

To use this server, you first need to clone the repository and install the dependencies. You can then run the server locally for development and testing. To deploy it to Cloudflare, you need to create a KV namespace and update the wrangler.jsonc file with the namespace ID before running the deploy command. After deployment, you can connect MCP clients by providing the server's URL.

Key features of Remote MCP Server

  • Remote MCP server

  • Cloudflare Workers deployment

  • OAuth login

  • MCP Inspector compatibility

  • Claude Desktop integration

Use cases of Remote MCP Server

  • Exposing MCP tools to remote applications

  • Integrating MCP functionality into cloud-based services

  • Connecting Claude Desktop to remote MCP servers

  • Developing and testing MCP integrations

  • Creating a centralized MCP server for multiple clients

FAQ from Remote MCP Server

How do I connect the MCP Inspector?

Start the MCP Inspector, switch the Transport Type to SSE, and enter the server's URL (e.g., http://localhost:8787/sse) in the inspector.

How do I connect Claude Desktop?

Update the Claude configuration file to point to your server's URL and restart Claude.

What if something goes wrong?

Try restarting Claude or connecting directly to your MCP server on the command line using npx mcp-remote http://localhost:8787/sse. Clearing the files in ~/.mcp-auth may also help.

How do I deploy to Cloudflare?

Create a KV namespace using npx wrangler@latest kv namespace create remote-mcp-server-oauth-kv, add the namespace ID to wrangler.jsonc, and then run npm run deploy.

What is MCP?

MCP stands for Model Context Protocol. It is a protocol for communication between applications and services, particularly in the context of AI models and tools.