The lsp-mcp server provides a unified API for multi-language code analysis.
- Analyze Files: Run static code analysis on files by specifying the path via the
AnalyzeFile
endpoint. - Multi-Language Support: Currently supports Python (via Ruff) with plans to add Go, Rust, and more.
- Automated Sidecar Management: Manages the
langtools_daemon
sidecar that executes linters and analysis tools. - Integration-Friendly: Process analysis requests in a headless and batch-friendly manner, suitable for automation, CI/CD pipelines, and integration with LLMs.
- JSON Output: Returns normalized analysis results in JSON format for easy integration with other tools.
Integration for code repository access and analysis, supporting Git-based projects
Repository management integration, allowing code analysis for GitHub-hosted projects
Integration with Python Package Index for dependency management and installation
Comprehensive Python language analysis, error detection, and code quality checking
Provides fast Python code analysis, linting, and static checking through integration with Ruff
Planned integration with rust-analyzer for Rust code analysis and static checking (mentioned in roadmap)
langtools-mcp: Multi-Language Code Analysis Sidecar for Agents & Automation
Overview
langtools-mcp is a modular, multi-language code analysis and static-check sidecar for agents, LLMs, CI/CD, and developer automation.
It orchestrates best-in-class language tools (like Ruff, gopls, rust-analyzer, and more) using a robust daemon architecture.
Key Features:
- 🔗 Unified API: One protocol/entrypoint for diverse language toolchains and linters
- ⛓️ Designed for scale: Supports multi-lang codebases and batch processing
- 🔜 Future-Ready: Easily extend with new language tools
Architecture
When you launch the main server or CLI, langtools_daemon
is started automatically and managed as a subprocess.
All analysis requests—regardless of the underlying language—are routed to this sidecar, which coordinates the appropriate language tools.
Features
- Multi-language support: Python (Ruff) ready now; Go, Rust, and others coming soon
- Decoupled code analysis: No need for IDEs, editors, or direct dependency on any single tool
- Headless & batch-friendly: Perfect for LLMs, CI pipelines, review bots, automation
Installation
Quickstart
To process a single file:
How It Works
- MCP exposes an
AnalyzeFile
tool and protocol (seesrc/langtools_mcp/server.py
) which dispatches analysis requests through a registry to the daemon. - The daemon routes the request to the appropriate tool and returns normalized results as JSON.
Troubleshooting
- Tool not found error:
Make sure the language tool (e.g. Ruff for Python) is installed via pip/uv/uvx. - macOS Gatekeeper:
Only an issue if you install a language tool manually as a system binary; not typical for default usage.
License
Roadmap
- Add Go (gopls), Rust (rust-analyzer), TypeScript, etc.
- More advanced batch analysis/LLM feedback features
Questions?
Open an issue or discussion, or join our community chat!
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A multi-language code analysis server that helps LLMs or humans automatically lint, type-check, and improve code with minimal installation friction, currently supporting Python with plans for other languages.
Related MCP Servers
- -securityFlicense-qualityAnalyzes codebases using Repomix and LLMs to provide structured code reviews with specific issues and recommendations, supporting multiple LLM providers including OpenAI, Anthropic, and Gemini.Last updated -2JavaScript
- AsecurityFlicenseAqualityA comprehensive Model Context Protocol server for advanced code analysis that provides tools for syntax analysis, dependency visualization, and AI-assisted development workflow support.Last updated -283Python
- AsecurityFlicenseAqualityA lightweight server that provides detailed text analysis, counting total characters, characters without spaces, letters, numbers, and symbols for AI assistants like Claude Desktop and GitHub Copilot.Last updated -1JavaScript
- AsecurityFlicenseAqualityA specialized server that provides advanced TypeScript code manipulation and analysis capabilities, enabling refactoring, navigation, diagnostics, and module analysis through Claude.Last updated -11928184TypeScript