Docker.for.mac in credentials?

I’ve been trying to get MCP to work locally hosted on my mac. I cannot get it to work through the sse address unless I write docker.for.mac in the address. e.g.

http://docker.for.mac.localhost:5678/mcp/

The loopback address for the n8n container is 127.0.0.0, but that does not work when you use it as a substitute docker.for.mac.

The same goes for Ollama. I am running it on my machine not on docker. the credentials to successfuly access Ollama via n8n are:

http://docker.for.mac.localhost:11434/

When I don’t use docker.for.mac the error i get is:

McpClientTool: Failed to connect to MCP Server

Error in sub-node MCP Client

I did have ngrok set up at one time. I don’t know if this will have done something the port addresses?

I am at a loss.

n8n setup

  • 1.90.2
  • Running n8n via Docker
  • Mac Sequoia 15.3