Skip to main content
Glama

lsp-mcp

by flothjl

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

+-------------------------------+ HTTP (localhost) +-------------------------------+ | langtools-mcp (MCP) | <-------------------------> | langtools_daemon sidecar | +-------------------------------+ +-------------------------------+ | (runs linters) v ruff, gopls, rust-analyzer, etc.

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

git clone https://github.com/flothjl/langtools-mcp.git cd langtools-mcp uv sync

Quickstart

To process a single file:

python -m langtools_mcp path/to/your_file.py

How It Works

  • MCP exposes an AnalyzeFile tool and protocol (see src/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

MIT


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!

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

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.

  1. Overview
    1. Architecture
      1. Features
        1. Installation
          1. Quickstart
            1. How It Works
              1. Troubleshooting
                1. License
                  1. Roadmap

                    Related MCP Servers

                    • -
                      security
                      F
                      license
                      -
                      quality
                      Analyzes 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 -
                      2
                      JavaScript
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A 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 -
                      28
                      3
                      Python
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A 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 -
                      1
                      JavaScript
                      • Apple
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A specialized server that provides advanced TypeScript code manipulation and analysis capabilities, enabling refactoring, navigation, diagnostics, and module analysis through Claude.
                      Last updated -
                      11
                      928
                      184
                      TypeScript

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/flothjl/lsp-mcp'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server