Skip to main content
Glama
Paisins

lsp-mcp-standalone

by Paisins

Universal LSP MCP (Standalone)

A VS Code extension that exposes LSP features (definition / hover / references / declaration / document symbols) over MCP, using an isolated language server process spawned by the extension itself.

Key properties:

  • Zero global-settings pollution: the extension spawns its own gopls process; it does NOT touch any go.* VS Code setting, so other projects' native gopls / code navigation keep working.

  • Multi-repo aware: it reads VS Code workspaceFolders and passes them to gopls, so cross-repo symbols defined in other modules resolve.

  • Direct LSP requests: it calls gopls via textDocument/definition etc. directly, bypassing the vscode.executeDefinitionProvider documentSelector limitation that makes other MCP bridges fail on cross-folder files.

Build & install

pnpm install
pnpm build
pnpm package      # produces lsp-mcp-standalone.vsix

Install the vsix in your VS Code / VSCode-Server, then add to your project's mcp.json:

{
  "mcpServers": {
    "lsp-mcp-standalone": {
      "url": "http://127.0.0.1:9528/mcp"
    }
  }
}

Related MCP server: Codex LSP Bridge

Tools

  • definition(uri, line, character)

  • declaration(uri, line, character)

  • hover(uri, line, character)

  • references(uri, line, character)

  • document_symbols(uri)

All positions are 1-based (matching editor display).

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Exposes Language Server Protocol (LSP) features as MCP tools, enabling IDE-grade semantic navigation including go-to-definition, find references, hover info, and symbols across multiple programming languages (Python, Rust, C/C++, TypeScript/JavaScript, React, HTML, CSS).
    3
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Exposes Language Server Protocol (LSP) tools such as diagnostics, goto definition, find references, symbols, and rename as a stdio MCP server.
    7
    MIT