The MCP Hummingbot 服务器 MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.
Configuration
Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.
一个模型上下文协议(MCP)服务器,提供股票市场数据的访问,包括财务报表(收入表、资产负债表、现金流量表)、股票价格和市场新闻。需要通过环境变量 FINANCIAL_DATASETS_API_KEY 设置 API 密钥,配置在 .env 文件中。
1.5Kstars0forks
stock-api
zhangxiangliang
Community
TypeScript stock market data tool supporting A-share, Hong Kong, and US stock quotes. Supports Node.js, browser, CLI, and MCP usage with zero runtime dependencies. No external data files required.
1.4Kstars0forks
a-share-mcp
24mlight
Community
A MCP 服务器,专注于A股市场,提供股票基础信息、历史K线数据、财务指标、宏观经济数据等。采用Baostock作为数据源,无需付费账户。
628stars0forks
Augur
BruceLanLan
Community
Augur is a local research memory system designed to help you remember when you knew what, what changed, and who disagreed on what facts. It is not an AI stock recommendation tool but a multi-agent investment analysis system with 18 investor persona agents, consensus mechanism, and multi-platform deployment. Requires Python 3.9+ (3.10+ for MCP features). External data files are stored locally in ~/.augur by default, configurable via the AUGUR_DATA_DIR environment variable.
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):
curl -LsSf https://astral.sh/uv/install.sh | sh
Clone and install dependencies:
git clone https://github.com/hummingbot/mcp
cd mcp
uv sync
Create a .env file:
cp .env.example .env
Edit the .env file with your Hummingbot API credentials:
Note: Replace hummingbot-mcp with your actual container name. You can find the container name by running:
docker ps
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
# Show the current server configuration
configure_server()
# Update the host and port
configure_server(host="192.168.1.100", port=8001)
# Update credentials
configure_server(username="admin", password="secure_password")
# Update everything at once
configure_server(
name="production",
host="prod-server",
port=8000,
username="admin",
password="secure_password"
)
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:
Variable
Default
Description
HUMMINGBOT_API_URL
http://localhost:8000
Initial default API server URL (used only on first run)
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:
uv run main.py
To run tests:
uv run pytest
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_server tool to update server credentials
Or check your .env file configuration
Wrong URL:
Use configure_server tool to update the server URL
For Docker on Mac/Windows, use host.docker.internal instead of localhost
Docker Network Issues:
On Linux, use --network host in your Docker configuration
On Mac/Windows, use host.docker.internal:8000 as the API URL
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