nvim-editor-mcp
Allows AI agents to interact with a Neovim instance, providing tools for opening files, executing Lua, fetching diagnostics, setting the quickfix list, and showing notifications.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nvim-editor-mcpShow diagnostics for the current buffer"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nvim-editor-mcp
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.
Related MCP server: LSP-MCP
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.sockThe 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 |
| Connect to a Neovim instance by socket path |
| Open a file at a specific line |
| Populate the quickfix list |
| Fetch LSP diagnostics |
| Execute arbitrary Lua in Neovim |
| Show a notification in Neovim |
MCP client configuration
{
"mcpServers": {
"nvim-editor-mcp": {
"command": "nvim-editor-mcp"
}
}
}Development
Setup
uv syncThis creates a .venv and installs all runtime + dev dependencies.
Linting & formatting
uv run ruff check .
uv run ruff format .Type checking
uv run ty checkTests
uv run pytestAll checks (CI-style)
uv run ruff check . && uv run ruff format --check . && uv run ty check && uv run pytestLicense
GPL-2.0
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI assistants to control running Neovim sessions via RPC socket, supporting command execution, state inspection, and LSP actions. Automatically discovers Neovim instances and supports multi-instance management on Linux and macOS.1860MIT
- FlicenseAqualityCmaintenanceMinimal MCP server bridging a Roslyn C# language server to AI agents, exposing tools for diagnostics, call hierarchy, and type hierarchy.21
- Flicense-qualityDmaintenanceAn MCP server that enables AI agents to control Neovim instances running in tmux sessions.
- AlicenseAqualityBmaintenanceMake Neovim feel like Cursor. This MCP server gives an agent full control over the Neovim session it is running inside, including buffers, windows, diagnostics, LSP language intelligence, and terminals.23MIT
Related MCP Connectors
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gierdo/nvim-editor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server