Docker Compose Validator

Docker Compose Validator MCP Connector for Claude

A+

Validate Docker Compose files for structural errors, port conflicts, and dependency cycles.

4 tools Official Updated Oct 1, 2026 Official Vinkius Partner

The Docker Compose Validator MCP server provides a specialized engine to audit your docker-compose.yml files. It identifies critical configuration errors before you run docker compose up, preventing runtime failures and deployment bottlenecks. Use tools like validate_structure to check YAML compliance, detect_network_collisions to find overlapping host ports, audit_dependency_graph to spot circular dependencies, and verify_resource_integrity to ensure all images and volumes are correctly defined.

dockercomposevalidationdevopsinfrastructure

4 tools expose this connector's capabilities to your AI agent.

audit_dependency_graph

Detect circular startup chains and broken service references

detect_network_collisions

Identify overlapping host port mappings

validate_structure

yml file. Validate the basic structural requirements of a Compose file

verify_resource_integrity

Ensure services have valid sources and environment/volume references are sound

See how to talk to your AI agent using Docker Compose Validator.

Check if this docker-compose file is valid: 'services: web: image: nginx db: image: postgres'

The structure is valid. Both the web and db services are correctly defined with images.

Are there any port conflicts in these services: {"web": {"ports": ["80:80"]}, "proxy": {"ports": ["80:80"]}}?

Yes, a collision was detected on host port 80 between the web and proxy services.

Check for broken dependencies in: {"web": ["db"], "db": ["redis"]}

No circular paths or broken references were found in the dependency graph.

It validates YAML structure, detects host port collisions, audits dependency graphs for circular loops, and verifies resource integrity like images and volumes.

Related Connectors