Skip to main content
Glama

lsp-mcp

by flothjl

langtools-mcp

Warning

🚧 This is actively being developed, so expect issues. Currently focusing on compatibility with the on-machine AI agent Goose. 🚧

langtools-mcp is a Model Context Protocol (MCP) server and client toolkit that gives LLMs and AI agents unified access to real static analysis tools—including batch CLI checkers (like Ruff and go vet) and LSPs (like gopls, rust-analyzer, and more).

We've all been there:

  • LLM writes code that doesn't compile due to hallucinating standard libraries that don't exist, syntax errors, etc.
  • LLM writes functional code, but the style, formatting, and linting is non-existent (I'm looking at you, unused imports)

langtools-mcp aims to help solve this by letting your AI and agentic apps catch, explain, and even fix issues in code, by calling the same tools expert programmers use. The goal is simply for this MCP to be a tool that the LLM begins using as part of its dev cycle. Just like IDEs and LSPs supercharged humans' ability to quickly assess and fix issues during the dev process, langtools aims to do this with an MCP tool.

  • 🧠 Supercharge Agents: Let your LLMs/AI validate, lint, and debug their own code.
  • 🧩 Modular & Extensible: Add new languages/tools in minutes via strategies.
  • Daemon or Batch: Runs as a fast HTTP daemon for LSP and batch CLI tools.

Quickstart

Configuring for Project Goose

langtools: args: - --from - https://github.com/flothjl/langtools-mcp - langtools-mcp bundled: null cmd: uvx description: null enabled: true env_keys: [] envs: {} name: langtools-mcp timeout: null type: stdio
Configuration Options
export LANGTOOLS_PYTHON_TOOLS='["ruff"]' export LANGTOOLS_GO_GO_TOOLS='["vet"]'
LanguageTools
Pythonruff, pyright
Govet

Installation

git clone https://github.com/flothjl/langtools-mcp.git cd langtools-mcp uv sync # or pip install -e .[dev]

Requirements: Python 3.10+, plus ruff, pyright, and Go for Go support (must be in your PATH).


Roadmap & Supported Tools

  • Python: Ruff, Pyright (CLI)
  • Go: go vet (CLI)
  • Rust: rust-analyzer (LSP)
  • JavaScript/TypeScript: tsc, eslint (planned)

Want to add support for your favorite tool or language? Open a PR or start a Discussion!


Contributing

  • Fork, clone, and submit a PR!
  • Code and docs welcome for new languages, better error messages, and more.
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. Quickstart
    1. Configuring for Project Goose
  2. Installation
    1. Roadmap & Supported Tools
      1. Contributing

        Related MCP Servers

        • A
          security
          A
          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
          3,183
          319
          TypeScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          A local server that provides powerful code analysis and search capabilities for software projects, helping AI assistants and development tools understand codebases for tasks like code generation and refactoring.
          Last updated -
          2
          Python
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          A continuous integration server that automates Python code analysis, providing linting and static type checking tools for quality assurance.
          Last updated -
          Python
        • -
          security
          F
          license
          -
          quality
          A server that automatically reviews code style and suggests improvements, with special focus on Flutter/Dart projects and general programming styles.
          Last updated -

        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