Feedback

MCP Language Server — by isaacphi

@isaacphi Claim

Basic information

Runtime
go
Category
License
BSD-3-Clause
Transports
stdio
Author
isaacphi
Submitted by
Community
Quality
70
Stars
1.6K

About MCP Language Server

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

MCP Language Server is a MCP server in the Other category listed in the AddMCP.net directory, published by isaacphi. It exposes 4 tools, including Definition, References, Diagnostics, Hover. Supported transport: stdio. Runtime: go. License: BSD-3-Clause. The repository has 1,564 GitHub stars. Source code is hosted on github.com. Related topics: ai, language-server-protocol, mcp, mcp-server, model-context-protocol.

Setup

{
    "mcpServers": {
        "language-server": {
            "command": "go",
            "args": [
                "run",
                "github.com/isaacphi/mcp-language-server@latest",
                "--workspace",
                "/path/to/codebase/",
                "--lsp",
                "language-server-executable"
            ],
            "env": {
                "LOG_LEVEL": "INFO"
            }
        }
    }
}

MCP Language Server — by isaacphi config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "language-server": {
            "command": "go",
            "args": [
                "run",
                "github.com/isaacphi/mcp-language-server@latest",
                "--workspace",
                "/path/to/codebase/",
                "--lsp",
                "language-server-executable"
            ],
            "env": {
                "LOG_LEVEL": "INFO"
            }
        }
    }
}

MCP Language Server — by isaacphi tools

  • Definition — retrieves complete source code definition of any symbol.
  • References — locates all usages and references of a symbol.
  • Diagnostics — provides diagnostic warnings and errors for a file.
  • Hover — displays documentation and type hints for a location.

Overview

What is MCP Language Server?

MCP Language Server is an MCP server that runs and exposes a language server (LSP) to LLMs, enabling semantic code navigation such as definitions, references, rename, and diagnostics.

How to use MCP Language Server?

Install via go install github.com/isaacphi/mcp-language-server@latest, install a compatible language server (e.g., gopls, rust-analyzer, pyright), then configure your MCP client (e.g., Claude Desktop) with the binary path, --workspace and --lsp arguments, and any necessary environment variables.

Key features of MCP Language Server

  • Definition: retrieves complete source code definition of any symbol.
  • References: locates all usages and references of a symbol.
  • Diagnostics: provides diagnostic warnings and errors for a file.
  • Hover: displays documentation and type hints for a location.
  • Rename symbol: renames a symbol across the entire project.
  • Edit file: makes multiple text edits to a file by line numbers.

Use cases of MCP Language Server

  • Enabling LLMs to navigate and understand codebases semantically.
  • Automatically renaming symbols across a project.
  • Retrieving definitions and references for code comprehension.
  • Applying precise file edits via line-based text editing.
  • Getting diagnostics for error detection and correction.

Frequently asked questions

1 What language servers are supported?

Go (gopls), Rust (rust-analyzer), Python (pyright), TypeScript (typescript-language-server), C/C++ (clangd), and any LSP server that communicates over stdio.

2 How do I install MCP Language Server?

Install Go, then run go install github.com/isaacphi/mcp-language-server@latest, then install your desired language server separately.

3 How do I configure MCP Language Server for Claude Desktop?

Add an entry to claude_desktop_config.json with the command, args including --workspace and --lsp, and any required environment variables.

4 Does MCP Language Server require any environment variables?

Yes, for some clients like Claude Desktop you may need to set PATH, GOPATH, GOCACHE, and GOMODCACHE to ensure the Go toolchain and language server are found.

5 Is MCP Language Server production-ready?

The README states it is beta software; users are encouraged to report issues.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬