
whyreach
Read-only Docker network diagnosis: finds why one container can't reach another, with evidence and fixes.
- tools
- 4
- transport
- STDIO
- last updated
- Nov 21, 2026
What it does
- Diagnoses failed connections with
diagnose_connection, naming the cause from 14 rules, such as localhost used inside a container or a server bound to 127.0.0.1 - Gathers evidence with
inspect_environmentandrun_probe, and stores findings throughsave_report; the server changes nothing in containers, networks, firewall, or DNS - Requires Linux with Docker Engine and Docker socket access; runs locally over stdio and logs every call to an audit file
- Designed for developers running Docker Compose services, often alongside an AI coding agent that needs proof before acting
Tools
4 toolsPublic tool metadata for what this MCP can expose to an agent.
diagnose_connectionDiagnoses why one container cannot connect to another container or to the host.
Diagnoses why one container cannot connect to another container or to the host.
No parameter schema in public metadata yet.
inspect_environment
No parameter schema in public metadata yet.
run_probe
No parameter schema in public metadata yet.
save_report
No parameter schema in public metadata yet.
Readme
whyreach
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.
whyreach in a terminal. The demo's worker logs Connection refused for http://localhost:8080/. Then whyreach --from service:worker@whyreach-demo localhost:8080 names the cause, WR007: localhost inside worker is worker itself, not api. It lists the facts and the fix: connect to api:8080.
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.
Details
- Repository
- github.com/sandstrompl/whyreach
- Website
- github.com/SandstromPL/whyreach
- Categories
- DevOps & Cloud, Monitoring & Observability, Developer Tools
- Package
ghcr.io/sandstrompl/whyreach:0.2.0- Transport
- STDIO
- Registry
- MCP registry, active
Similar to whyreach
More DevOps & Cloud
DevDoctorMCP serverbannawat011 starRead-only local diagnostics for Rust, Node, Docker, ports, and environment configuration.
docker-debuggerSkillonewave-ai/claude-skills314 installsPractical Docker troubleshooting guide covering container exits, build failures, networking, and compose debugging with ready-made commands.
container-debuggingSkillaj-geddes/useful-ai-prompts496 installsDebugging workflow for Docker containers covering startup failures, crashes, resource limits, and networking.
Komodo MCP ServerMCP servermp-tool58 starsRemote control of Komodo-managed Docker servers, stacks, deployments, and builds for AI assistants.
networking-pluginPluginlaurigates/claude-plugins60 starsNetwork diagnostics, reconnaissance, monitoring, and HTTP load testing
Pare DockerMCP serverdave-london141 starsStructured Docker operations including ps, images, logs, build, and compose as typed JSON.