An MCP server for neovim
Most developer tooling work still happens through a UI a human drives. MCP Neovim Server MCP server moves it into the conversation instead. An MCP server for neovim.
Connect Claude Desktop (or any Model Context Protocol client) to Neovim using MCP and the official neovim/node-client JavaScript library. This server leverages Vim's native text editing commands and workflows, which Claude already understands, to create a lightweight code or general purpose AI text assistance layer.
The server publishes 14 tools. What each one is for:
vim_buffer — Get buffer contents with line numbers (supports filename parameter)vim_command — Send a command to VIM for navigation, spot editing, and line deletionvim_status — Get comprehensive Neovim statusvim_edit — Edit lines using insert, replace, or replaceAll modesinsert — insert lines at startLinereplace — replace lines starting at startLinereplaceAll — replace entire buffer contentsvim_window — Manipulate Neovim windows (split, vsplit, close, navigate)vim_mark — Set named marks at specific positionsvim_register — Set content of registersvim_visual — Create visual mode selectionsvim_macro — Record, stop, and play Vim macrosConfiguration is passed through the environment: ALLOW_SHELL_COMMANDS, NVIM_SOCKET_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Neovim Server's toolset — vim_buffer, vim_command, vim_status and 11 more — is a fair guide to whether it matches your workflow. It is maintained by bigcodegen; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| vim_buffer | Get buffer contents with line numbers (supports filename parameter) |
| vim_command | Send a command to VIM for navigation, spot editing, and line deletion |
| vim_status | Get comprehensive Neovim status |
| vim_edit | Edit lines using insert, replace, or replaceAll modes |
| insert | insert lines at startLine |
| replace | replace lines starting at startLine |
| replaceAll | replace entire buffer contents |
| vim_window | Manipulate Neovim windows (split, vsplit, close, navigate) |
| vim_mark | Set named marks at specific positions |
| vim_register | Set content of registers |
| vim_visual | Create visual mode selections |
| vim_macro | Record, stop, and play Vim macros |
| vim_tab | Complete tab management |
| vim_fold | Code folding operations |
{
"mcpServers": {
"MCP Neovim Server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
],
"env": {
"ALLOW_SHELL_COMMANDS": "true",
"NVIM_SOCKET_PATH": "/tmp/nvim"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| ALLOW_SHELL_COMMANDS | Configuration value read at startup. | Optional |
| NVIM_SOCKET_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.