The Aibolit MCP Server analyzes a single Java file to identify its most critical design issue for AI agents to fix.
Prioritizes significant problems: Focuses on design issues that would significantly improve code quality, maintainability, and stability when addressed.
Ignores cosmetic issues: Deliberately skips minor or easy-to-fix problems to concentrate on impactful refactoring opportunities.
AI integration: Integrates with AI agents like Claude Code via the MCP protocol to guide efficient code refactoring efforts.
MCP Server for Aibolit, Java Code Analyzer
If you use AI agents, such as , , or , for code refactoring, you may enjoy using this server. Your AI agent, when you ask it to "make code better," may wonder what exactly needs to be improved. Sadly, it may often overlook important problems. AI agents, by design, pay more attention to cosmetic issues, which are "low-hanging fruits" for them. This server will give your agent a hint: what is the most critical design issue in the code. Then, the agent will refactor it and fix the issue.
First, install , , , , and :
Then, add this server to
(or simply edit ~/claude.json, but it's not recommended):
Then, restart and ask it something along these lines: "Find the most critical design issue in my code base and fix it."
How to Contribute
To test this project, simply run the following commands (you'll need 18+, , and installed):
If everything builds correctly after your changes, submit a pull request.