MCP LSP

v1.0.0Developer Toolsstable

MCP server for Language Server Protocol integration.

mcp-lspmcpai-integration
Share:
22
Stars
0
Downloads
0
Weekly
0/5

What is MCP LSP?

MCP LSP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for language server protocol integration.

MCP server for Language Server Protocol integration.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server for Language Server Protocol integration.

Use Cases

Integrate Language Server Protocol tools with MCP servers.
axivo

Maintainer

LicenseBSD-3-Clause
Languagetypescript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-lsp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP LSP

MCP LSP bridges the Language Server Protocol (LSP) and the Model Context Protocol, giving AI agents access to 39 language intelligence tools powered by the same language servers that editors like VS Code rely on. Through a single JSON configuration file you can connect any LSP-compatible language server (TypeScript, Python, Rust, Go, etc.) and then ask Claude to fetch hover information, find all references, jump to definitions, get diagnostics, trigger completions, and rename symbols across your entire project. Developers use it to give AI coding assistants the same deep code understanding that powers professional IDEs.

Prerequisites

  • Node.js 18 or later installed
  • One or more LSP-compatible language servers installed (e.g., 'npm install -g typescript-language-server' for TypeScript)
  • An MCP-compatible client such as Claude Desktop
  • An LSP configuration JSON file (lsp.json) describing which language servers to use
1

Install MCP LSP via npx

The server can be run directly with npx — no global install required.

npx -y @axivo/mcp-lsp
2

Install a language server

Install the language server for the language you want to analyze. For example, to use TypeScript LSP:

npm install -g typescript-language-server typescript
# For Python:
# pip install python-lsp-server
# For Rust (if rustup is installed):
# rustup component add rust-analyzer
3

Create your LSP configuration file

Create a JSON file (e.g., /home/user/.config/lsp.json) that describes the language servers and their settings. This file is referenced by the LSP_FILE_PATH environment variable.

{
  "languageServers": [
    {
      "name": "typescript",
      "command": "typescript-language-server",
      "args": ["--stdio"],
      "filetypes": ["typescript", "javascript"],
      "workspace": "/path/to/your/project"
    }
  ],
  "maxConcurrentFileReads": 10,
  "preloadFiles": true
}
4

Add the server to your MCP client configuration

Add mcp-lsp to claude_desktop_config.json, setting the LSP_FILE_PATH environment variable to your configuration file.

{
  "mcpServers": {
    "language-server": {
      "command": "npx",
      "args": ["-y", "@axivo/mcp-lsp"],
      "env": {
        "LSP_FILE_PATH": "/absolute/path/to/lsp.json"
      }
    }
  }
}
5

Restart Claude Desktop and test

Restart Claude Desktop and ask it to start the language server and retrieve diagnostics for a file. Use get_server_status to confirm the LSP server is running.

MCP LSP Examples

Client configuration

claude_desktop_config.json entry for MCP LSP pointing to a TypeScript language server config.

{
  "mcpServers": {
    "language-server": {
      "command": "npx",
      "args": ["-y", "@axivo/mcp-lsp"],
      "env": {
        "LSP_FILE_PATH": "/Users/you/.config/lsp.json"
      }
    }
  }
}

Prompts to try

Example prompts leveraging the 39 LSP-backed tools.

- "Start the TypeScript language server for my project at /Users/me/myapp and show me all current diagnostics."
- "Find all references to the 'UserService' class in my codebase."
- "Get the type definition for the variable at line 42 in src/auth.ts."
- "Rename the function 'processPayment' to 'handlePayment' throughout the entire project."
- "Show me the full call hierarchy for the 'main' function in src/index.ts."

Troubleshooting MCP LSP

Language server fails to start with 'command not found'

Ensure the language server binary is installed globally and accessible in your PATH. Verify with 'which typescript-language-server'. If not found, run 'npm install -g typescript-language-server typescript'.

LSP_FILE_PATH environment variable is not being read

Use an absolute path, not a relative path or one starting with '~'. The tilde is not expanded in MCP env configs. Find the absolute path with 'echo $HOME/.config/lsp.json'.

Diagnostics return empty results for a project

Set 'preloadFiles: true' in your lsp.json config to allow the server to index files before querying. Also ensure the 'workspace' field points to the correct project root directory.

Frequently Asked Questions about MCP LSP

What is MCP LSP?

MCP LSP is a Model Context Protocol (MCP) server that mcp server for language server protocol integration. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP LSP?

Follow the installation instructions on the MCP LSP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP LSP?

MCP LSP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP LSP free to use?

Yes, MCP LSP is open source and available under the BSD-3-Clause license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-lsp": { "command": "npx", "args": ["-y", "mcp-lsp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP LSP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides