mcphub.nvim logo

mcphub.nvim

by ravitemer

A powerful Neovim plugin that integrates MCP (Model Context Protocol) servers into your workflow. It provides an intuitive UI for browsing, installing and testing tools and resources.

View on GitHub

Last updated: N/A

What is mcphub.nvim?

mcphub.nvim is a Neovim plugin that allows users to manage and interact with MCP (Model Context Protocol) servers. It provides a centralized configuration and an intuitive UI for browsing, installing, and testing tools and resources offered by these servers, making it ideal for LLM integration.

How to use mcphub.nvim?

Install the plugin using a package manager like lazy.nvim, configure the mcp-hub by defining the necessary info, like ports and a path for MCP servers, and then use the :MCPHub command to open the UI. From the UI, you can manage servers, test tools, and access resources. You can also use the provided Lua API to programmatically interact with MCP servers.

Key features of mcphub.nvim

  • Simple single-command interface (:MCPHub)

  • Integrated Hub view for managing servers and tools

  • Marketplace Integration for browsing and installing MCP servers

  • Interactive Testing interface for real-time tool testing

  • Developer-friendly API for tool and resource access

Use cases of mcphub.nvim

  • Integrating LLMs into Neovim workflows

  • Managing and testing various MCP servers and tools

  • Programmatically accessing resources and tools offered by MCP servers

  • Extending Neovim chat plugins with MCP capabilities

FAQ from mcphub.nvim

What are the requirements for using mcphub.nvim?

Neovim >= 0.8.0, Node.js >= 18.0.0, plenary.nvim, and mcp-hub.

How do I install mcphub.nvim?

Use a Neovim package manager like lazy.nvim and follow the provided installation instructions in the README.

How do I configure MCP servers?

Create a JSON configuration file with your server details and specify its path in the plugin's setup function.

How do I start the MCPHub UI?

Use the :MCPHub command in Neovim.

How do I troubleshoot issues with mcphub.nvim?

Check the troubleshooting section in the README for common issues and solutions, including environment requirements, port issues, and configuration file errors.