Read-only Docker network diagnosis: why one container can't reach another, with evidence.
MCPpedia last refreshed this data
io.github.SandstromPL/whyreach is an MCP server that read-only Docker network diagnosis: why one container can't reach another, with evidence. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 43/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"whyreach": {
"args": [
"mcp",
"serve"
],
"command": "/home/you/.local/bin/whyreach"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Read-only Docker network diagnosis: why one container can't reach another, with evidence.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in developer-tools / health
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
MCP server for using the GitLab API
The TypeScript MCP framework
A NestJS module to effortlessly create Model Context Protocol (MCP) servers for exposing AI tools, resources, and prompts.
MCP Security Weekly
Get CVE alerts and security updates for io.github.SandstromPL/whyreach and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
What is it? A tool that tells you why one Docker container can't connect to another container or to the host. It shows the proof and the fix, and it changes nothing. You can run it yourself or let your AI coding agent run it.
Why does it exist? Errors like Connection refused or a timeout don't say what's wrong. The cause could be a wrong address or port, a service that only listens to itself, containers on different networks, or a service that isn't ready yet. whyreach finds the real one.
Who is it for? Developers who run several services with Docker Compose on Linux, or on Windows inside WSL2 (from v0.2), often together with an AI coding agent such as Claude Code, Codex or Cursor. Docker Desktop on macOS and native Windows builds come later.
Why was it needed? Finding the cause by hand takes many commands, and you need to know Docker networking well. Small images often don't have the tools to check from inside. AI agents doing the same take many steps and may run commands that change things.
Why use it?
localhost means the container itself.When a service gets Connection refused, a timeout or a name that doesn't resolve, whyreach collects evidence from the right network namespaces: Docker metadata, the listening sockets inside each container, DNS as the source container sees it, and a TCP connect from the source. Then it names the cause from a catalog of 20 rules, such as localhost used inside a container, a server bound to 127.0.0.1, or two Compose projects that share no network. Each finding comes with the evidence behind it and a fix.
$ whyreach --from service:worker@whyreach-demo localhost:8080
✗ worker → localhost:8080 — cause identified (high)
WR007 localhost inside worker is worker itself, not api
Inside a container, localhost is the container's own network namespace,
not the host's or another container's. Nothing in worker listens on
port 8080, while api (listening on 0.0.0.0:8080 in api, network
whyreach-demo_default) does.
facts • listening on port 8080 in api: 0.0.0.0:8080/tcp [ev-07]
• nothing listens on port 8080 in worker [ev-08]
fix Connect to api:8080 instead of localhost:8080: the Compose service
name resolves on the shared network.
…
Status: v0.2. Linux with Docker Engine, and Windows through WSL2 (Docker Engine in the distro, or Docker Desktop's WSL integration): docs/wsl2.md. v0.2 also adds six causes (
localhostthat means IPv6 too, an internal network, a Docker subnet that takes a VPN's or a LAN's range, a silent drop, the host's firewall, a stale container address) and CI mode. Docker Desktop on macOS and native Windows builds come later (INITIAL.md §3.7). v0.2.1 fixes what a check against 15 real broken setups from Stack Overflow, the Docker forums and GitHub issues found: a wrong cause at high confidence, a missed one, and fixes that pointed through the host when another container was meant (docs/research/real-cases.md).