aibolit-mcp-server is an MCP (Model Context Protocol) server designed specifically for the Aibolit Java static analyzer, aiming to help AI agents identify refactoring hotspots in code.
Purpose
When developers use AI agents (such as Claude Code, Cursor, Windsurf) for code refactoring, the agent may not be clear about what specifically needs improvement, and often focuses only on surface-level issues (i.e., "low-hanging fruit") while ignoring critical design flaws. This MCP server provides hints to the agent, pointing out the most critical design issues in the code, guiding the agent to refactor and fix the problems.
Main Capabilities
- Integrates the Aibolit Java static analyzer to analyze Java code.
- Provides hints to AI agents about the most critical design issues in the code.
- Helps agents focus on important refactorings rather than surface-level issues.
Usage
- Install Node, Npm, Python, Pip, and aibolit.
- Add this MCP server to Claude Code (or edit ~/claude.json, but this is not recommended).
- Restart Claude Code and ask instructions such as "Find the most critical design issue in my codebase and fix it."
Applicable Scenarios
- Using AI agents for Java code refactoring.
- Scenarios where critical design issues in code need to be identified.
Limitations
- The specific installation commands and configuration details are not fully given in the provided materials, and are not yet available.
- Only targets Java code and depends on the Aibolit static analyzer.
- Requires Node 18+, Npm, and GNU make for testing (mentioned in the contribution guidelines).