1. Conduid
  2. Developer Tools
  3. Neovim
MCP server · Developer Tools

Neovim

Control Neovim using Model Context Protocol (MCP) and the official neovim/node-client JavaScript library

Unclaimed MIT last commit a year ago anthropicaiclaudeneovimmodelcontextprotocolmcp
69Good

Scored 8 hours ago · breakdown

About Neovim

Neovim is an MCP server published by bigcodegen in the Developer Tools category: control Neovim using Model Context Protocol (MCP) and the official neovim/node-client JavaScript library.

The repository has 324 stars and 27 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/bigcodegen/mcp-neovim-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (19)

vim_bufferGet buffer contents with line numbers

Parameters not published.

vim_buffer_saveSave current buffer or save to specific filename

Parameters not published.

vim_buffer_switchSwitch between buffers by name or number

Parameters not published.

vim_commandExecute Vim commands with optional shell command support

Parameters not published.

vim_editEdit buffer content using insert, replace, or replaceAll modes

Parameters not published.

vim_file_openOpen files into new buffers

Parameters not published.

vim_foldManage code folding: create, open, close, and toggle folds

Parameters not published.

vim_grepProject-wide search using vimgrep with quickfix list

Parameters not published.

vim_healthCheck Neovim connection health

Parameters not published.

vim_jumpNavigate Neovim jump list: go back, forward, or list jumps

Parameters not published.

Show all 19 tools
vim_macroRecord, stop, and play Neovim macros

Parameters not published.

vim_markSet named marks at specific positions in the buffer

Parameters not published.

vim_registerManage Neovim register contents

Parameters not published.

vim_searchSearch within current buffer with regex support and options

Parameters not published.

vim_search_replaceFind and replace with global, case-insensitive, and confirm options

Parameters not published.

vim_statusGet comprehensive Neovim status including cursor position, mode, marks, and registers

Parameters not published.

vim_tabManage Neovim tabs: create, close, and navigate between tabs

Parameters not published.

vim_visualCreate visual mode selections in the buffer

Parameters not published.

vim_windowManage Neovim windows: split, close, and navigate between windows

Parameters not published.

Ask AI

✦

Ask AI about Neovim

Powered by Claude · Grounded in docs

I know everything about Neovim. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 8 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.5.5v0.5.5 · 14 Sep 2025Full Changelog**: https://github.com/bigcodegen/mcp-neovim-server/compare/v0.5.4...v0.5.5
v0.5.4v0.5.4 · 18 Jul 2025What's Changed • Handle visual line mode by @hammerdr in https://github.com/bigcodegen/mcp-neovim-server/pull/16 New Contributors • @hammerdr made their first contribution in https://github.com/bigcodegen/mcp-neovim-server/pull/16 Desktop…
v0.5.3v0.5.3 · 27 Jun 2025What's Changed bug fixes by @bigcodegen in https://github.com/bigcodegen/mcp-neovim-server/pull/15 Full Changelog**: https://github.com/bigcodegen/mcp-neovim-server/compare/v0.5.2...v0.5.3 We ship a DXT for easy install now.
v0.5.2v0.5.2 · 15 Jun 2025tool description enhancements
v0.5.1v0.5.1 · 15 Jun 2025dep fix for 0.5.0

README

Neovim MCP Server

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.

Features

  • Connects to your nvim instance if you expose a socket file, for example --listen /tmp/nvim, when starting nvim
  • Views your current buffers and manages buffer switching
  • Gets cursor location, mode, file name, marks, registers, and visual selections
  • Runs vim commands and optionally shell commands through vim
  • Can make edits using insert, replace, or replaceAll modes
  • Search and replace functionality with regex support
  • Project-wide grep search with quickfix integration
  • Comprehensive window management
  • Health monitoring and connection diagnostics

API

Resources

  • nvim://session: Current neovim text editor session
  • nvim://buffers: List of all open buffers in the current Neovim session with metadata including modified status, syntax, and window IDs

Tools

Core Tools

  • vim_buffer
    • Get buffer contents with line numbers (supports filename parameter)
    • Input filename (string, optional) - Get specific buffer by filename
    • Returns numbered lines with buffer content
  • vim_command
    • Send a command to VIM for navigation, spot editing, and line deletion
    • Input command (string)
    • Runs vim commands with nvim.replaceTermcodes. Multiple commands work with newlines
    • Shell commands supported with ! prefix when ALLOW_SHELL_COMMANDS=true
    • On error, 'nvim:errmsg' contents are returned
  • vim_status
    • Get comprehensive Neovim status
    • Returns cursor position, mode, filename, visual selection with enhanced detection, window layout, current tab, marks, registers, working directory, LSP client info, and plugin detection
    • Enhanced visual selection reporting: detects visual mode type (character/line/block), provides accurate selection text, start/end positions, and last visual selection marks
  • vim_edit
    • Edit lines using insert, replace, or replaceAll modes
    • Input startLine (number), mode ("insert" | "replace" | "replaceAll"), lines (string)
    • 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)
    • Input command (string: "split", "vsplit", "only", "close", "wincmd h/j/k/l")
  • vim_mark
    • Set named marks at specific positions
    • Input mark (string: a-z), line (number), column (number)
  • vim_register
    • Set content of registers
    • Input register (string: a-z or "), content (string)
  • vim_visual
    • Create visual mode selections
    • Input startLine (number), startColumn (number), endLine (number), endColumn (number)

Enhanced Buffer Management

  • vim_buffer_switch
    • Switch between buffers by name or number
    • Input identifier (string | number) - Buffer name or number
  • vim_buffer_save
    • Save current buffer or save to specific filename
    • Input filename (string, optional) - Save to specific file
  • vim_file_open
    • Open files into new buffers
    • Input filename (string) - File to open

Search and Replace

  • vim_search
    • Search within current buffer with regex support
    • Input pattern (string), ignoreCase (boolean, optional), wholeWord (boolean, optional)
  • vim_search_replace
    • Find and replace with advanced options
    • Input pattern (string), replacement (string), global (boolean, optional), ignoreCase (boolean, optional), confirm (boolean, optional)
  • vim_grep
    • Project-wide search using vimgrep with quickfix list
    • Input pattern (string), filePattern (string, optional) - File pattern to search

Advanced Workflow Tools

  • vim_macro
    • Record, stop, and play Vim macros
    • Input action ("record" | "stop" | "play"), register (string, a-z), count (number, optional)
  • vim_tab
    • Complete tab management
    • Input action ("new" | "close" | "next" | "prev" | "first" | "last" | "list"), filename (string, optional)
  • vim_fold
    • Code folding operations
    • Input action ("create" | "open" | "close" | "toggle" | "openall" | "closeall" | "delete"), startLine/endLine (numbers, for create)
  • vim_jump
    • Jump list navigation
    • Input direction ("back" | "forward" | "list")

System Tools

  • vim_health
    • Check Neovim connection health and socket status

Using this comprehensive set of 19 tools, Claude can peer into your neovim session, navigate buffers, perform searches, make edits, record macros, manage tabs and folds, and handle your complete development workflow with standard Neovim features.

Prompts

  • neovim_workflow: Get contextual help and guidance for common Neovim workflows including editing, navigation, search, buffer management, window operations, and macro usage. Provides step-by-step instructions for accomplishing tasks with the available MCP tools.

Error Handling

The server implements comprehensive error handling with custom error classes and consistent error responses:

  • NeovimConnectionError: Socket connection failures with detailed messages
  • NeovimCommandError: Command execution failures with command context
  • NeovimValidationError: Input validation failures

New in v0.5.2: All tools now include robust try-catch error handling that returns meaningful error messages in proper MCP format. Features include connection health monitoring, graceful error propagation, and actionable error messages to help diagnose issues.

Limitations

  • May not interact well with complex neovim configurations or plugins
  • Shell command execution is disabled by default for security
  • Socket connection required - won't work with standard vim

Configuration

Environment Variables

  • ALLOW_SHELL_COMMANDS: Set to 'true' to enable shell command execution (e.g. !ls). Defaults to false for security.
  • NVIM_SOCKET_PATH: Set to the path of your Neovim socket. Defaults to '/tmp/nvim' if not specified.

Installation

Option 1: DXT Package (Recommended)

  1. Download the latest .dxt file from 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"
      }
    }
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

README fetched from the repository 8 hours ago. The original is authoritative.

Questions

About Neovim

How do I install Neovim?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Neovim safe to use with an AI agent?

Its trust score is 69 out of 100 (good). It passes 3 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Neovim still maintained?

The last commit was a year ago and 9 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.