ravitemer

mcphub.nvim

Built by ravitemer 1,748 stars

What is mcphub.nvim?

An MCP client for Neovim that seamlessly integrates MCP servers into your editing workflow with an intuitive interface for managing, testing, and using MCP servers with your favorite chat plugins.

How to use mcphub.nvim?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add mcphub.nvim using the following command: npx @modelcontextprotocol/mcphub-nvim 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/mcphub-nvim --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/mcphub-nvim

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

mcphub.nvim FAQ

Q

Is mcphub.nvim safe?

Yes, mcphub.nvim follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is mcphub.nvim up to date?

mcphub.nvim is currently active in the registry with 1,748 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for mcphub.nvim?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<div align="center" markdown="1"> <sup>Special thanks to:</sup> <br> <br> <a href="https://www.warp.dev/mcp-hub-nvim"> <img alt="Warp sponsorship" src="https://github.com/user-attachments/assets/fae9c70d-51de-43fa-af65-c82228ba67f9"> </a>

The Intelligent Terminal

Run mcphub.nvim in Warp today<br>

</div> <hr> <div align="center" markdown="1"> <h1> <img width="28px" style="display:inline;" src="https://github.com/user-attachments/assets/5cdf9d69-3de7-458b-a670-5153a97c544a"/> MCP HUB</h1>

Lua NixOS License: MIT Discord

</div>

MCP Hub is a MCP client for neovim that seamlessly integrates MCP (Model Context Protocol) servers into your editing workflow. It provides an intuitive interface for managing, testing, and using MCP servers with your favorite chat plugins.

Image

💜 Sponsors

<!-- sponsors --> <p align="center"> <a href="https://github.com/CryogenicPlanet"><img src="https://github.com/CryogenicPlanet.png" width="50px" alt="CryogenicPlanet" /></a> <a href="https://github.com/olimorris"><img src="https://github.com/olimorris.png" width="50px" alt="Oli Morris" /></a> <a href="https://github.com/supermemoryai"><img src="https://github.com/supermemoryai.png" width="50px" alt="Super Memory" /></a> <a href="https://github.com/yingmanwumen"><img src="https://github.com/yingmanwumen.png" width="50px" alt="yingmanwumen" /></a> <a href="https://github.com/yetone"><img src="https://github.com/yetone.png" width="50px" alt="Yetone" /></a> <a href="https://github.com/omarcresp"><img src="https://github.com/omarcresp.png" width="50px" alt="omarcresp" /></a> <a href="https://github.com/petermoser"><img src="https://github.com/petermoser.png" width="50px" alt="petermoser" /></a> <a href="https://github.com/watsy0007"><img src="https://github.com/watsy0007.png" width="50px" alt="watsy0007" /></a> <a href="https://github.com/kohane27"><img src="https://github.com/kohane27.png" width="50px" alt="kohane27" /></a> <a href="https://github.com/copleykj"><img src="https://github.com/copleykj.png" width="50px" alt="Kelly Copley" /></a><a href="https://github.com/nom-social"><img src="https://github.com/nom-social.png" width="50px" alt="Nom Social" /></a></p><!-- sponsors --> <p align="center"> <b>Special thanks to:</b> </p> <p align="center"> <a href="https://dub.sh/composio-mcp" target="_blank"> <img src="https://ravitemer.github.io/mcphub.nvim/sponsors/composio-logo.png" height="60px" alt="Composio.dev logo" /> </a> <a href="https://vapi.ai" target="_blank"> <img src="https://github.com/user-attachments/assets/32b4d458-b2d1-484d-b096-dfb083b44c2c" height="60px" alt="Vapi logo" /></a> </p>

✨ Features

CategoryFeatureSupportDetails
Capabilities
ToolsFull support
🔔 Tool List ChangedReal-time updates
ResourcesFull support
🔔 Resource List ChangedReal-time updates
Resource TemplatesURI templates
PromptsFull support
🔔 Prompts List ChangedReal-time updates
RootsNot supported
SamplingNot supported
MCP Server Transports
Streamable-HTTPPrimary transport protocol for remote servers
SSEFallback transport for remote servers
STDIOFor local servers
Authentication for remote servers
OAuthWith PKCE flow
HeadersFor API keys/tokens
Chat Integration
Avante.nvimTools, resources, resourceTemplates, prompts(as slash_commands)
CodeCompanion.nvimTools, resources, templates, prompts (as slash_commands), 🖼 image responses
CopilotChat.nvimTools, resources, function calling support
Marketplace
Server DiscoveryBrowse from verified MCP servers
InstallationManual and auto install with AI
Configuration
Universal ${} SyntaxEnvironment variables and command execution across all fields
VS Code CompatibilitySupport for servers key, ${env:}, ${input:}, predefined variables
JSON5 SupportComments and trailing commas via lua-json5
Workspace Management
Project-Local ConfigsAutomatic detection and merging with global config
Advanced
Smart File-watchingSmart updates with config file watching
Multi-instanceAll neovim instances stay in sync
Shutdown-delayCan run as systemd service with configure delay before stopping the hub
Lua Native MCP ServersWrite once , use everywhere. Can write tools, resources, prompts directly in lua
Dev ModeHot reload MCP servers on file changes for development

🎥 Demos

<div align="center"> <h4>MCP Hub + <a href="https://github.com/olimorris/codecompanion.nvim">CodeCompanion</a> + Github </h4> <p> <video muted controls src="https://github.com/user-attachments/assets/1a10ad50-5832-4627-bcc3-be49e7941105"></video> </p> </div> <div align="center"> <p> <h4>MCP Hub + <a href="https://github.com/yetone/avante.nvim">Avante</a> + Figma </h4> <video controls muted src="https://github.com/user-attachments/assets/e33fb5c3-7dbd-40b2-bec5-471a465c7f4d"></video> </p> </div>

🚀 Getting Started

Visit our documentation site for detailed guides and examples

👋 Get Help

:gift: Contributing

Please read the CONTRIBUTING.md guide.

🚧 TODO

  • Neovim MCP Server (kind of) with better editing, diffs, terminal integration etc (Ideas are welcome)
  • Enhanced help view with comprehensive documentation
  • MCP Resources as variables in chat plugins
  • MCP Prompts as slash commands in chat plugins
  • Enable LLM to start and stop MCP Servers dynamically
  • Support SSE transport
  • Support /slash_commands in avante
  • Support streamable-http transport
  • Support OAuth
  • Add types
  • Better Docs
  • Add tests
  • Support #variables in avante

👏 Acknowledgements

Thanks to:

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "mcphub-nvim": { "command": "npx", "args": ["mcphub-nvim"] } } }