mcp-language-server
Сообществоот isaacphi
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
Установка
go install github.com/isaacphi/mcp-language-server@latestОписание
# MCP Language Server [](https://github.com/isaacphi/mcp-language-server/actions/workflows/go.yml) [](https://goreportcard.com/report/github.com/isaacphi/mcp-language-server) [](https://pkg.go.dev/github.com/isaacphi/mcp-language-server) [](https://github.com/isaacphi/mcp-language-server/blob/main/go.mod) This is an [MCP](https://modelcontextprotocol.io/introduction) server that runs and exposes a [language server](https://microsoft.github.io/language-server-protocol/) to LLMs. Not a language server for MCP, whatever that would be. ## Demo `mcp-language-server` helps MCP enabled clients navigate codebases more easily by giving them access semantic tools like get definition, references, rename, and diagnostics.  ## Setup 1. **Install Go**: Follow instructions at <https://golang.org/doc/install> 2. **Install or update this server**: `go install github.com/isaacphi/mcp-language-server@latest` 3. **Install a language server**: _follow one of the guides below_ 4. **Configure your MCP client**: _follow one of the guides below_ <details> <summary>Go (gopls)</summary> <div> <p><strong>Install gopls</strong>: <code>go install golang.org/x/tools/gopls@latest</code></p> <p><strong>Configure your MCP client</strong>: This will be different but similar for each client. For Claude Desktop, add the following to <code>~/Library/Application\ Support/Claude/claude_desktop_config.json</code></p> <pre> { "mcpServers": { "language-server": { "command": "mcp-language-server", "args": ["--workspace", "/Users/you/dev/yourproject/", "--lsp", "gopls"], "env": { "PATH": "/opt/homebrew/bin:/Users/you/go/bin", "GOPATH": "/users/you/go", "GOCACHE": "/users/you/Library/Caches/go-build", "GOMODCACHE": "/Users/you/go/pkg/mod" } } } } </pre> <p><strong>Note</strong>: Not all clients will need these environment variables. For Claude Desktop you will need to update the environment variables above based on your machine and username:</p> <ul> <li><code>PATH</code> needs to contain the path to <code>go</code> and to <code>gopls</code>. Get this with <code>echo $(which go):$(which gopls)</code></li> <li><code>GOPATH</code>, <code>GOCACHE</code>, and <code>GOMODCACHE</code> may be different on your machine. These are the defaults.</li> </ul> </div> </details> <details> <summary>Rust (rust-analyzer)</summary> <div> <p><strong>Install rust-analyzer</strong>: <code>rustup component add rust-analyzer</code></p> <p><strong>Configure your MCP client</strong>: This will be different but similar for each client. For Claude Desktop, add the following to <code>~/Library/Application\ Support/Claude/claude_desktop_config.json</code></p> <pre> { "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "rust-analyzer" ] } } } </pre> </div> </details> <details> <summary>Python (pyright)</summary> <div> <p><strong>Install pyright</strong>: <code>npm install -g pyright</code></p> <p><strong>Configure your MCP client</strong>: This will be different but similar for each client. For Claude Desktop, add the following to <code>~/Library/Application\ Support/Claude/claude_desktop_config.json</code></p> <pre> { "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "pyright-langserver", "--", "--stdio" ] } } } </pre> </div> </details> <details> <summary>Typescript (typescript-language-server)</summary> <div> <p><strong>Install typescript-language-server</strong>: <code>npm install -g typescript typescript-language-server</code></p> <p><strong>Configure your MCP client</strong>: This will be different but similar for each client. For Claude Desktop, add the following to <code>~/Library/Application\ Support/Claude/claude_desktop_config.json</code></p> <pre> { "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "typescript-language-server", "--", "--stdio" ] } } } </pre> </div> </details> <details> <summary>C/C++ (clangd)</summary> <div> <p><strong>Install clangd</strong>: Download prebuilt binaries from the <a href="https://github.com/clangd/clangd/releases">official LLVM releases page</a> or install via your sys
Отзывы (0)
Пока нет отзывов. Будьте первым!
Статистика
Информация
Технологии
Похожие серверы
GitHub MCP
Полная интеграция с GitHub API: репозитории, issues, pull requests, actions и многое другое.
Filesystem MCP
Безопасный доступ к файловой системе для чтения, записи и управления файлами с настраиваемыми разрешениями.
Context7 MCP
Доступ к актуальной документации библиотек и фреймворков.
Serena MCP
Мощный MCP сервер для семантической навигации по коду и рефакторинга.