mcp-neovim-server

mcp-neovim-server

3.6

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

  1. vim_buffer

    Display the current VIM text editor buffer content (with line number)

  2. vim_command

    Send navigation, point edit, and line delete commands to VIM

  3. vim_status

    Get VIM editor status (cursor position, mode, file name, etc.)

  4. vim_edit

    Edit lines using insert, replace, or replace all

  5. vim_window

    Operation of Neovim windows (split, close, navigation, etc.)

  6. vim_mark

    Setting marks at specific locations

  7. vim_register

    Set the register contents

  8. vim_visual

    Create visual mode selection