3commas-mcp

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.

Category
Visit Server

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.

Version Python Implementation Type Checking Code Quality


Available Tools

Account Management ✅

  • health_check() - Test API connectivity and authentication status
  • get_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 status
  • get_balance_history_data(date_from, account_id) - Historical balance changes with profit tracking

Market Data ✅

  • get_supported_markets() - List supported trading markets and exchanges
  • get_all_market_pairs(market_code) - Get available trading pairs for any exchange
  • get_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 overview
  • get_dca_bot_details(bot_id) - Comprehensive bot configuration, deals, and performance data
  • get_available_strategy_list() - Available DCA bot trading strategies with configuration options
  • get_dca_bot_profit_data(bot_id) - Daily profit analytics with BTC/USD amounts and timestamps
  • get_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+
  • uv package manager (recommended) or pip
  • 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


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

Built with FastMCP and comprehensive safety-first design patterns.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured