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 Claude Code, Cursor, or Windsurf, for code refactoring, you may enjoy using this MCP 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 MCP 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 Node, Npm, Python, Pip, and aibolit:
Then, add this MCP server to Claude Code
(or simply edit ~/claude.json
, but it's not recommended):
Then, restart Claude Code 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 Node 18+, Npm, and GNU make installed):
If everything builds correctly after your changes, submit a pull request.
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol (MCP) server that helps AI coding assistants identify critical design issues in code, rather than just focusing on cosmetic problems when asked to improve code.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enhances AI-generated code quality through comprehensive analysis across 10 critical dimensions, helping identify issues before they become problems.Last updated -154PythonApache 2.0
- -securityAlicense-qualityAn MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.Last updated -10PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.Last updated -7717TypeScriptMIT License
- -securityAlicense-qualityModel Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.Last updated -272TypeScriptMIT License