Nvim-mcp acts as an MCP server, seamlessly bridging AI agents like Cursor, Claude Code, and Codex with your active Neovim session. It leverages Neovim's native msgpack-RPC socket, eliminating the need for extra plugins. This integration grants AI agents comprehensive capabilities, allowing them to perceive your editor state, modify buffer content in memory with full undo support, execute any Vim command, send keystrokes, query LSP diagnostics, annotate code with highlights, and even manage multiple Neovim instances. Essentially, anything you can do in Neovim, an agent can perform, offering a powerful platform for AI-assisted development and collaboration.
주요 기능
0139 GitHub stars
02In-memory buffer editing with immediate feedback and full undo support
03Query LSP diagnostics (errors, warnings) across buffers and annotate code with highlights
04Execution of any Vim command and sending keystrokes for navigation and actions
05Auto-discovery and management of multiple running Neovim instances
06First-class access for AI agents to Neovim state (editor mode, buffers, cursor context, diagnostics)
사용 사례
01Automating code refactoring, generation, and documentation (e.g., adding docstrings) directly in the editor
02Enabling AI agents (e.g., Claude, Cursor) to collaborate directly within a Neovim session
03Developing and running tests with AI assistance inside Neovim by opening splits and saving files