MCP Servers / development / LSP MCP Server

LSP MCP Server

JSON →
stdionone124development

Integrates with Language Server Protocol (LSP) to provide features like code completion, diagnostics, and hover information.

Install
How to run this server
[ { "cmd": "npx tritlo/lsp-mcp", "imports": [] } ]
server path: lsp-mcp-server
Tools
What this server exposes
get_info_on_location
Get hover information at a specific location in a file
get_completions
Get completion suggestions at a specific location in a file
get_code_actions
Get code actions for a specific range in a file
open_document
Open a file in the LSP server for analysis
close_document
Close a file in the LSP server
get_diagnostics
Get diagnostic messages (errors, warnings) for open files
start_lsp
Start the LSP server with a specified root directory
restart_lsp_server
Restart the LSP server without restarting the MCP server
set_log_level
Change the server's logging verbosity level at runtime
Configuration
Environment & auth
authnone
Resources
LSP MCP Server — MCP Server · libregistry