3commas-mcp
A Model Context Protocol (MCP) server that integrates AI assistants with the 3Commas cryptocurrency trading platform API, enabling management of DCA bots and trading strategies through natural conversation.
README
3Commas MCP Server
A Model Context Protocol (MCP) server that integrates AI assistants with the 3Commas cryptocurrency trading platform API. Manage your DCA bots and trading strategies through natural conversation with any MCP-supporting platform including Claude, Claude Code CLI, Claude Desktop, Cursor, and Copilot Studio.
Available Tools
Account Management ✅
health_check()- Test API connectivity and authentication statusget_account_info(account_id)- Get account details, balance, profit metrics (summary or specific account)get_connected_exchanges_and_wallets()- View all connected exchanges with permissions and statusget_balance_history_data(date_from, account_id)- Historical balance changes with profit tracking
Market Data ✅
get_supported_markets()- List supported trading markets and exchangesget_all_market_pairs(market_code)- Get available trading pairs for any exchangeget_currency_rates_and_limits(market_code, pair)- Current rates, limits, and precision for currency pairs
DCA Bot Management ✅
get_dca_bot_list()- Get all DCA bots with status, configuration, and performance overviewget_dca_bot_details(bot_id)- Comprehensive bot configuration, deals, and performance dataget_available_strategy_list()- Available DCA bot trading strategies with configuration optionsget_dca_bot_profit_data(bot_id)- Daily profit analytics with BTC/USD amounts and timestampsget_blacklist_of_pairs()- Get blacklisted trading pairs with restrictions and configurations
Implementation Status: 10 of 29 planned GET APIs completed (34.5%) - Read-only operations only for trading safety
All tools include response_filter parameter ("display" for essential data, "full" for complete response).
See docs/tools/ for detailed function documentation and docs/API_REFERENCES.md for complete API status.
Installation & Setup
Prerequisites
- Python 3.12+
uvpackage manager (recommended) orpip- 3Commas account with API access
Install
git clone https://github.com/your-username/3commas-mcp.git
cd 3commas-mcp
# Setup environment
uv venv && source .venv/bin/activate
uv sync && uv pip install -e .
Configure for Claude Code CLI
claude mcp add -e 3COMMAS_API_KEY=your_api_key -e 3COMMAS_SECRET_KEY=your_secret_key -e 3COMMAS_ENABLE_DESTRUCTIVE=false -s user threecommas-mcp -- "threecommas-mcp"
Configure for Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"threecommas-mcp": {
"command": "/path/to/uv",
"args": ["--directory", "/path/to/3commas-mcp", "run", "threecommas-mcp"],
"env": {
"3COMMAS_API_KEY": "your_api_key",
"3COMMAS_SECRET_KEY": "your_secret_key",
"3COMMAS_ENABLE_DESTRUCTIVE": "false"
}
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage Examples
"Show me all my connected exchanges and their status"
"List all my DCA bots and their current status"
"What trading pairs are available on Binance?"
See docs/conversations/ for comprehensive usage examples and scenarios.
Architecture & Security
Read-only operations only - Current implementation has zero trading risk with secure HMAC-SHA256 authentication and comprehensive error handling.
See docs/DEVELOPMENT.md for technical architecture and security details.
Development
# Run quality checks
uv run -m black . && uv run -m ruff format . && uv run -m ruff check . && uv run -m mypy .
See docs/CONTRIBUTING.md for contribution guidelines and docs/DEVELOPMENT.md for setup details.
Documentation
- API References - Complete 3Commas API mapping with implementation status
- Tool Documentation - Detailed function references and parameters
- Conversation Examples - Real-world usage scenarios
- Development Guide - Technical architecture and setup
- Contributing - Contribution guidelines and standards
- Patterns - Implementation patterns and compliance
License & Disclaimer
MIT License - see LICENSE file for details.
Trading Disclaimer: This software is for educational purposes. Cryptocurrency trading involves substantial risk. Always review configurations carefully and never trade more than you can afford to lose. Authors are not responsible for trading losses.
Support
- Issues: GitHub Issues
- 3Commas API: Official Documentation
Built with FastMCP and comprehensive safety-first design patterns.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。