mcp-server-analyzer — Claude Code MCP server: analysis
This MCP server checks Python, JavaScript, and TypeScript with Ruff, ty, Vulture, and Biome. Use it for code review, formatting, and dead-code checks.
claude mcp add mcp-server-analyzer -- uvx mcp-server-analyzerWhat mcp-server-analyzer does
mcp-server-analyzer gives an AI coding client tools for source analysis. Python checks cover Ruff linting, ty type diagnostics, and Vulture scans for unused imports, functions, and variables. Biome handles linting and formatting for JavaScript and TypeScript.
The server exposes focused tools such as ruff-check, ruff-format, ruff-check-ci, ty-check, vulture-scan, biome-check, and biome-format. analyze-code combines Ruff, ty, and Vulture into one assessment and can return quality metrics.
Python 3.13+ and uv or pip are required to run it. In Claude Code, the server is registered with claude mcp add, then the agent can call these analysis tools from the project.
What it helps with
- lint Python files with Ruff
- check Python types and return values
- find unused imports, functions, and variables
- format JavaScript and TypeScript with Biome
- run a combined code-quality assessment
Example prompts for the agent
- Run Ruff checks on this Python project and explain the findings.
- Use
ty-checkto inspect the type errors in these files. - Scan the project for dead code, then run Biome checks on the JavaScript files.
How to install mcp-server-analyzer
Platform CLI
claude mcp add mcp-server-analyzer -- uvx mcp-server-analyzeruvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-analyzer <command>
Platform CLI
codex mcp add mcp-server-analyzer -- uvx mcp-server-analyzeruvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-analyzer <command>
Config file
{
"mcpServers": {
"mcp-server-analyzer": {
"command": "uvx",
"args": [
"mcp-server-analyzer"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-analyzer <command>
Config file
{
"servers": {
"mcp-server-analyzer": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-analyzer"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-analyzer <command>
Platform CLI
gemini mcp add mcp-server-analyzer uvx mcp-server-analyzeruvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-analyzer <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mcp-server-analyzer
How do I install mcp-server-analyzer in Claude Code?
Run claude mcp add mcp-server-analyzer -- uvx mcp-server-analyzer.
What does mcp-server-analyzer do?
It analyzes Python, JavaScript, and TypeScript with Ruff, ty, Vulture, and Biome. Its tools cover linting, formatting, type checks, dead-code detection, and combined analysis.
What does the server require?
It requires Python 3.13+ and uv or pip. The configuration can start it with uvx mcp-server-analyzer.