drio
Open app

LSP MCP

Source

An Model Context Protocol (MCP) server that provides LLMs/AI Agents with the capabilities of a language server protocol (LSP) server. This gives the AI the ability to get language aware context from the codebase.

Catalog onlyCatalog onlySTDIO

Overview

LSP MCP is a Model Context Protocol (MCP) server that enables LLMs and AI agents to utilize the Language Server Protocol (LSP) for obtaining language-aware context from codebases.

To use LSP MCP, you can set it up using Docker or npx, and configure it to work with your desired programming language's LSP. Follow the quick start guide in the documentation for detailed instructions.

  • Supports multiple LSPs simultaneously for various programming languages. - Dynamically generates supported LSP methods from LSP JSON Schema. - Provides insights and analysis of code through LSP capabilities.
  1. Analyzing TypeScript code for variable shadowing and execution flow.
  2. Assisting AI agents in understanding and interacting with codebases.
  3. Enhancing code intelligence in development environments.

Add to your AI client

Use these steps to connect LSP MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "lsp-mcp-jonrad": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-mcp-jonrad"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "lsp-mcp-jonrad": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-mcp-jonrad"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "lsp-mcp-jonrad": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-mcp-jonrad"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "lsp-mcp-jonrad": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-mcp-jonrad"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "lsp-mcp-jonrad": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-mcp-jonrad"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "lsp-mcp-jonrad": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-mcp-jonrad"
      ]
    }
  }
}

FAQ

What is an MCP?

MCP stands for Model Context Protocol, which facilitates context-aware interactions for AI agents.

What is an LSP?

LSP stands for Language Server Protocol, a protocol that standardizes communication between code editors and language servers.

Is LSP MCP free to use?

Yes! LSP MCP is open-source and available for free.