nvim-mcp-server
Provides tools to interact with Neovim via LSP for symbol-level code operations, and execute Lua or Vimscript code in a Neovim instance.
Click on "Deploy 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-mcp-servershow top-level symbols in src/main.ts"
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.
Neovim MCP Server
A Model Context Protocol (MCP) server for Neovim that provides LSP-based symbol tools. This server enables AI language models to interact with Neovim's Language Server Protocol (LSP) for symbol-level code operations.
Features
Symbol Tools (LSP-based)
get_symbols_overview(relative_path, depth)- Get overview of top-level symbols in a file. Usedepthto include children (e.g., methods of a class).find_symbol(name_path_pattern, relative_path, depth)- Find symbols by name path pattern (e.g., "MyClass/my_method").find_referencing_symbols(name_path, relative_path)- Find all references to a symbol.replace_symbol_body(name_path, relative_path, body)- Replace the body of a symbol definition.insert_after_symbol(name_path, relative_path, body)- Insert content after a symbol's definition.insert_before_symbol(name_path, relative_path, body)- Insert content before a symbol's definition.rename_symbol(name_path, relative_path, new_name)- Rename a symbol throughout the codebase.restart_language_server()- Restart the LSP server (useful when LSP hangs).get_lsp_client_info()- Get information about active LSP clients.
General Tools
execute_lua(code)- Execute Lua code in Neovimexecute_vimscript(code)- Execute Vimscript code in Neovim
Related MCP server: CodeAnalysis MCP Server
Installation
Prerequisites
Python 3.11+
uv package manager
Neovim 0.9+ with built-in LSP client
Install from source
git clone https://github.com/brianhuster/nvim-mcp-server.git
cd nvim-mcp-server
uv syncAdd to your Neovim configuration
Add the plugin directory to your Neovim runtime path:
-- In your init.lua or plugins.lua
vim.opt.runtimepath:append("/path/to/nvim-mcp-server/plugin")Usage
Start Neovim with the MCP server
Start Neovim with a socket:
nvim --listen /tmp/nvim.sockSet the NVIM environment variable and run the MCP server:
export NVIM=/tmp/nvim.sock uv run nvim-mcp
Configuration with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"nvim": {
"command": "uv",
"args": ["run", "nvim-mcp"],
"env": {
"NVIM": "/tmp/nvim.sock"
}
}
}
}Use with Goose
extensions:
nvim-mcp:
cmd: uv
args: ["run", "nvim-mcp"]
env:
NVIM: "/tmp/nvim.sock"
type: stdioDevelopment
Commands
uv run nvim-mcp- Start the MCP serveruv run nvim-mcp --version- Show versionuv run ruff check- Run lintinguv run mypy- Run type checking
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that helps AI code editors locate TypeScript symbol definitions in codebases, particularly useful for finding original definitions of imported symbols and classes.18 npm-
- FlicenseDqualityDmaintenanceA comprehensive Model Context Protocol server for advanced code analysis that provides tools for syntax analysis, dependency visualization, and AI-assisted development workflow support.287-
- FlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for advanced code analysis and editing with semantic search capabilities, enabling AI assistants to perform complex code operations through a standardized interface.151-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that utilizes a headless Neovim instance as an IDE kernel for advanced code editing and navigation. It provides tools for LSP-powered diagnostics, buffer management, and structural edits using Tree-sitter.-