NeoVimMCP
Enables AI clients to interact with Neovim buffers via MCP tools, providing buffer and cursor context.
README
NeoVimMCP
MCP server that receives Neovim buffer updates and exposes editor context as MCP tools.
<img width="1405" height="538" alt="image" src="https://github.com/user-attachments/assets/c98964e7-4c8a-4903-a7d0-b669fdbf1e61" />
<img width="1424" height="550" alt="image" src="https://github.com/user-attachments/assets/3b87054e-4c60-4f41-9fef-f79064aba23d" />
Features
- MCP server over stdio for AI clients
- HTTP bridge endpoint Neovim can POST to
- In-memory buffer store with active buffer tracking
- Tools for active buffer, list/lookup, cursor context, publish, and clear
- Bridge written in C++ for mutliple nvim instances
Start server
npm install
npm start
Optional env var:
NVIM_BUFFER_PORT(default4389)
MCP tools exposed
nvim_get_active_buffernvim_list_buffersnvim_get_buffernvim_get_cursor_contextnvim_publish_buffernvim_clear_buffer
Connect your MCP client
Example mcpServers entry:
{
"mcpServers": {
"nvim": {
"command": "node",
"args": ["/absolute/path/to/nvimMCP/server.js"],
"env": {
"NVIM_SOCKET_PATH": "/tmp/nvim.sock (Neovim socket)"
}
}
}
}
Connect Neovim
Drop nvim/nvim-mcp.lua into your config (or source it directly), then call setup:
local nvim_mcp = dofile("/absolute/path/to/nvimMCP/nvim/nvim-mcp.lua")
nvim_mcp.setup({
endpoint = "http://127.0.0.1:4389/buffer/update",
clear_endpoint = "http://127.0.0.1:4389/buffer/clear",
debounce_ms = 150,
})
Available user commands:
:NvimMcpPublish(force publish current buffer):NvimMcpClear(clear current buffer from server)
TODO: Create a mutliplex using C++ to handle multiple instances that can share across the network.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.