vim-mcp-server
JSON →MCP server for driving Vim
Tools · 17
- list_buffers List all open buffers
- get_buffer Read buffer contents (optionally a line range)
- edit_buffer Replace, insert, or delete lines in a buffer
- open_file Open a file via :edit
- save_buffer Save a buffer via :write (opt-in, see above)
- close_buffer Close a buffer via :bdelete
- get_cursor Get current cursor position
- set_cursor Move cursor to a line and column
- get_visual_selection Get the current visual selection, if any
- execute_command Run an arbitrary Ex command (opt-in, see above)
- get_quickfix_list Get the current quickfix list entries
- set_quickfix_list Set the quickfix list
- get_location_list Get the location list for the current window
- set_location_list Set the location list for the current window
- get_messages Get Vim's message history (:messages output)
- show_diff Open a side-by-side diff view in a new tab (files or content)
- show_git_diff Open a side-by-side git diff in a new tab; git computes both sides inside Vim