{"type":"mcp_server","name":"mcphub.nvim","description":"Mcphub.nvim is a Neovim plugin that integrates MCP servers into your workflow, offering a centralized configuration, intuitive UI, and programmatic API access for managing tools and resources, especially for LLM integration.","category":"Developer Tools","language":"Lua","stars":1780,"forks":12,"owner":"ravitemer","github_url":"https://github.com/ravitemer/mcphub.nvim","homepage":null,"setup":"## Setup\nUsing [lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{\n    \"ravitemer/mcphub.nvim\",\n    dependencies = {\n        \"nvim-lua/plenary.nvim\",  -- Required for Job and HTTP requests\n    },\n    -- cmd = \"MCPHub\", -- lazily start the hub when `MCPHub` is called\n    build = \"npm install -g mcp-hub@latest\", -- Installs required mcp-hub npm module\n    config = function()\n        require(\"mcphub\").setup({\n            -- Required options\n            port = 3000,  -- Port for MCP Hub server\n            config = vim.fn.expand(\"~/mcpservers.json\"),  -- Absolute path to config file\n\n            -- Optional options\n            on_ready = function(hub)\n                -- Called when hub is ready\n            end,\n            on_error = function(err)\n                -- Called on errors\n            end,\n            log = {\n                level = vim.log.levels.WARN,\n                to_file = false,\n                file_path = nil,\n                prefix = \"MCPHub\"\n            },\n        })\n    end\n}\n```\n\nExample configuration file:\n\n```json\n{\n  \"mcpServers\": {\n    \"fetch\": {\n      \"command\": \"uvx\",\n      \"args\": [\"mcp-server-fetch\"]\n    },\n    \"todoist\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@abhiz123/todoist-mcp-server\"],\n      \"disabled\": true,\n      \"env\": {\n        \"TODOIST_API_TOKEN\": \"your-api-token-here\"\n      }\n    }\n  }\n}\n```\n\n### Requirements\n\n- Neovim >= 0.8.0\n- Node.js >= 18.0.0\n- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim)\n- [mcp-hub](https://github.com/ravitemer/mcp-hub) (automatically installed via build command)","tools":"## Available Tools\n\n1.  Simple single-command interface (`:MCPHub`)\n2.  Integrated Hub view for managing servers and tools (Dynamically enable/disable servers and tools to optimize token usage, Start/stop servers with persistent state, Enable/disable specific tools per server, Configure custom instructions per server, State persists across restarts)\n3.  Marketplace Integration (Browse available MCP servers with details and stats, Sort, filter by category, and search servers, View server documentation and installation guides, One-click installation via Avante/CodeCompanion)\n4.  Interactive Testing (Real-time tool testing interface, Resource browsing and access, Built-in documentation and help)\n5.  Performance and Reliability (Parallel startup for improved performance, Automatic server lifecycle management, Smart shutdown handling with configurable delay)\n6.  Developer-friendly (Both sync and async operations supported, Clean client registration/cleanup, Comprehensive API for tool and resource access)","faq":null,"created_at":"2025-02-19T06:55:16+00:00","updated_at":"2025-03-28T20:05:23+00:00","source_url":"https://model-context-protocol.com/servers/neovim-mcp-server-management-plugin","related_articles":[]}