Skip to content

Hummingbot MCP Server Installation Guide

This guide will walk you through installing and configuring the Hummingbot MCP Server, connecting it with AI assistants such as Claude CLI, Gemini CLI, or Codex CLI, and troubleshooting common issues.

πŸ“‹ Prerequisites

Before starting, make sure you have:

  1. Python 3.11+ installed
  2. Hummingbot API Server running (Installation Guide)
  3. Valid API credentials for your Hummingbot API server
  4. An MCP-compatible AI Assistant (e.g., Claude CLI, Gemini CLI, Codex CLI)
  5. Docker Desktop installed and running

πŸ’‘ Tip: Ensure Docker Desktop has the MCP Toolkit feature enabled.

βš™οΈ Installing via Docker MCP Catalog

Open Docker Desktop β†’ navigate to MCP Toolkit β†’ Catalog.
Search for the Hummingbot MCP Server and click βž• Install.
toolkit

Go to the Configuration tab for the installed server.
alt text

Set the following environment variables:

Variable Description Example
HUMMINGBOT_API_URL Hummingbot API endpoint http://localhost:8000
HUMMINGBOT_API_USERNAME API username admin
HUMMINGBOT_API_PASSWORD API password password

Important

If your Hummingbot API is running locally, use:
http://host.docker.internal:8000 instead of http://localhost:8000

After entering your values, click the checkbox on the right to save.
alt text

πŸ”— Connecting an MCP Client

Once the server is configured, connect it with your MCP clients:

In Docker Desktop β†’ MCP Toolkit β†’ Clients
alt text
Choose your AI client (e.g., Claude Desktop, Cursor, VS Code).
Click Connect to establish a link.

For clients not listed, you can:

  • Run MCP Gateway manually:

    docker mcp gateway run
    

  • Or add the server manually in your client configuration:

"mcp": {
  "servers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": ["mcp", "gateway", "run"],
      "type": "stdio"
    }
  }
}

πŸ› οΈ JSON MCP Integration

Gemini CLI

gemini

Gemini CLI is Google’s open-source AI agent that integrates Gemini models into your terminal.

Installation

πŸ‘‰ Gemini CLI Installation Guide

Configuration

Navigate to the config folder:

cd ~/.gemini

Edit the settings.json file

nano settings.json

Add MCP server configuration:

{
  "mcpServers": {
    "hummingbot-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "--network", "host",
        "-e", "HUMMINGBOT_API_URL",
        "-e", "HUMMINGBOT_USERNAME",
        "-e", "HUMMINGBOT_PASSWORD",
        "hummingbot/hummingbot-mcp:latest"
      ],
      "env": {
        "HUMMINGBOT_API_URL": "http://localhost:8000",
        "HUMMINGBOT_USERNAME": "admin",
        "HUMMINGBOT_PASSWORD": "admin"
      }
    }
  }
}

Open Gemini and verify the connection by running:

/mcp list

βœ… You should see hummingbot-mcp in the output. gemini cli

Codex CLI

codex

Codex CLI is OpenAI’s local coding agent designed for developer workflows.

Installation

πŸ‘‰ Codex CLI Installation Guide

Note

The MCP instructions below will also work with the IDE version of Codex for VSCode / Cursor etc. If you want Codex in your code editor see the - IDE installation guide

Configuration

Navigate to the config folder:

cd ~/.codex

Edit config.toml:

nano config.toml

Add the MCP server configuration:

[mcp_servers.hummingbot-mcp]
command = "docker"
args = [
  "run", "-i", "--rm",
  "--network", "host",
  "-e", "HUMMINGBOT_API_URL",
  "-e", "HUMMINGBOT_USERNAME",
  "-e", "HUMMINGBOT_PASSWORD",
  "hummingbot/hummingbot-mcp:latest"
]

[mcp_servers.hummingbot-mcp.env]
HUMMINGBOT_API_URL = "http://localhost:8000"
HUMMINGBOT_USERNAME = "admin"
HUMMINGBOT_PASSWORD = "admin"

Run Codex and and verify the connection by running:

/mcp

βœ… Codex should now detect and connect to the Hummingbot MCP server. codex

πŸ€– Testing with AI Assistant

Once configured, try commands like:

  • "Show me my portfolio balances"

  • "List all active trading bots"

  • "Get the current BTC-USDT price on Binance"

πŸ› Troubleshooting

Connection Issues

  • Ensure the Hummingbot API server is running.
  • Double-check the HUMMINGBOT_API_URL.
  • If running Hummingbot in Docker, use host.docker.internal instead of localhost on Mac/Windows
  • Check that --network host is supported on your Docker setup
  • Verify the port number matches your Hummingbot API configuration

Authentication Errors

  • Verify API credentials (username/password).
  • Check your .env file if applicable.
  • Make sure credentials are saved in Docker Desktop.

πŸš€ Next Steps

After installation:

  1. Explore MCP Tools
  2. Review Example Workflows
  3. Check Security Guidelines

πŸ“’ Need help? Join our Discord community or visit the GitHub repository for the latest updates.