
Hummingbot
io.github.hummingbotPublished by GitHub account hummingbotv0.1.0Updated Oct 24, 2026
MCP server exposing Hummingbot API for automated multi-exchange trading
Overview
Connects an assistant to a Hummingbot API server so it can manage crypto trading accounts, orders, positions, market data and bots across exchanges.
- What you can do
- Manage the API connection: view or update the Hummingbot API server URL and credentials, then reconnect.
- Handle accounts and connectors, including setup of exchange connections.
- Check portfolio balances and distribution.
- Place and manage orders, and manage positions.
- Read market data such as prices, order books, candles and funding rates.
- Deploy and manage trading bots and configure their controllers.
- When to use it
- Useful when you already run a Hummingbot API server and want an assistant to inspect portfolios, market data and bots, or to place and manage orders and positions across multiple exchanges from a chat session.
- Requirements
- A local runtime: Python 3.11+ with uv, or the published Docker image. A running Hummingbot API server reachable at HUMMINGBOT_API_URL, plus valid HUMMINGBOT_USERNAME and HUMMINGBOT_PASSWORD. Optional tuning variables cover timeout, retries, retry delay and log level. On Docker for Mac/Windows the API URL must use host.docker.internal.
Installation
In SourceWeft
- Open Hummingbot in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
MCP Hummingbot Server
An MCP (Model Context Protocol) server that enables Claude and Gemini CLI to interact with Hummingbot for automated cryptocurrency trading across multiple exchanges.
Installation & Configuration
Option 1: Using uv (Recommended for Development)
-
Install uv (if not already installed):
-
Clone and install dependencies:
-
Create a .env file:
-
Edit the .env file with your Hummingbot API credentials:
-
Configure in Claude Code or Gemini CLI:
Note: Make sure to replace
/path/to/mcpwith the actual path to your MCP directory.
Option 2: Using Docker (Recommended for Production)
-
Create a .env file:
-
Edit the .env file with your Hummingbot API credentials:
Important: When running the MCP server in Docker and connecting to a Hummingbot API on your host:
- Linux: Use
--network host(see below) to allow the container to accesslocalhost:8000 - Mac/Windows: Change
HUMMINGBOT_API_URLtohttp://host.docker.internal:8000
- Linux: Use
-
Pull the Docker image:
-
Configure in Claude Code or Gemini CLI:
For Linux (using --network host):
For Mac/Windows:
(Remember to set
HUMMINGBOT_API_URL=http://host.docker.internal:8000in your.envfile)Note: Make sure to replace
/path/to/mcpwith the actual path to your MCP directory.
Cloud Deployment with Docker Compose
For cloud deployment where both Hummingbot API and MCP server run on the same server:
-
Create a .env file:
-
Edit the .env file with your Hummingbot API credentials:
-
Create a docker-compose.yml:
-
Deploy:
-
Configure in Claude Code or Gemini CLI to connect to existing container:
Note: Replace
hummingbot-mcpwith your actual container name. You can find the container name by running:
Server Configuration
On first run, the server creates a default configuration from environment variables (or uses http://localhost:8000 with default credentials). Configuration is stored in ~/.hummingbot_mcp/server.yml.
Using the configure_server Tool
Only the provided parameters are changed; omitted ones keep their current values. The client automatically reconnects after any update.
Environment Variables
The following environment variables can be set in your .env file for the MCP server:
Note: After initial setup, use the configure_server tool to update the server connection. Environment variables are only used to create the initial default configuration.
Requirements
- Python 3.11+
- Running Hummingbot API server
- Valid Hummingbot API credentials
Available Tools
The MCP server provides tools for:
Server Management
- configure_server: View or update the active Hummingbot API server connection
- No parameters: show current server config
- Any parameters: update and reconnect
- Configuration persists in
~/.hummingbot_mcp/server.yml
Trading & Account Management
- Account management and connector setup
- Portfolio balances and distribution
- Order placement and management
- Position management
- Market data (prices, order books, candles)
- Funding rates
- Bot deployment and management
- Controller configuration
Development
To run the server in development mode:
To run tests:
Troubleshooting
The MCP server now provides comprehensive error messages to help diagnose connection and authentication issues:
Connection Errors
If you see error messages like:
❌ Cannot reach Hummingbot API at <url>- The API server is not running or not accessible❌ Authentication failed when connecting to Hummingbot API- Incorrect username or password❌ Failed to connect to Hummingbot API- Generic connection failure
The error messages will include:
- The exact URL being used
- Your configured username (password is masked)
- Specific suggestions on how to fix the issue
- References to tools like
configure_server
Common Solutions
-
API Not Running:
- Ensure your Hummingbot API server is running
- Verify the API is accessible at the configured URL
-
Wrong Credentials:
- Use
configure_servertool to update server credentials - Or check your
.envfile configuration
- Use
-
Wrong URL:
- Use
configure_servertool to update the server URL - For Docker on Mac/Windows, use
host.docker.internalinstead oflocalhost
- Use
-
Docker Network Issues:
- On Linux, use
--network hostin your Docker configuration - On Mac/Windows, use
host.docker.internal:8000as the API URL
- On Linux, use
Error Prevention
The MCP server will:
- Not retry on authentication failures (401 errors) - it will immediately tell you the credentials are wrong
- Retry on connection failures with helpful messages about what might be wrong
- Provide context about whether you're running in Docker and suggest appropriate fixes
- Guide you to the right tools (
configure_server) to fix issues
Source: README.md at commit 836f935
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts