Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Connect Claude Code to Vim/Neovim - query state, execute commands, search help, record macros
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"vim": {
"command": "npx",
"args": [
"-y",
"vim-mcp"
]
}
}
}ターミナルでこれを実行します
claude mcp add vim -- npx -y vim-mcpプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"vim": {
"command": "npx",
"args": [
"-y",
"vim-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"vim": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"vim-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント iggredible で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.1.2)がレジストリに届いたのは14 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Simple MCP (Model Context Protocol) integration for Vim and Claude Code.
How it works:
/tmp/vim-mcp-server.sockList and select Vim instance:
You can (finally) exit Vim!
For more, check out the demo wiki page
Ok, I get what it does, but why do we need this?
If you're trying to do basic Vim operations like typing "split the window in half" (24 keystrokes) vs running :sp / :vs (3 keystrokes), then you're better off without it. Where vim-mcp shines is when the number of keystrokes is unknown; when you can only describe what you want to do but don't know exactly how to do it. Things like complex regex/macros/lookups, help semantic search, etc. - it's faster to tell AI what you're trying to accomplish than trial-and-error. I think the word I'm looking for is circumlocution?
Here's one scenario where it may be useful:
Suppose you want to perform a complex Vim command that would otherwise take a long time to construct. Claude can easily do it if you can describe what you want to do. Maybe you want to substitute "(test foobar)" with square brackets ONLY IF they come after a 3rd-level Markdown header. That's not something I can easily cook up in seconds... but Claude can!
With vim-mcp, I can prompt Claude:
In README.md, substitute the set of parentheses `(SOME TEXT)` with square brackets `[SOME TEXT]`, where SOME TEXT says "test foobar"; do this if the strings come after a 3rd-level header markdown.
And that's it! When I did it, Claude came up with the g command and executed it for me.
vim-mcp - vim_execute (MCP)(command: "g/^### /,/^#\\{1,3\\} \\|^$/s/(test foobar)/[test foobar]/g")
⎿ Command executed successfully: g/^### /,/^#\{1,3\} \|^$/s/(test foobar)/[test foobar]/g
Bonus: the executed commands are stored in the command history so you can go back and re-execute them or modify them.
What if you later decide, "Hey, I actually don't want to substitute them with square brackets [], I want to substitute them with curly brackets {} instead!" You can just access the command history (q:, :history, or : then press up/down) and make the necessary modifications.
So I did :, then pressed the up arrow a few times until I saw the command that vim-mcp executed, and changed it to :g/^### /,/^#\{1,3\} \|^$/s/(test foobar)/{test foobar}/g. Done!
For a detailed overview, see vim-mcp overview.
Tools:
list_vim_instancesselect_vim_instanceget_vim_statevim_executeexit_vimvim_search_helpvim_record_macroResources:
vim://instances - List of all available Vim instancesvim://state - Current state of the selected Vim instancevim://buffers - List of all buffers in the selected Vim instancevim://tabs - List of all tabs in the selected Vim instance+channel feature OR Neovim 0.5+/tmp directoryUsing vim-plug:
Plug 'iggredible/vim-mcp'
The MCP server is a Node project. You need to install the dependencies.
cd ~/.vim/plugged/vim-mcp # Or wherever your plugin is installed
./install.sh
The install script will automatically:
vim-mcp commandIf you prefer to install manually or the install.sh script doesn't work:
cd ~/.vim/plugged/vim-mcp/server
npm install
npm install will also run chmod +x bin/vim-mcp
vim-mcp command (inside the /server directory):npm link
If this fails due to permissions or other reasons, you can skip global installation and use the full path in your config.
After installation, add one of these configurations to your Claude configuration file:
If global install succeeded (if vim-mcp command is available):
"mcpServers": {
"vim-mcp": { "command": "vim-mcp", "args": [] }, }
If npm link failed:
{
"mcpServers": { "vim-mcp": { "command": "node", "args": ["/some/path/.vim/plugged/vim-mcp/server/bin/vim-mcp"] } } }
To remove vim-mcp:
.vimrc:" Delete or comment out this line:
" Plug 'iggredible/vim-mcp'
:PlugClean
vim-mcp command (if installed):npm unlink vim-mcp
Edit the Claude config file and remove the vim-mcp section from mcpServers
rm -f /tmp/vim-mcp-server.sock
rm -f /tmp/vim-mcp-registry.json rm -f /tmp/vim-mcp-preference.txt
vim file1.txt # First instance
vim file2.txt # Second instance (in another terminal)
list vim instances
select vim instance file1-vim-12345
From the client (claude code), you can:
You can FINALLY exit Vim! Rejoice! The exit_vim tool provides safe exit functionality with three modes:
exit vim save_and_exit)exit vim force_exit)Examples:
exit vim # Safe exit - warns about unsaved changes
exit vim save_and_exit # Save all files and exit exit vim force_exit # Exit without saving (discard changes) GET ME OUTTA HERE # You're free! Successfully exited Vim (there were no unsaved changes).
*Note: this is a joke tool because many people have a hard time exiting Vim*.
The plugin connects automatically when Vim opens. However, you can do these from inside Vim:
:VimMCPStatus - Check connection status:VimMCPConnect - Manually connect to server:VimMCPDisconnect - Disconnect from server:VimMCPReconnect - Reconnect to serverI'm still figuring out how to make this to be more useful. If you have ideas, please feel free to submit a PR!