I’m going to connect n8n to claude desktop. in connectors menue, asks the server address and says that must start with https:// but when I refer to n8n mcp pat and see the address is began with http://. what can i DO?
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
For a quick setup, install and authenticate ngrok on Windows, then run ngrok http 5678. Add N8N_EDITOR_BASE_URL=https://YOUR-NGROK-HOST and N8N_PROXY_HOPS=1 to your existing n8n container’s environment and recreate the container with its existing data volume. Open n8n through that HTTPS address, then enter https://YOUR-NGROK-HOST/mcp-server/http in Claude and approve the OAuth connection. Keep ngrok running while using it.
That http:// is probably just what n8n builds from its own settings, so it needs two things. First, Claude Desktop can only reach an https address that is publicly reachable, and a Docker container on your Windows PC is not that by default. Put a reverse proxy or a tunnel (Caddy, nginx, Cloudflare Tunnel) in front of n8n so you get a real https URL. Second, tell n8n about it by setting WEBHOOK_URL=https://your-domain/ in the container environment (and N8N_PROXY_HOPS=1 if it sits behind a proxy). Recreate the container, then reopen the MCP settings and the address should now start with https://. If it still shows http, check that the variable actually reached the container with docker exec env.
Claude’s connector needs a public https address, and n8n shows http because it doesn’t know its external URL. Put a Cloudflare Tunnel or reverse proxy in front of the Docker container, then set WEBHOOK_URL to the https address and restart n8n. Use that URL for the MCP endpoint.
One thing to add to both tunnel suggestions: whether it’s ngrok or Cloudflare Tunnel, it puts your whole n8n editor on a public URL, not just the MCP endpoint. Before you open it up, give the owner account a strong password and turn on two-factor login, and stop the tunnel when you aren’t using it. Don’t port-forward 5678 on your router as a shortcut, because that leaves it open all the time.
Hi @Seyyed_Reza_Mirabed, welcome! n8n builds the URLs it shows (webhook and MCP addresses) from its own idea of its public address, and when it runs in Docker behind a reverse proxy or HTTPS tunnel it often only knows its internal http:// address. The usual fix is to tell it the public HTTPS URL when starting the container, for example -e WEBHOOK_URL=https://your-domain.example/ (and N8N_PROTOCOL=https / N8N_EDITOR_BASE_URL if you use them), then restart and reopen the MCP settings page so the address is regenerated. Claude Desktop connectors also need a publicly reachable HTTPS address, so plain localhost over http won’t work even if the URL is edited by hand. If you’re running it locally, a tunnel or reverse proxy with a TLS certificate is needed first. Could you share how you expose n8n (Cloudflare Tunnel, nginx, ngrok, or only localhost)? That will help narrow it down.