MCP server for Python, JavaScript, and TypeScript code analysis with Ruff, ty, Vulture, and Biome
The Model Context Protocol (MCP) server io.github.Anselmoo/mcp-server-analyzer performs code analysis for Python, JavaScript, and TypeScript. It uses tools including Ruff, ty, Vulture, and Biome to analyze code, with topics indicating focus on code quality and linting.
π οΈ Key Features
Code analysis for Python, JavaScript, and TypeScript
Tooling includes Ruff, ty, Vulture, and Biome
Emphasis on linting and code quality
π Use Cases
Analyzing Python and JavaScript/TypeScript codebases for issues
Supporting linting workflows across multiple languages
Integrating analysis within an MCP-based environment
β‘ Developer Benefits
Standardizes code analysis across Python and JS/TS
Uses established analyzers: Ruff, ty, Vulture, Biome
Aligns with development topics such as code-quality and linting
β οΈ Limitations
The description provided lists analyzers and target languages only; it does not specify supported MCP capabilities, endpoints, or output formats.
A powerful Model Context Protocol (MCP) server that provides comprehensive Python code analysis using Ruff for linting, ty for type checking, and Vulture for dead code detection. Perfect for AI assistants, IDEs, and automated code review workflows.
π Quick Start
VS Code Integration (One-Click Install)
For quick installation, use one of the one-click install buttons below...
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).
Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
Note that the mcp key is needed when using the mcp.json file.
# Install with uvx (recommended)
uvx install mcp-server-analyzer
# Install with pip
pip install mcp-server-analyzer
# Run with Docker
docker run ghcr.io/anselmoo/mcp-server-analyzer:latest
# Install from source
git clone https://github.com/anselmoo/mcp-server-analyzer.git
cd mcp-server-analyzer
uv sync --dev
uv run mcp-server-analyzer
π Features
π RUFF Analysis: Comprehensive Python linting with auto-fixes
π§ ty Type Checking: Fast Python type analysis with rule-based diagnostics
π§Ή Dead Code Detection: Find unused imports, functions, and variables with VULTURE
β‘ Biome JS/TS Analysis: Fast linting and formatting for JavaScript and TypeScript
π Quality Scoring: Combined analysis with quality metrics
π FastMCP Framework: High-performance MCP server implementation
π³ Docker Ready: Multi-architecture containers with security signing
π Secure: All releases signed with Sigstore for supply chain security
# Clone repository
git clone https://github.com/anselmoo/mcp-server-analyzer.git
cd mcp-server-analyzer
# Install Python dependencies
uv sync --dev
# Install Biome (JS/TS analyzer)
npm ci
# Run tests
uv run pytest
# Run type checks
uv run ty check src tests
# Run pre-commit hooks
uv tool run pre-commit run --all-files
# Build Docker image
docker build -t mcp-server-analyzer .
Testing
bash
# Run all tests
uv run pytest tests/ -v
# Run with coverage
uv run pytest --cov=src/mcp_server_analyzer --cov-report=html
# Test specific functionality
uv run pytest tests/test_server.py::TestAnalyzers::test_ruff_with_sample_code
Security Policy: See SECURITY.md for vulnerability reporting
π Data Handling & Transparency
In-memory only: Code passed to tools is written to a temporary file, analyzed, and the file is deleted immediately β nothing is persisted between calls.
No network calls: The server makes no outbound network connections during analysis.
No telemetry: No usage data, analytics, or crash reports are collected.
Subprocess isolation: ruff, ty, and vulture are invoked with fixed argument lists β no shell expansion or arbitrary command execution.