Brings PMD's static code analyzer into Claude, letting you run code quality checks and detect copy-paste duplicates across your codebase. PMD scans Java, JavaScript, Apex, Kotlin, Swift, Python, and a dozen other languages with 400+ built-in rules that catch unused variables, empty catch blocks, unnecessary object creation, and other common flaws. The CPD component finds duplicated code blocks that slip through code review. Useful when you're refactoring a large codebase, enforcing coding standards during development, or hunting down technical debt before it compounds. Think of it as having a veteran code reviewer available on demand through Claude's interface.
claude mcp add --transport stdio roeiba-pmd -- npx -y @springsoftware/pmd-mcp