Back to Home
linw1995 icon

nvim-mcp

by linw1995

Overview

A Model Context Protocol (MCP) server for seamless integration with Neovim, enabling AI assistants to interact with the editor via connections and structured resources.

Installation

Run Command
nvim-mcp --connect auto

Environment Variables

  • RUST_LOG

Security Notes

The server provides an `exec_lua` tool that allows execution of arbitrary Lua code within the connected Neovim instance. If an attacker can gain control of the input to this tool, they could compromise the Neovim environment, potentially leading to file system access, shell command execution (if Neovim is configured to allow it), or other system compromises. While the intended use is with trusted AI assistants, exposure to untrusted clients or a compromised AI client would pose a significant security risk. No obvious hardcoded secrets were found.

Similar Servers

Stats

Interest Score44
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars24
Forks3
Last Update2025-12-03

Tags

NeovimMCPLSPAIRust