MCP Language Server

Stale
GitHub Go BSD-3-Clause

Description

MCP Language Server gives MCP-enabled clients access to semantic code tools like go-to-definition, find-references, rename, and diagnostics, providing AI agents with precise code navigation capabilities.

Key Features

  • MCP server that bridges language servers (gopls, rust-analyzer, pyright, tsserver, clangd) to LLM clients
  • Semantic code navigation tools: go-to-definition, find-references, rename, and diagnostics
  • Hover information and documentation retrieval for any symbol in the codebase
  • File editing with precise line-based multi-edit support for reliable code modifications
  • Supports Go, Rust, Python, TypeScript, C/C++ and any stdio-based language server

Use Cases

πŸ’‘ AI agents performing code refactoring with precise rename and edit capabilities across projects
πŸ’‘ Code review assistants that need to trace function definitions and usages across a codebase
πŸ’‘ IDE-integrated chatbots providing contextual code navigation and diagnostics
πŸ’‘ Automated codebase analysis with semantic understanding beyond simple text search
πŸ’‘ Multi-language development workflows requiring unified tooling for different language servers

Quick Start

1. Install Go: https://golang.org/doc/install
2. Install the server: go install github.com/isaacphi/mcp-language-server@latest
3. Install a language server (e.g., gopls: go install golang.org/x/tools/gopls@latest)
4. Add to your MCP client config (e.g., Claude Desktop):
   {"mcpServers": {"language-server": {"command": "mcp-language-server", "args": ["--workspace", "/path/to/project", "--lsp", "gopls"]}}}

Related Projects

Related Articles