Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Nvim Editor

FreeNot checked

MCP server bridging tool calls to Neovim editor actions via RPC. Enables AI agents to open files, run Lua, manage quickfix lists, fetch diagnostics, and send no

GitHubEmbed

About

MCP server bridging tool calls to Neovim editor actions via RPC. Enables AI agents to open files, run Lua, manage quickfix lists, fetch diagnostics, and send notifications.

README

MCP server bridging tool calls to Neovim editor actions via RPC.

Exposes Neovim operations (open files, run Lua, diagnostics, quickfix, notifications) as Model Context Protocol tools, so AI agents can drive your editor.

Installation

Requires uv and Python ≥ 3.11.

uv tool install .

This puts nvim-editor-mcp on your PATH.

Usage

nvim-editor-mcp auto-discovers the socket from the $NVIM env var, which is set when the mcp is started from nvim, e.g. through codecompanion

nvim-editor-mcp

# Explicit socket path
nvim-editor-mcp --socket /tmp/nvim.sock

The server starts in stdio MCP mode. If no socket is given and $NVIM is unset, it starts anyway and discovers the socket on the first tool call (via attach_nvim).

Tools

Tool Description
attach_nvim Connect to a Neovim instance by socket path
detach_nvim Detach from the current Neovim instance
open_file Open a file at a specific line
set_quickfix Populate the quickfix list
get_diagnostics Fetch LSP diagnostics
nvim_exec_lua Execute arbitrary Lua in Neovim
notify Show a notification in Neovim

MCP client configuration

{
  "mcpServers": {
    "nvim-editor-mcp": {
      "command": "nvim-editor-mcp"
    }
  }
}

Development

Setup

uv sync

This creates a .venv and installs all runtime + dev dependencies.

Linting & formatting

uv run ruff check .
uv run ruff format .

Type checking

uv run ty check

Tests

uv run pytest

All checks (CI-style)

uv run ruff check . && uv run ruff format --check . && uv run ty check && uv run pytest

License

GPL-2.0

from github.com/gierdo/nvim-editor-mcp

Installing Nvim Editor

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/gierdo/nvim-editor-mcp

FAQ

Is Nvim Editor MCP free?

Yes, Nvim Editor MCP is free — one-click install via Unyly at no cost.

Does Nvim Editor need an API key?

No, Nvim Editor runs without API keys or environment variables.

Is Nvim Editor hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Nvim Editor in Claude Desktop, Claude Code or Cursor?

Open Nvim Editor on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Nvim Editor with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs