beginner⏱️ 14-24 minutes📅 Updated June 2026

Step-by-step guide to integrate AgentMode MCP server with mcphub.nvim. Includes database_query and github_operations.

AgentMode + mcphub.nvim: Complete MCP Integration

AgentMode is a MCP server that Connect to dozens of databases, data warehouses, Github & more, from a single MCP server. Run the Docker image locally, in the cloud, or on-premise..

When integrated with mcphub.nvim, you can:

  • Execute SQL queries across connected databases
  • Interact with GitHub repositories and issues
  • Connect to data warehouses like Snowflake, BigQuery

This guide provides step-by-step instructions to set up AgentMode in mcphub.nvim, including configuration, examples, and troubleshooting.

What You'll Achieve

After completing this setup:

  • AgentMode will be fully integrated and operational
  • You can use AgentMode tools directly in mcphub.nvim
  • All AgentMode capabilities will be available for your workflows
  • Access to 3 different tools

Prerequisites

Before starting, ensure you have:

  • API key from AgentMode dashboard
  • Workspace identifier
  • mcphub.nvim installed and configured
  • Compatible operating system (Neovim)

Installation

Step 1: Install AgentMode

Configuration

Step 2: Configure mcphub.nvim

  1. Locate your configuration file:

    • Windows: %LOCALAPPDATA%\mcphub\servers.json
    • macOS: ~/.config/mcphub/servers.json
    • Linux: ~/.config/mcphub/servers.json
  2. Add server configuration:

{
  "mcpServers": {
    "agentmode": {
      "command": "agentmode",
      "args": [],
      "env": {
        "AGENTMODE_API_KEY": "am_1234567890abcdef",
        "AGENTMODE_WORKSPACE": "my-team-workspace"
      }
    }
  }
}

  1. Restart mcphub.nvim

Completely quit and restart mcphub.nvim to load the new configuration.

Examples

Once configured, you can use AgentMode in mcphub.nvim:

Multi-Database Analytics

undefined

Ask mcphub.nvim: "Show me user engagement metrics from both databases"

Expected Result: undefined

GitHub Issue Management

undefined

Ask mcphub.nvim: "Create issues for users with failed payments"

Expected Result: undefined

Data Pipeline Monitoring

undefined

Ask mcphub.nvim: "Check status of yesterday's data pipeline runs"

Expected Result: undefined

Testing Your Setup

  1. Launch mcphub.nvim
  2. Verify AgentMode is available in the tools list
  3. Test basic AgentMode functionality

Troubleshooting

Common Issues

Servers not showing in :McpHub

Symptoms: Empty server list, Configuration not loaded

Cause: Incorrect configuration file path or JSON syntax error

Solution:

  • Verify servers.json exists in ~/.config/mcphub/ or .vscode/mcp.json in project root
  • Check JSON syntax for errors (trailing commas, missing quotes)
  • Run :checkhealth mcphub to diagnose issues

Tool execution fails

Symptoms: Error message when AI tries to use tool, No response

Cause: Server command failed or environment variables missing

Solution:

  • Check server logs in :McpHub
  • Verify "command" path is correct and executable
  • Ensure required environment variables are set in the config

Chat plugin not recognizing tools

Symptoms: AI says it cannot perform the action, Tools not listed in chat

Cause: Integration issue with the specific chat plugin

Solution:

  • Ensure you are using a supported version of the chat plugin
  • Check mcphub.nvim documentation for plugin-specific setup instructions
  • Restart Neovim to reload the integration

AgentMode not appearing in mcphub.nvim

Symptoms: Server not listed, Tools not available

Cause: Configuration or installation issue

Solution:

  • Verify configuration syntax
  • Check AgentMode installation
  • Restart mcphub.nvim
  • Check logs for error messages

Next Steps

Now that AgentMode is integrated with mcphub.nvim:

  • Explore all AgentMode capabilities through mcphub.nvim
  • Check out other MCP servers that work with mcphub.nvim
  • Join the MCP community for tips and support
  • Consider contributing to AgentMode development

Need Help?

Related Resources

More Integrations

Explore other MCP servers that work with mcphub.nvim

Need Help?

Join the MCP community for support and discussions

AgentMode + mcphub.nvim: MCP Setup Guide (2026)