bigcodegen/mcp-neovim-server
Control Neovim using Model Context Protocol (MCP) and the official neovim/node-client JavaScript library
9076bbb34a08mcp-neovim-server0.5.5 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- CRITICAL7 production dependencies have known vulnerabilities (worst: critical).
- HIGHTools
vim_command,vim_searchexecute code by design: an agent steered by prompt injection can use them that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Run it in a container or a virtual machine
vim_command,vim_searchcan start programs or run code they are given. Keep it away from your home folder, keys and other projects. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
vim_command,vim_search, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
@modelcontextprotocol/sdk1.32.0 or later,ajv6.14.0 or later,body-parser2.4.0 or later,path-to-regexp8.4.0 or later and 3 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 19 tools, 2 resources, 1 prompt. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
vim_file_openbuffers, session, vim_buffer, vim_buffer_save, vim_buffer_switch, vim_command and 15 moreNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (22: 19 tools, 2 resources, 1 prompt)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
vim_commandtool Execute Vim commands with optional shell command supportEnv varsExecutes code
Execute Vim commands with optional shell command support
vim_searchtool Search within current buffer with regex support and optionsEnv varsExecutes code
Search within current buffer with regex support and options
neovim_workflowprompt Get help with common Neovim workflows and editing tasks
Get help with common Neovim workflows and editing tasks
buffersresource Env vars
No description.
sessionresource Env vars
No description.
vim_buffertool Get buffer contents with line numbersEnv vars
Get buffer contents with line numbers
vim_buffer_savetool Save current buffer or save to specific filenameEnv vars
Save current buffer or save to specific filename
vim_buffer_switchtool Switch between buffers by name or numberEnv vars
Switch between buffers by name or number
vim_edittool Edit buffer content using insert, replace, or replaceAll modesEnv vars
Edit buffer content using insert, replace, or replaceAll modes
vim_file_opentool Open files into new buffersFilesEnv vars
Open files into new buffers
vim_foldtool Manage code folding: create, open, close, and toggle foldsEnv vars
Manage code folding: create, open, close, and toggle folds
vim_greptool Project-wide search using vimgrep with quickfix listEnv vars
Project-wide search using vimgrep with quickfix list
vim_healthtool Check Neovim connection healthEnv vars
Check Neovim connection health
vim_jumptool Navigate Neovim jump list: go back, forward, or list jumpsEnv vars
Navigate Neovim jump list: go back, forward, or list jumps
vim_macrotool Record, stop, and play Neovim macrosEnv vars
Record, stop, and play Neovim macros
vim_marktool Set named marks at specific positions in the bufferEnv vars
Set named marks at specific positions in the buffer
vim_registertool Manage Neovim register contentsEnv vars
Manage Neovim register contents
vim_search_replacetool Find and replace with global, case-insensitive, and confirm optionsEnv vars
Find and replace with global, case-insensitive, and confirm options
vim_statustool Get comprehensive Neovim status including cursor position, mode, marks, and registersEnv vars
Get comprehensive Neovim status including cursor position, mode, marks, and registers
vim_tabtool Manage Neovim tabs: create, close, and navigate between tabsEnv vars
Manage Neovim tabs: create, close, and navigate between tabs
vim_visualtool Create visual mode selections in the bufferEnv vars
Create visual mode selections in the buffer
vim_windowtool Manage Neovim windows: split, close, and navigate between windowsEnv vars
Manage Neovim windows: split, close, and navigate between windows
Text the model reads (22)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
vim_buffer tool
Get buffer contents with line numbers
vim_command tool
Execute Vim commands with optional shell command support
vim_status tool
Get comprehensive Neovim status including cursor position, mode, marks, and registers
vim_edit tool
Edit buffer content using insert, replace, or replaceAll modes
vim_window tool
Manage Neovim windows: split, close, and navigate between windows
vim_mark tool
Set named marks at specific positions in the buffer
vim_register tool
Manage Neovim register contents
vim_visual tool
Create visual mode selections in the buffer
vim_buffer_switch tool
Switch between buffers by name or number
vim_buffer_save tool
Save current buffer or save to specific filename
vim_file_open tool
Open files into new buffers
vim_search tool
Search within current buffer with regex support and options
vim_search_replace tool
Find and replace with global, case-insensitive, and confirm options
vim_grep tool
Project-wide search using vimgrep with quickfix list
vim_health tool
Check Neovim connection health
vim_macro tool
Record, stop, and play Neovim macros
vim_tab tool
Manage Neovim tabs: create, close, and navigate between tabs
vim_fold tool
Manage code folding: create, open, close, and toggle folds
vim_jump tool
Navigate Neovim jump list: go back, forward, or list jumps
neovim_workflow prompt
Get help with common Neovim workflows and editing tasks
session resource
buffers resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 22 tool handlers traced
- Executes caller-supplied code HIGH1 finding in vim_search; 1 more to review
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 22 tool handlers traced
- Requests any addressNo tool sends a request to an address the caller supplies — 22 tool handlers traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 22 tool handlers traced
- Tools that start processesNot seen in the traced code of 22 capabilities; 21 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 22 capabilities touch files; 20 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 22 capabilities; 21 more call code the scanner could not follow, where it may happen
Where the code is: 22 handlers in 1 file at commit 9076bbb34a08
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies CRITICAL7 production packages with known advisories
- Known vulnerabilities in other dependencies1 package with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK version@modelcontextprotocol/sdk ^1.17.4
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 22 capabilities; 21 more call code the scanner could not follow, where it may happen
- Environment variables21 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (2 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (7 in production)
proxy-addrnpm 2.0.7 CRITICAL 1 advisory 2.0.8
- CRITICALGHSA-jqcg-44mw-7w3h CVE-2026-90711proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet
@modelcontextprotocol/sdknpm 1.17.4 HIGH 8 advisories 1.24.01.25.21.26.0+3 more
- HIGHGHSA-f897-62hf-6gxqMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length
- HIGHGHSA-6qxp-vccf-f47h CVE-2026-104850MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- HIGHGHSA-46jr-4wx8-v453 CVE-2026-111768MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
- HIGHGHSA-345p-7cg4-v4c7 CVE-2026-25536@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
- HIGHGHSA-8r9q-7v3j-jr4g CVE-2026-0621Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
- HIGHGHSA-w48q-cv73-mx4w CVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
- MEDIUMGHSA-6prh-2h8m-c8cw CVE-2026-111769MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
- MEDIUMGHSA-rvq5-wwqv-78pq CVE-2026-111771MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
body-parsernpm 2.2.0 HIGH 3 advisories 1.20.61.20.92.2.1+2 more
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
- MEDIUMGHSA-wqch-xfxh-vrr4 CVE-2025-13466body-parser is vulnerable to denial of service when url encoding is used
- LOWGHSA-v422-hmwv-36x6 CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
path-to-regexpnpm 8.2.0 HIGH 2 advisories 8.4.0
- HIGHGHSA-j3q9-mxjg-w52f CVE-2026-4926path-to-regexp vulnerable to Denial of Service via sequential optional groups
- MEDIUMGHSA-27v5-c462-wpq7 CVE-2026-4923path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
zodnpm 3.25.76 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
qsnpm 6.14.0 MEDIUM 5 advisories 6.14.16.14.26.15.2+2 more
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- MEDIUMGHSA-6rw7-vpxm-498p CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
ajvnpm 6.12.6 MEDIUM 1 advisory 6.14.08.18.0
- MEDIUMGHSA-2g4f-4pwh-qvx6 CVE-2025-69873ajv has ReDoS when using `$data` option
1 vulnerable package outside the server itself (used only for development, tests or examples, not shipped)
diffnpm 4.0.2 LOW 1 advisory 3.5.14.0.45.2.2+1 more
- LOWGHSA-73rr-hh4g-fpgx CVE-2026-24001jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.17.4 |
| Servers in the code | 1 (mcp-neovim-server) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2025-10-11 |
| Signed releases | not checked yet |
Install it
For the server's own npm package mcp-neovim-server. Pin a version ([email protected]) so an update cannot change the tools without you noticing.
Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"mcp-neovim-server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
]
}
}
}Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-neovim-server": {
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
]
}
}
}VS Code .vscode/mcp.json
{
"servers": {
"mcp-neovim-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-neovim-server"
]
}
}
}Claude Code terminal
claude mcp add mcp-neovim-server -- npx -y mcp-neovim-serverWhere it is published
| npm package | mcp-neovim-server |
|---|---|
| Downloads | 245 a month on npm |
| Listed in | 7 catalogs (awesome_habitoai, awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org, npm) |
| License | MIT |
| Created | 2024-12-22 |
| Topics | anthropic claude mcp modelcontextprotocol neovim |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.