PhpCodeArcheology
UnclaimedPHP static analysis for architecture & maintainability — 60+ metrics, complexity analysis, dependency graphs, git churn hotspots, and AI-ready MCP server. Alternative to PHPMetrics.
Install
docker run --rm -v "$(pwd)":/project -v "$(pwd)/report":/output phpcodearcheology /projectSet up this server
More in AI & ML
Browse the full directoryUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
11 of 11 tools
Documented tools (11)
From project documentation. A server handshake does not verify each tool’s description or behavior.
get_class_list
All classes with key metrics, sortable and filterable
get_dependencies
Class dependency analysis (incoming/outgoing)
get_graph
Knowledge graph as JSON (nodes, edges, cycles)
get_health_score
Overall code health score, grade, and project statistics
get_hotspots
Git hotspots ranked by churn × complexity
get_impact_analysis
Impact analysis: what breaks if you change a method? Shows callers and call chains
get_metrics
Detailed metrics for a specific class, file, or function
get_problems
Code quality problems, filterable by severity and type
get_refactoring_priorities
Ranked refactoring candidates with recommendations
get_test_coverage
Test coverage summary — tested/untested classes, coverage gaps, test mapping
search_code
Search entities by name with metric overview
Tool change history
FAQ
Questions about PhpCodeArcheology MCP Server
- How do I connect PhpCodeArcheology MCP Server to Claude?
- The listing records `docker run --rm -v "$(pwd)":/project -v "$(pwd)/report":/output phpcodearcheology /project` as its setup step. Run it, then follow the repository's instructions for the client configuration; the listing names Claude Code, VS Code as compatible clients.
- Is PhpCodeArcheology MCP Server free?
- The listed licence is MIT. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can PhpCodeArcheology MCP Server do?
- PhpCodeArcheology MCP Server documents 11 tools to the agent, including get_class_list, get_dependencies, get_graph. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.