aibolit
MCP Server for Aibolit Java Static Analyzer: Helping Your AI Agent Identify Hotspots for Refactoring
claude mcp add --transport stdio cqfn-aibolit-mcp-server npx -y aibolit-mcp-server@0.0.6
How to use
This MCP server integrates the Aibolit Java code analyzer into the Model Context Protocol workflow. When queried via MCP-enabled agents (for example Claude Code), it processes a codebase to identify the most critical design issue according to Aibolit's analysis and returns a prioritized hint. This helps AI agents focus on the highest-impact refactoring opportunities rather than surface-level improvements. The server is exposed as an MCP endpoint via the npm-distributed package and can be invoked by clients that support MCP commands, allowing you to request a hotspot/critical issue for a given project snapshot.
How to install
Prerequisites:
- Node.js (18+)
- npm
- Internet access to fetch the MCP server package from npm
Installation and setup:
-
Install the MCP server via npx (as shown in the config):
npx -y aibolit-mcp-server@0.0.6
This will fetch and run the MCP server package compatible with the MCP protocol.
-
If you prefer to install locally for reuse, you can install the package globally or add it to a project:
npm install -g aibolit-mcp-server@0.0.6
or as a project dependency
npm install aibolit-mcp-server@0.0.6
-
Start the server (if the package provides a start script, refer to its package.json; otherwise the npx invocation may launch it directly). Typical usage via MCP clients is to register the server name (e.g., "aibolit") and connect using the MCP protocol.
-
Verify connectivity with an MCP client or by following the documentation linked in the MCP ecosystem (MCP homepage).
Note: The README example demonstrates adding the server to Claude Code via:
claude mcp add aibolit npx aibolit-mcp-server@0.0.6
Adjust the commands if your environment requires a local install or a different startup workflow.
Additional notes
Tips and known considerations:
- The server package name used in MCP workflows is aibolit-mcp-server with version 0.0.6; ensure network access to npm registry for retrieval.
- No specific environment variables are documented in the README snippet; if you encounter issues, check the package's runtime requirements and any optional config the MCP server may accept.
- This server relies on Aibolit for analysis; ensure Java-related tooling is compatible with the Aibolit version used by the package if you extend or customize analyses.
- When integrating with Claude Code or other MCP clients, confirm the correct MCP command format (here, npx with -y) and that the client supports the server name you register ("aibolit").
Related MCP Servers
gemini-cli
An open-source AI agent that brings the power of Gemini directly into your terminal.
rohlik
MCP server that lets you shop groceries across the Rohlik Group platforms (Rohlik.cz, Knuspr.de, Gurkerl.at, Kifli.hu, Sezamo.ro)
mcp -arangodb
This is a TypeScript-based MCP server that provides database interaction capabilities through ArangoDB. It implements core database operations and allows seamless integration with ArangoDB through MCP tools. You can use it wih Claude app and also extension for VSCode that works with mcp like Cline!
jigsawstack
Model Context Protocol Server that allows AI models to interact with JigsawStack models!
oura
Oura Ring Model Controller Protocol (MCP).
mcp-rfc
An MCP server for fetching RFC related information.