Enterprise DNA
M MCP Servers Developer low

PhpCodeArcheology/PhpCodeArcheology

by Various

PHP static analysis for architecture & maintainability — 60+ metrics, complexity analysis, dependency graphs, git churn hotspots, and AI-ready MCP server. Alternative to PHPMetrics

P

MCP

PhpCodeArcheology/PhpCodeArcheology

Added 1 June 2026

#architecture #ast #code-analysis #code-metrics #code-quality #complexity #developer-tools #maintainability

Overview

PHP static analysis tool that measures architecture and maintainability. It calculates over 60 metrics including complexity, dependency graphs, and git churn hotspots. It also offers an MCP server for AI tool integration.

Best for

Best for
PHP developers and teams focused on code maintainability and architecture quality.

Use cases

  • Analyze code complexity and structural quality
  • Identify maintenance hotspots via git churn
  • Generate dependency graphs for architecture review

How to use

Install

composer require --dev php-code-archeology/php-code-archeology

Tools exposed

  • ai-summary
  • uses_trait
  • depends_on
  • belongs_to
  • authored_by
  • cycle_member
  • get_health_score
  • get_problems
  • get_metrics
  • get_hotspots
  • get_refactoring_priorities
  • get_dependencies
  • get_class_list
  • get_graph
  • get_impact_analysis
  • get_test_coverage
  • search_code

Tested with

Claude Code

Notes

PHP static analysis tool that measures architecture and maintainability. It calculates over 60 metrics including complexity, dependency graphs, and git churn hotspots. It also offers an MCP server for AI tool integration.

77 stars on GitHub. Last updated 2026-05-30. Licensed MIT.

Use cases

  • Analyze code complexity and structural quality
  • Identify maintenance hotspots via git churn
  • Generate dependency graphs for architecture review

Pros

  • Comprehensive metric set with 60+ analysis dimensions
  • Includes git churn analysis to highlight risky code
  • Provides MCP server for AI integration

Cons

  • Stars count relatively low (77) indicating limited community adoption
  • Only available in PHP language, not for other stacks
  • May require setup effort compared to simpler tools

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Comprehensive metric set with 60+ analysis dimensions
  • Includes git churn analysis to highlight risky code
  • Provides MCP server for AI integration

Cons

  • Stars count relatively low (77) indicating limited community adoption
  • Only available in PHP language, not for other stacks
  • May require setup effort compared to simpler tools
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks