What are the Vim requirements?
Vim must be compiled with `+python3`.
@breggles
Basic information
An MCP server for driving Vim. Connect your coding agent to show you changed files in Vim, or get it to advise you on the code in your open buffers. Can also set your quickfix/location list to direct you to multiple points in your code.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"vim": {
"type": "remote",
"url": "http://localhost:8765/mcp",
"enabled": true
}
}
}List all open buffers
Read buffer contents (optionally a line range)
Replace, insert, or delete lines in a buffer
Open a file via `:edit`
Save a buffer via `:write` (opt-in, see above)
Close a buffer via `:bdelete`
Get current cursor position
Move cursor to a line and column
Get the current visual selection, if any
Run an arbitrary Ex command (opt-in, see above)
Get the current quickfix list entries
Set the quickfix list
Get the location list for the current window
Set the location list for the current window
Get Vim's message history (`:messages` output)
Open a side-by-side diff view in a new tab (files or content)
Vim MCP Server is an MCP (Model Context Protocol) server embedded in Vim that exposes tools over HTTP. It lets MCP-compatible clients—such as AI coding agents—read and modify buffers, move the cursor, retrieve visual selections, manage quickfix and location lists, open side-by-side diffs, read message history, and run Ex commands.
Install the plugin using your preferred Vim plugin manager (e.g., vim‑plug, Vundle, or manual clone). Start the server in Vim with :McpServerStart (default port 8765). Optionally, set g:mcp_server_autostart = 1 in your vimrc to start it automatically. Point your MCP client at http://127.0.0.1:8765/mcp.
Vim must be compiled with `+python3`.
Use `:McpServerStart [port]` to start and `:McpServerStop` to stop. Check status with `:McpServerStatus`.
`execute_command`, `save_buffer`, and `edit_buffer` are disabled by default. Enable them by setting `g:mcp_server_allow_execute`, `g:mcp_server_allow_save`, or `g:mcp_server_allow_edit` to `1` in your `vimrc`.
Set the client to connect to `http://127.0.0.1:8765/mcp`. For example, in OpenCode’s `opencode.jsonc` add the server with `"type": "remote"` and the URL.
In `opencode.jsonc` under `agent.plan.tools`, disable all `vim_*` tools and then re‑enable specific read‑only ones like `vim_list_buffers`, `vim_get_buffer`, etc.
Painless E2E Automation for Mobile and Web

Soar Flight Booking MCP is a remote MCP server available at https://mcp.soar.flights.

Request dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3
MCP Toolbox for Databases is an open source MCP server for databases.

See and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
Comments