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).

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Paisins/lsp_mcp_extension'

If you have feedback or need assistance with the MCP directory API, please join our Discord server