home / mcp / lsp mcp server

LSP MCP Server

Provides LSP capabilities to AI agents, delivering language-aware context from the codebase.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "jonrad-lsp-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/jonrad/lsp-mcp:0.3.1"
      ]
    }
  }
}

You can run an MCP server that exposes Language Server Protocol capabilities to AI agents, giving them language-aware context from your codebase. This makes it possible for AI to understand and analyze code as if it were a language server, enabling smarter code assistance and navigation.

How to use

Use an MCP client to connect to the LSP MCP server. You can run multiple LSPs concurrently, each handling a different language or tooling needs. The server exposes LSP methods to provide code intelligence, such as diagnostics, symbol information, and hover/help data, enabling AI agents to analyze and reference your codebase with language-aware context.

Available tools

LSP MCP

Provides Language Server Protocol capabilities to AI agents, allowing them to request language-aware context from the codebase and perform code intelligence operations.

MCP CLI Client

Command-line tool to interact with MCP servers and manage MCP configurations during development and testing.