MCP.so
Sign In
Servers

Remote MCP Server + AutoRAG on Cloudflare

@TradieMate

Overview

What is Remote MCP Server + AutoRAG on Cloudflare?

Remote MCP Server + AutoRAG on Cloudflare is a deployable MCP (Model Context Protocol) server that runs on Cloudflare Workers and supports AutoRAG. It is designed for developers who want to build and host remote MCP tools that can be connected to clients like Claude Desktop or the MCP Inspector.

How to use Remote MCP Server + AutoRAG on Cloudflare?

Clone the repository, install dependencies with npm install, and run locally with npx nx dev remote-mcp-server (server at http://localhost:8787). To deploy to Cloudflare, create a KV namespace (npx wrangler kv namespace create OAUTH_KV), add its ID to wrangler.jsonc, and run npm run deploy. Connect clients via SSE by pointing them to the /sse endpoint (e.g., http://localhost:8787/sse locally, or https://<worker>.<account>.workers.dev/sse remotely). For Claude Desktop, configure claude_desktop_config.json with the mcp-remote proxy.

Key features of Remote MCP Server + AutoRAG on Cloudflare

  • Deploy MCP server to Cloudflare Workers
  • SSE transport for remote MCP clients
  • Mock OAuth login for authentication
  • Local development with npx nx dev
  • Works with Claude Desktop via mcp-remote proxy
  • Integrates with MCP Inspector for tool inspection

Use cases of Remote MCP Server + AutoRAG on Cloudflare

  • Build and host custom MCP tools on a global edge network
  • Connect Claude Desktop to remote, server-side tools
  • Prototype and test MCP APIs using the MCP Inspector

FAQ from Remote MCP Server + AutoRAG on Cloudflare

How do I run the server locally?

Clone the repo, run npm install, then npx nx dev remote-mcp-server. The server will be available at http://localhost:8787.

How do I deploy the server to Cloudflare?

Create a KV namespace named OAUTH_KV with npx wrangler kv namespace create OAUTH_KV, add the namespace ID to wrangler.jsonc, and run npm run deploy. The server will be available at a workers.dev URL.

How do I connect Claude Desktop to my remote server?

Edit the Claude Desktop configuration file (claude_desktop_config.json) and add a math MCP server entry using mcp-remote with the remote URL (e.g., https://worker-name.account-name.workers.dev/sse). Restart Claude.

What tools are available?

The README shows a math tool (an add tool) as an example. Other tools can be added by extending the server code.

How do I debug connection issues?

Restart Claude, or test directly from the command line with npx mcp-remote http://localhost:8787/sse. If needed, clear cached auth files with rm -rf ~/.mcp-auth.

Tags

More from Cloud & Infrastructure