Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1000 Bytes

File metadata and controls

33 lines (22 loc) · 1000 Bytes

Adding to Claude.ai

Claude.ai connects to MCP servers over HTTP. You need to expose your locally running server via a public tunnel.

Steps

  1. Start the local server:
npm start
# Server runs at http://localhost:3001/mcp
  1. Expose it via a tunnel:
npx cloudflared tunnel --url http://localhost:3001

Cloudflared will print a public URL like https://abc-123.trycloudflare.com.

  1. In Claude.ai, go to Settings → Integrations and add the tunnel URL as a custom MCP connector:
https://abc-123.trycloudflare.com/mcp

Note the /mcp suffix. The tunnel URL changes each time you restart cloudflared. You'll need to update the connector in Claude.ai settings when this happens.

Prerequisites

  • The server must be running locally first.
  • cloudflared — installed automatically via npx, or install it directly for a persistent setup.