MCP Catalogs
Home

mcp-neovim-server

by bigcodegen·312·Score 47

MCP server for controlling Neovim with 19 tools for editing, navigation, buffer management and workflow automation.

developer-toolsproductivityai-llm
24
Forks
9
Open issues
7 mo ago
Last commit
2d ago
Indexed

Overview

This MCP server enables AI models like Claude to interact with Neovim through a rich set of tools. It provides comprehensive control over buffers, windows, search operations, and Vim commands while maintaining a lightweight connection via socket files. The server offers both basic operations like buffer editing and advanced features such as macro recording, tab management, and project-wide grep searches with quickfix integration.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI-assisted coding in Neovim with direct buffer manipulation and code editing capabilities
you:Automated text processing and file management through Neovim commands
you:Complex development workflow automation combining multiple Vim operations
you:How do I enable shell command execution?
you:What are the system requirements?

When to choose this

Choose this MCP server if you're already using Neovim and want AI assistance directly within your text editor environment.

When NOT to choose this

Don't choose this if you use other text editors (VS Code, Emacs, etc.) or if you need complex Neovim plugin integration that might interfere with the MCP server.

Tools this server exposes

12 tools extracted from the README
  • vim_bufferfilename (string, optional)

    Get buffer contents with line numbers (supports filename parameter)

  • vim_commandcommand (string)

    Send a command to VIM for navigation, spot editing, and line deletion

  • vim_status

    Get comprehensive Neovim status including cursor position, mode, and more

  • vim_editstartLine (number), mode ("insert" | "replace" | "replaceAll"), lines (string)

    Edit lines using insert, replace, or replaceAll modes

  • vim_windowcommand (string: "split", "vsplit", "only", "close", "wincmd h/j/k/l")

    Manipulate Neovim windows (split, vsplit, close, navigate)

  • vim_searchpattern (string), ignoreCase (boolean, optional), wholeWord (boolean, optional)

    Search within current buffer with regex support

  • vim_search_replacepattern (string), replacement (string), global (boolean, optional), ignoreCase (boolean, optional), confirm (boolean, optional)

    Find and replace with advanced options

  • vim_greppattern (string), filePattern (string, optional)

    Project-wide search using vimgrep with quickfix list

  • vim_macroaction ("record" | "stop" | "play"), register (string, a-z), count (number, optional)

    Record, stop, and play Vim macros

  • vim_tabaction ("new" | "close" | "next" | "prev" | "first" | "last" | "list"), filename (string, optional)

    Complete tab management

  • vim_foldaction ("create" | "open" | "close" | "toggle" | "openall" | "closeall" | "delete"), startLine/endLine (numbers, for create)

    Code folding operations

  • vim_health

    Check Neovim connection health and socket status

Comparable tools

vim-mcpneovim-clienteditor-tool

Installation

Installation Options

Option 1: DXT Package (Recommended)
  1. Download the latest .dxt file from [Releases](https://github.com/bigcodegen/mcp-neovim-server/releases)
  2. Drag the file to Claude Desktop
Option 2: Manual Installation

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "MCP Neovim Server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-neovim-server"
      ],
      "env": {
        "ALLOW_SHELL_COMMANDS": "true",
        "NVIM_SOCKET_PATH": "/tmp/nvim"
      }
    }
  }
}

FAQ

How do I enable shell command execution?
Set the environment variable ALLOW_SHELL_COMMANDS to 'true' in your configuration. This is disabled by default for security reasons.
What are the system requirements?
You need Neovim installed with socket support, Node.js for the MCP server, and a Model Context Protocol client like Claude Desktop. The server works with socket-based connections, not standard vim.

On Hacker News

Recent discussion from the developer community.

Compare mcp-neovim-server with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.