Remote MCP Server on Cloudflare logo

Remote MCP Server on Cloudflare

by kartikpathe-kp

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 to the server using the MCP Inspector or Claude Desktop.

View on GitHub

Last updated: N/A

What is Remote MCP Server on Cloudflare?

This is a remote MCP server designed to run on Cloudflare Workers. It facilitates communication between AI models (like Claude) and external tools using the Model Context Protocol, enabling models to access and utilize these tools.

How to use Remote MCP Server on Cloudflare?

First, clone the repository and install dependencies. Then, run the server locally for development and testing. Deploy it to Cloudflare Workers following the provided steps. Finally, connect to the server using the MCP Inspector or configure Claude Desktop to use it.

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server

  • Cloudflare Workers deployment

  • OAuth login

  • MCP Inspector compatibility

  • Claude Desktop integration

  • SSE transport

Use cases of Remote MCP Server on Cloudflare

  • Enabling Claude to use external tools

  • Providing a remote MCP endpoint for AI models

  • Integrating AI models with custom functionalities

  • Developing and testing MCP servers locally

  • Deploying MCP servers to a serverless environment

FAQ from Remote MCP Server on Cloudflare

How do I connect to the server locally?

Use the MCP Inspector and set the Transport Type to SSE with the URL http://localhost:8787/sse.

How do I deploy the server to Cloudflare?

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

How do I connect Claude Desktop to the server?

Update the Claude configuration file to point to the server's URL (either local or remote) and restart Claude.

What if something goes wrong?

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

Where do I find my Cloudflare worker URL?

After deploying to Cloudflare, your worker URL will be in the format worker-name.account-name.workers.dev/sse.