A Model Context Protocol (MCP) server that provides seamless integration with Neovim instances, enabling AI assistants to interact with your editor through connections and access diagnostic information via structured resources. Supports both stdio and HTTP server transport modes for different integration - Multi-Connection Support: Manage multiple concurrent Neovim instances - LSP Integration: Com
Add this skill
npx mdskills install linw1995/nvim-mcpComprehensive Neovim integration MCP server with 26 tools, LSP support, and excellent documentation
1# Neovim MCP Server23[](https://codecov.io/gh/linw1995/nvim-mcp)456A Model Context Protocol (MCP) server that provides seamless integration with7Neovim instances, enabling AI assistants to interact with your editor through8connections and access diagnostic information via structured resources.9Supports both stdio and HTTP server transport modes for different integration10scenarios.1112## Features1314- **Multi-Connection Support**: Manage multiple concurrent Neovim instances15- **LSP Integration**: Complete LSP workflow with code actions, hover, and diagnostics16- **Universal Document Identifier**: Work with files by buffer ID, relative path,17 or absolute path18- **MCP Resources**: Structured diagnostic data via connection-aware URI schemes19- **Multi-Transport Support**: Both stdio and HTTP server transport modes20- **Dynamic Tool System** ⚠️ **(Experimental)**: User-extensible custom tools21- **Plugin Integration**: Automatic setup through Neovim plugin2223## Installation2425### Use Cargo install from crates.io2627```bash28cargo install nvim-mcp29```3031### Using Nix3233```bash34nix profile install github:linw1995/nvim-mcp#nvim-mcp35```3637### From Source3839```bash40git clone https://github.com/linw1995/nvim-mcp.git && cd nvim-mcp41cargo install --path .42```4344## Usage Cases Collection4546<!-- markdownlint-configure-file47{48 "no-inline-html": false49}50-->5152<video53 src="https://github.com/user-attachments/assets/6946ee1c-42ac-4313-ae10-ca92a4dd0ab7"54 style="max-height:640px; min-height: 200px">55</video>5657- LSP Hover Translation (From [#85](https://github.com/linw1995/nvim-mcp/discussions/85))58- Diagnostic Analysis and Code Fixes (From [#10](https://github.com/linw1995/nvim-mcp/discussions/10))59- Smart Context Retrieval (From [#86](https://github.com/linw1995/nvim-mcp/discussions/86))60- And more in [Discussions](https://github.com/linw1995/nvim-mcp/discussions)6162## Quick Start6364### 1. Setup Neovim Integration6566With a plugin manager like `lazy.nvim`:6768```lua69return {70 "linw1995/nvim-mcp",71 build = "cargo install --path .",72 opts = {},73}74```7576### 2. Configure `claude` or other MCP clients7778```bash79# Auto-connect to current project Neovim instances (recommended)80claude mcp add -s local nvim -- nvim-mcp --log-file . \81 --log-level debug --connect auto8283# Analyze diagnostics in current Neovim instance84claude "analyze @nvim:nvim-diagnostics://"85```8687## Documentation8889For detailed information, see:9091- **[Usage Guide](docs/usage.md)**: Detailed usage workflows, CLI options,92 and transport modes93- **[Tools Reference](docs/tools.md)**: Complete reference for all 26 MCP tools94- **[Resources](docs/resources.md)**: MCP resources and URI schemes95- **[Development](docs/development.md)**: Development setup, testing,96 and contributing9798## Development99100Basic development setup:101102```bash103# Enter development shell104nix develop .105106# Run tests107cargo test -- --show-output108109# Build and run110cargo run -- --connect auto111```112113See [Development Guide](docs/development.md) for complete setup instructions,114testing procedures, and contribution guidelines.115
Full transparency — inspect the skill content before installing.