Nvim Server
БесплатноНе проверенA Model Context Protocol server for Neovim that provides LSP-based symbol tools, enabling AI language models to perform code analysis and manipulation such as s
Описание
A Model Context Protocol server for Neovim that provides LSP-based symbol tools, enabling AI language models to perform code analysis and manipulation such as symbol lookup, renaming, and body replacement via Neovim's built-in LSP.
README
MseeP.ai Security Assessment Badge
Neovim MCP Server
A Model Context Protocol (MCP) server for Neovim that provides LSP-based symbol tools. This server enables AI language models to interact with Neovim's Language Server Protocol (LSP) for symbol-level code operations.
Features
Symbol Tools (LSP-based)
get_symbols_overview(relative_path, depth)- Get overview of top-level symbols in a file. Usedepthto include children (e.g., methods of a class).find_symbol(name_path_pattern, relative_path, depth)- Find symbols by name path pattern (e.g., "MyClass/my_method").find_referencing_symbols(name_path, relative_path)- Find all references to a symbol.replace_symbol_body(name_path, relative_path, body)- Replace the body of a symbol definition.insert_after_symbol(name_path, relative_path, body)- Insert content after a symbol's definition.insert_before_symbol(name_path, relative_path, body)- Insert content before a symbol's definition.rename_symbol(name_path, relative_path, new_name)- Rename a symbol throughout the codebase.restart_language_server()- Restart the LSP server (useful when LSP hangs).get_lsp_client_info()- Get information about active LSP clients.
General Tools
execute_lua(code)- Execute Lua code in Neovimexecute_vimscript(code)- Execute Vimscript code in Neovim
Installation
Prerequisites
- Python 3.11+
- uv package manager
- Neovim 0.9+ with built-in LSP client
Install from source
git clone https://github.com/brianhuster/nvim-mcp-server.git
cd nvim-mcp-server
uv sync
Add to your Neovim configuration
Add the plugin directory to your Neovim runtime path:
-- In your init.lua or plugins.lua
vim.opt.runtimepath:append("/path/to/nvim-mcp-server/plugin")
Usage
Start Neovim with the MCP server
Start Neovim with a socket:
nvim --listen /tmp/nvim.sockSet the NVIM environment variable and run the MCP server:
export NVIM=/tmp/nvim.sock uv run nvim-mcp
Configuration with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"nvim": {
"command": "uv",
"args": ["run", "nvim-mcp"],
"env": {
"NVIM": "/tmp/nvim.sock"
}
}
}
}
Use with Goose
extensions:
nvim-mcp:
cmd: uv
args: ["run", "nvim-mcp"]
env:
NVIM: "/tmp/nvim.sock"
type: stdio
Development
Commands
uv run nvim-mcp- Start the MCP serveruv run nvim-mcp --version- Show versionuv run ruff check- Run lintinguv run mypy- Run type checking
Установка Nvim Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/brianhuster/nvim-mcp-serverFAQ
Nvim Server MCP бесплатный?
Да, Nvim Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Nvim Server?
Нет, Nvim Server работает без API-ключей и переменных окружения.
Nvim Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Nvim Server в Claude Desktop, Claude Code или Cursor?
Открой Nvim Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Nvim Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
