MCP Server Analyzer¶
A Model Context Protocol (MCP) server providing comprehensive Python code analysis via Ruff linting, ty type checking, and Vulture dead code detection.
Quick Start¶
Client Configuration¶
Add to claude_desktop_config.json:
Add to .vscode/mcp.json:
Add to settings.json:
Features¶
| Feature | Description |
|---|---|
| Ruff linting | Style violations, potential errors, auto-fix hints |
| Ruff formatting | Code formatting and consistency |
| ty type checking | Fast static type analysis |
| Vulture dead code | Unused imports, functions, variables |
| Combined analysis | Quality score (0-100) across all tools |
| CI output formats | json, gitlab, github, sarif |
Data Handling¶
- Code is written to a temporary file, analyzed, then immediately deleted — nothing is persisted.
- The server makes no outbound network calls during analysis.
- No telemetry or usage data is collected.
Available Tools¶
See the Tools Reference for full parameter documentation.
| Tool | Purpose |
|---|---|
ruff-check |
Lint Python code |
ruff-format |
Format Python code |
ruff-check-ci |
CI/CD optimized output |
ty-check |
Type-check Python code |
vulture-scan |
Dead code detection |
analyze-code |
Combined analysis + score |