Http:// insted of https://

Describe the problem/error/question

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.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.43.8
  • Database (default: SQLite):SQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):docker
  • Operating system: win 11 pro

Hey @Seyyed_Reza_Mirabed, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@kjooleng, @GeoffS, @krisn0x - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hey @Seyyed_Reza_Mirabed welcome to the n8n community.
Your screenshot shows localhost, which only works on your own PC. Claude’s remote connectors connect from Anthropic’s servers, even in Claude Desktop, so this connection needs a public HTTPS address.

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.