MCPHub.nvim MCP Setup: Connect MCP Servers to MCPHub.nvim

ravitemerOpen sourcestdioSSEStreamable HTTPOfficial site

What it is

A Neovim plugin that manages, tests, and uses MCP servers from inside the editor and wires them into chat plugins like Avante and CodeCompanion.

How MCP works in MCPHub.nvim

MCPHub.nvim is an MCP client for Neovim. It manages servers from a JSON file (editable via its UI) and supports both the mcpServers and VS Code servers formats.

Config file location

~/.config/mcphub/servers.json holds an mcpServers object; you can also manage servers from the plugin's UI instead of editing it by hand.

Add your first server

A good first server is Playwright MCP — Microsoft's browser automation server. It runs locally over stdio via npx, needs no API key, and gives the agent a real browser to drive. Here is the verified MCPHub.nvim config:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Restart or reload MCPHub.nvim after saving, then confirm the server's tools show up. Swap in any other server from the directory using the same structure.

Transports & platforms

Transportsstdio, SSE, Streamable HTTP
PlatformsmacOS, Linux, Windows
LicenseOpen source
Vendorravitemer

FAQ

Does MCPHub.nvim support MCP?

Yes. MCPHub.nvim works as an MCP client over stdio, SSE, Streamable HTTP. MCPHub.nvim is an MCP client for Neovim. It manages servers from a JSON file (editable via its UI) and supports both the mcpServers and VS Code servers formats.

Where is the MCPHub.nvim MCP config?

~/.config/mcphub/servers.json holds an mcpServers object; you can also manage servers from the plugin's UI instead of editing it by hand. The verified example above shows the exact structure it expects.

Which MCP servers work with MCPHub.nvim?

Any server that speaks a transport MCPHub.nvim supports (stdio, SSE, Streamable HTTP). Browse the MCP server directory on this site to find databases, browser automation, API integrations, and dev tools, then add them using the config format above.

Keep exploring