mcp-language-server

Level ALocal

mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.

Overview

mcp-language-server is an MCP server that exposes a language server (LSP) to MCP-enabled clients and LLMs. It provides semantic tools such as get definition, find references, rename symbol, diagnostics, hover info, and line-based file editing, helping clients navigate and understand codebases more easily. It works with stdio-based language servers like gopls, rust-analyzer, pyright, typescript-language-server, and clangd.

⭐ 1.6kDevelopment ToolsGoRepo ↗Updated 2026-03-01

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "isaacphi-mcp-language-server": {
      "command": "mcp-language-server",
      "args": [
        "--workspace",
        "<WORKSPACE>",
        "--lsp",
        "gopls"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/isaacphi/mcp-language-server

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "isaacphi-mcp-language-server": {
      "command": "mcp-language-server",
      "args": [
        "--workspace",
        "<WORKSPACE>",
        "--lsp",
        "gopls"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers