MCP server exposing Hummingbot API for automated multi-exchange trading
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hummingbot MCP.
configure_serverView or update the active Hummingbot API server connection
An MCP (Model Context Protocol) server that enables Claude and Gemini CLI to interact with Hummingbot for automated cryptocurrency trading across multiple exchanges.
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/mcp with the actual path to your MCP directory.
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:
--network host (see below) to allow the container to access localhost:8000HUMMINGBOT_API_URL to http://host.docker.internal:8000Pull 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:8000 in your .env file)
Note: Make sure to replace /path/to/mcp with the actual path to your MCP directory.
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-mcp with your actual container name. You can find the container name by running:
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.
Only the provided parameters are changed; omitted ones keep their current values. The client automatically reconnects after any update.
The following environment variables can be set in your .env file for the MCP server:
| Variable | Default | Description |
|---|---|---|
HUMMINGBOT_API_URL | http://localhost:8000 | Initial default API server URL (used only on first run) |
HUMMINGBOT_USERNAME | admin | Initial username (used only on first run) |
HUMMINGBOT_PASSWORD | admin | Initial password (used only on first run) |
HUMMINGBOT_TIMEOUT | 30.0 | Connection timeout in seconds |
HUMMINGBOT_MAX_RETRIES | 3 | Maximum number of retry attempts |
HUMMINGBOT_RETRY_DELAY | 2.0 | Delay between retries in seconds |
HUMMINGBOT_LOG_LEVEL | INFO | Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
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.
The MCP server provides tools for:
~/.hummingbot_mcp/server.ymlTo run the server in development mode:
To run tests:
The MCP server now provides comprehensive error messages to help diagnose connection and authentication issues:
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 failureThe error messages will include:
configure_serverFactual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-298)<a href="https://allmcps.com/mcp/mcp-298"><img src="https://allmcps.com/api/badge/mcp-298?style=directory" alt="Hummingbot MCP on AllMCPs" /></a>