Claude.ai connects to MCP servers over HTTP. You need to expose your locally running server via a public tunnel.
- Start the local server:
npm start
# Server runs at http://localhost:3001/mcp- Expose it via a tunnel:
npx cloudflared tunnel --url http://localhost:3001Cloudflared will print a public URL like https://abc-123.trycloudflare.com.
- 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
/mcpsuffix. The tunnel URL changes each time you restart cloudflared. You'll need to update the connector in Claude.ai settings when this happens.
- The server must be running locally first.
- cloudflared — installed automatically via
npx, or install it directly for a persistent setup.