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:
- Python 3.11+ installed
- Hummingbot API Server running (Installation Guide)
- Valid API credentials for your Hummingbot API server
- An MCP-compatible AI Assistant (e.g., Claude CLI, Gemini CLI, Codex CLI)
- 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.
Go to the Configuration tab for the installed server.
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.
π Connecting an MCP Client¶
Once the server is configured, connect it with your MCP clients:
In Docker Desktop β MCP Toolkit β Clients
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:
-
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 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:
Edit the settings.json
file
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:
β
You should see hummingbot-mcp
in the output.
Codex CLI¶
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:
Edit 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:
β
Codex should now detect and connect to the Hummingbot MCP server.
π€ 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 oflocalhost
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:
- Explore MCP Tools
- Review Example Workflows
- Check Security Guidelines
π’ Need help? Join our Discord community or visit the GitHub repository for the latest updates.