freqtrade-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@freqtrade-mcp-serverShow my open trades with current profit/loss"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Freqtrade MCP Server ๐ค๐
A Model Context Protocol (MCP) server for cryptocurrency trading via Freqtrade โ manage trades, check balances, configure strategies, backtest, and control the bot lifecycle from any MCP-compatible AI agent.
Built for AI agents. Works with Hermes Agent, Claude Code, Cursor, Windsurf, and any MCP-compatible client.
โจ Features (43 Tools)
๐ง System & Health (5 Tools)
Tool | Description |
| Check if the freqtrade API server is reachable |
| Get the running bot version string |
| Detailed bot health (uptime, loop time, process status) |
| Fetch recent bot log messages (configurable limit) |
| System resource usage (CPU, RAM, uptime) |
๐ฎ Bot Lifecycle (3 Tools)
Tool | Description |
| Start the trading bot (if currently stopped) |
| Stop the trading bot gracefully |
| Temporarily prevent new trades (reload config to re-enable) |
๐ Trade Information (6 Tools)
Tool | Description |
| List all open trades with current profit/loss |
| Full details of a specific trade by ID |
| Historical closed trades with pagination |
| Open trade count vs maximum allowed |
| Permanently delete a trade from the database |
| Cancel an open order for a specific trade |
๐ฐ Account & Performance (10 Tools)
Tool | Description |
| Full account balance across all currencies |
| Profit/loss summary (total, factor, percentage) |
| Daily P&L breakdown for last N days |
| Weekly P&L breakdown for last N weeks |
| Monthly P&L breakdown for last N months |
| Per-pair trade performance (best/worst) |
| Stats report (exit reasons, durations) |
| Analyze trade entries by buy tag |
| Analyze trade exits by exit reason |
| Combined entry tag + exit reason analysis |
๐ฏ Trading Actions (2 Tools)
Tool | Description |
| Force-enter a trade (long/short, with leverage & tags) |
| Force-exit (sell) an open trade (partial exit supported) |
๐ Pairs & Whitelist/Blacklist (4 Tools)
Tool | Description |
| Active trading pair whitelist |
| Currently blacklisted pairs |
| Add one or more pairs to blacklist |
| List available pairlist handler plugins |
| Pairs available for backtesting (filterable) |
๐ Pair Locks (3 Tools)
Tool | Description |
| All active pair locks |
| Lock a pair (with expiration, side, reason) |
| Remove a pair lock by ID |
๐ง Strategies & Market Data (4 Tools)
Tool | Description |
| Available strategy classes |
| Strategy information (code, params, timeframe) |
| Plot configuration from active strategy |
| Live OHLCV candle data (any pair/timeframe) |
| Historic analyzed dataframe for a pair + strategy |
โ๏ธ Configuration (2 Tools)
Tool | Description |
| Current (sanitized) bot configuration |
| Reload config from disk (no restart needed) |
๐๏ธ Custom Data (2 Tools)
Tool | Description |
| Custom data stored for a specific trade |
| Custom data across all open trades |
Related MCP server: freqtrade-mcp
๐ Quick Start
1. Install
pip install git+https://github.com/ceeyang-ai/freqtrade-mcp-server.git2. Start Freqtrade (dry-run for testing)
Create a minimal config (config.json):
{
"max_open_trades": 3,
"stake_currency": "USDT",
"stake_amount": 50,
"dry_run": true,
"dry_run_wallet": 1000,
"timeframe": "5m",
"exchange": {
"name": "binance",
"pair_whitelist": ["BTC/USDT", "ETH/USDT"]
},
"api_server": {
"enabled": true,
"listen_port": 8080,
"username": "freqtrader",
"password": "your_password",
"jwt_secret_key": "a-very-long-random-string-at-least-32-chars"
}
}freqtrade trade --strategy SampleStrategy --config config.json3. Run the MCP Server
export FREQTRADE_URL=http://127.0.0.1:8080
export FREQTRADE_USERNAME=freqtrader
export FREQTRADE_PASSWORD=your_password
freqtrade-mcp-serverConfiguration via Environment Variables
Variable | Required | Default | Description |
| No |
| Freqtrade API server URL |
| No |
| API username from |
| No |
| API password from |
๐ Usage with AI Agents
Hermes Agent
Add to ~/.hermes/config.yaml:
mcp_servers:
freqtrade:
command: "freqtrade-mcp-server"
env:
FREQTRADE_URL: "http://127.0.0.1:8080"
FREQTRADE_USERNAME: "freqtrader"
FREQTRADE_PASSWORD: "your_password"Then ask your agent: "What's my current crypto portfolio balance?", "Force-enter BTC/USDT long", "Run a backtest on BTC/USDT"
Claude Code / Cursor
{
"mcpServers": {
"freqtrade": {
"command": "freqtrade-mcp-server",
"env": {
"FREQTRADE_URL": "http://127.0.0.1:8080",
"FREQTRADE_USERNAME": "freqtrader",
"FREQTRADE_PASSWORD": "your_password"
}
}
}
}๐ Requirements
Python 3.10+
Freqtrade instance running with API server enabled (
api_server.enabled: true)freqtrade-client >= 2026.5(installed automatically)mcp >= 1.0(installed automatically)
๐งช Development
git clone https://github.com/ceeyang-ai/freqtrade-mcp-server.git
cd freqtrade-mcp-server
pip install -e .
# Run integration tests (requires running Freqtrade instance)
python test_integration.py๐ค Related Projects
doc-mcp-server โ Document processing (PDF, text conversion)
viz-mcp-server โ Data visualization (matplotlib/seaborn charts)
webx-mcp-server โ Web page extraction and conversion
๐ License
MIT โ free for personal and commercial use.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ceeyang-ai/freqtrade-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server