Basic information
About Neovim Integration MCP Server
Integrate Claude Desktop with Neovim for an AI coding assistant that enhances Vim workflows with AI-powered coding help and direct buffer interaction.
Neovim Integration is a MCP server in the Productivity category listed in the AddMCP.net directory, published by bigcodegen. It exposes 19 tools, including vim_buffer, vim_command, vim_status, vim_edit and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 321 GitHub stars. Source code is hosted on github.com. Related topics: anthropic, claude, community, developer-tools, mcp.
Setup
{
"mcpServers": {
"MCP Neovim Server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
],
"env": {
"ALLOW_SHELL_COMMANDS": "true",
"NVIM_SOCKET_PATH": "/tmp/nvim"
}
}
}
}
{
"mcpServers": {
"MCP Neovim Server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
],
"env": {
"ALLOW_SHELL_COMMANDS": "true",
"NVIM_SOCKET_PATH": "/tmp/nvim"
}
}
}
}
{
"servers": {
"MCP Neovim Server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
],
"env": {
"ALLOW_SHELL_COMMANDS": "true",
"NVIM_SOCKET_PATH": "/tmp/nvim"
}
}
}
}
Neovim Integration MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"MCP Neovim Server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
],
"env": {
"ALLOW_SHELL_COMMANDS": "true",
"NVIM_SOCKET_PATH": "/tmp/nvim"
}
}
}
}
Neovim Integration MCP Server tools
-
vim_buffer
— Get buffer contents with line numbers
filename:string -
vim_command
— Execute Vim commands with optional shell command support
command:string* -
vim_status
— Get comprehensive Neovim status including cursor position, mode, marks, and registers
(no parameters) -
vim_edit
— Edit buffer content using insert, replace, or replaceAll modes
startLine:number*, mode:string*, lines:string* -
vim_window
— Manage Neovim windows: split, close, and navigate between windows
command:string* -
vim_mark
— Set named marks at specific positions in the buffer
mark:string*, line:number*, column:number* -
vim_register
— Manage Neovim register contents
register:string*, content:string* -
vim_visual
— Create visual mode selections in the buffer
startLine:number*, startColumn:number*, endLine:number*, endColumn:number* -
vim_buffer_switch
— Switch between buffers by name or number
identifier:string|number* -
vim_buffer_save
— Save current buffer or save to specific filename
filename:string -
vim_file_open
— Open files into new buffers
filename:string* -
vim_search
— Search within current buffer with regex support and options
pattern:string*, ignoreCase:boolean, wholeWord:boolean -
vim_search_replace
— Find and replace with global, case-insensitive, and confirm options
pattern:string*, replacement:string*, global:boolean, ignoreCase:boolean, confirm:boolean -
vim_grep
— Project-wide search using vimgrep with quickfix list
pattern:string*, filePattern:string -
vim_health
— Check Neovim connection health
(no parameters) -
vim_macro
— Record, stop, and play Neovim macros
action:string*, register:string, count:number -
vim_tab
— Manage Neovim tabs: create, close, and navigate between tabs
action:string*, filename:string -
vim_fold
— Manage code folding: create, open, close, and toggle folds
action:string*, startLine:number, endLine:number -
vim_jump
— Navigate Neovim jump list: go back, forward, or list jumps
direction:string*
Overview
What is Neovim Integration?
Neovim MCP Server connects MCP clients like Claude Desktop to a running Neovim instance via a Unix socket. It uses Vim’s native text editing commands and the official neovim/node-client library to provide AI‑assisted code or general text editing. Designed for developers who want to pair an AI assistant directly with their Neovim session.
How to use Neovim Integration?
Start Neovim with a socket, e.g. nvim --listen /tmp/nvim. Then configure the MCP server in your MCP client (e.g. Claude Desktop) using the npx -y mcp-neovim-server command. Set the NVIM_SOCKET_PATH environment variable (default /tmp/nvim) and optionally ALLOW_SHELL_COMMANDS=true to enable shell commands via !. The server exposes 19 tools for editing, navigation, search, and window management.
Key features of Neovim Integration
- Connects to a running Neovim instance via a socket file
- Views and switches between open buffers
- Retrieves cursor position, mode, filename, marks, registers, and visual selections
- Runs arbitrary Vim commands and optional shell commands
- Edits text using insert, replace, or replaceAll modes
- Search and replace with regex support and project‑wide grep with quickfix integration
- Health monitoring and connection diagnostics
Use cases of Neovim Integration
- AI‑assisted code editing and refactoring within an existing Neovim session
- File navigation and buffer switching without leaving the MCP client
- Project‑wide search and replace with grep and regex
- Recording and playing back Vim macros via AI prompts
- Managing windows, tabs, folds, and jumps in Neovim remotely
Frequently asked questions
1 What are the limitations of Neovim MCP Server?
It may not interact well with complex Neovim configurations or plugins. Shell command execution is disabled by default for security. A socket connection is required—it won’t work with standard Vim.
2 How do I enable shell commands?
Set the environment variable ALLOW_SHELL_COMMANDS to 'true' in your MCP client configuration. Default is false.
3 What socket path does the server use?
By default it uses /tmp/nvim. Override this with the NVIM_SOCKET_PATH environment variable.
4 How do I install the server?
You can either download the DXT package from the releases page and drag it to Claude Desktop, or add the npx -y mcp-neovim-server command to your claude_desktop_config.json with the appropriate environment variables.
5 Does the server require any external runtime?
Yes, it runs via npx which requires Node.js. It uses the official neovim/node-client library to communicate with Neovim.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In