An MCP server for Neovim that connects Claude Desktop or any MCP client to Neovim using the official neovim/node-client JavaScript library. Configure external data files via environment variables: NVIM_SOCKET_PATH (path to Neovim socket, default '/tmp/nvim') and ALLOW_SHELL_COMMANDS (set to 'true' to enable shell command execution).
The Neovim MCP Server MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.
Configuration
Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.
Context7 Platform - Up-to-date Code Docs For Any Prompt
upstash
Community
Context7 MCP server providing up-to-date, version-specific documentation and code examples for libraries, enabling coding agents to fetch accurate docs and code snippets. Requires an API key for higher rate limits, passed via CONTEXT7_API_KEY header.
57.7Kstars0forks
Playwright MCP
Microsoft Corporation
Community
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. Enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
35.5Kstars0forks
AIHawk
feder-cr
Community
AIHawk is an anti detect browser and web browsing agent, open source, with an MCP server for coding agents: undetected, no captchas, no blocks. It requires an OpenRouter API key for the standalone web UI mode, which can be provided via the --openrouter-key flag or the OPENROUTER_API_KEY environment variable or a .env file in the running directory.
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
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
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.
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.