mcp-neovim-server
If you are the rightful owner of mcp-neovim-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Connect Claude Desktop (or any Model Context Protocol client) to Neovim using MCP and the official neovim/node-client JavaScript library.
The Neovim MCP Server is designed to integrate Claude Desktop or any Model Context Protocol client with Neovim, utilizing the official neovim/node-client JavaScript library. This server allows users to leverage Vim's native text editing commands and workflows, which are already understood by Claude, to create a lightweight AI text assistance layer. By connecting to a Neovim instance through a socket file, the server can view current buffers, get cursor location, mode, and file name, run Vim commands, and make edits using insert or replacement. This setup provides a seamless integration for code or general-purpose AI text assistance within the Neovim environment.
Features
- Connects to your nvim instance if you expose a socket file, for example `--listen /tmp/nvim`, when starting nvim
- Views your current buffers
- Gets cursor location, mode, file name
- Runs vim commands and optionally shell commands through vim
- Can make edits using insert or replacement
Tools
vim_buffer
Display the current VIM text editor buffer content (with line number)
vim_command
Send navigation, point edit, and line delete commands to VIM
vim_status
Get VIM editor status (cursor position, mode, file name, etc.)
vim_edit
Edit lines using insert, replace, or replace all
vim_window
Operation of Neovim windows (split, close, navigation, etc.)
vim_mark
Setting marks at specific locations
vim_register
Set the register contents
vim_visual
Create visual mode selection