LSP MCP logo

LSP MCP

by jonrad

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

View on GitHub

Last updated: N/A

What is LSP MCP?

LSP MCP is a server that bridges the gap between Language Server Protocol (LSP) and Model Context Protocol (MCP), enabling LLMs and AI agents to leverage LSP for enhanced code understanding and analysis.

How to use LSP MCP?

The server can be used with Claude Desktop, Cursor, or the MCP CLI client. Configuration involves specifying the LSP MCP server in the respective client's configuration file, often using Docker for ease of deployment. You can then interact with the AI, asking questions about your code and leveraging the LSP context provided by LSP MCP.

Key features of LSP MCP

  • Multiple LSP support

  • Dynamic LSP method generation from JSON Schema

  • Docker-based deployment

  • Integration with Claude Desktop and Cursor

  • Low-level MCP SDK usage

Use cases of LSP MCP

  • Code analysis by AI agents

  • Language-aware code completion

  • Contextual code understanding for LLMs

  • Automated code documentation

  • Enhanced code search and navigation

FAQ from LSP MCP

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for providing context to language models.

What is LSP?

LSP stands for Language Server Protocol. It's a protocol used between development tools and language servers that provide language features like auto complete, go to definition, find all references etc.

How do I configure LSP MCP with Claude Desktop?

Modify the claude_desktop_config.json file to include the LSP MCP server, typically using a Docker command to run the server.

Can I use multiple LSPs at the same time?

Yes, LSP MCP supports multiple LSPs simultaneously, allowing for analysis of codebases with multiple languages.

Is LSP MCP production ready?

No, LSP MCP is currently in a Proof of Concept (POC) state.