
Freqtrade-MCP
Control a Freqtrade crypto trading bot through its REST API from any MCP-compatible AI agent.
Add to your client
Copy the config for your MCP client and paste it into its config file.
pip install freqtrade-client mcp[cli]Paste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"freqtrade-mcp": {
"command": "uv",
"args": [
"--directory",
"/your/path/to/freqtrade-mcp",
"run",
"__main__.py"
],
"env": {
"FREQTRADE_API_URL": "http://127.0.0.1:8080",
"FREQTRADE_USERNAME": "your_username",
"FREQTRADE_PASSWORD": "your_password"
}
}
}
}Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf
Before you start
- Python 3.13+
- A running Freqtrade instance with the REST API enabled (api_server.enabled = true)
- Git (for cloning the repository)
- Freqtrade API URL, username, and password
About Freqtrade-MCP
An MCP server that wraps the Freqtrade cryptocurrency trading bot's REST API as MCP tools, allowing AI agents to read market and account data and execute trading operations against a running Freqtrade instance. It is launched via uv over stdio and authenticates to Freqtrade with an API URL plus username/password supplied through environment variables.
Tools & capabilities (17)
fetch_market_dataFetch OHLCV data for a pair. Parameters: pair (str), timeframe (str).
fetch_bot_statusGet open trade status. No parameters.
fetch_profitGet profit summary. No parameters.
fetch_balanceGet account balance. No parameters.
fetch_performanceGet performance metrics. No parameters.
fetch_whitelistGet whitelist of pairs. No parameters.
fetch_blacklistGet blacklist of pairs. No parameters.
fetch_tradesGet trade history. No parameters.
fetch_configGet bot configuration. No parameters.
fetch_locksGet trade locks. No parameters.
place_tradePlace a buy/sell trade. Parameters: pair (str), side (str), stake_amount (float).
start_botStart the bot. No parameters.
stop_botStop the bot. No parameters.
reload_configReload bot configuration. No parameters.
add_blacklistAdd a pair to the blacklist. Parameters: pair (str).
delete_blacklistRemove a pair from the blacklist. Parameters: pair (str).
delete_lockDelete a trade lock. Parameters: lock_id (int).
What this server can do
Freqtrade-MCP provides tools for these capabilities — tap one to see every MCP server that does the same:
When to use it
- Ask an AI agent for the latest OHLCV/candlestick data for a trading pair and timeframe
- Check open trade status, profit summary, account balance, and performance metrics conversationally
- Place buy/sell trades and start, stop, or reload the Freqtrade bot via natural-language prompts
- Manage the bot's blacklist and clear trade locks through an agent
Security notes
The server connects to a running Freqtrade instance using FREQTRADE_API_URL, FREQTRADE_USERNAME, and FREQTRADE_PASSWORD environment variables. These credentials control a live trading bot — the exposed tools can place trades and start/stop the bot, so the server should only be granted to trusted agents. The README's sample Freqtrade config binds the REST API to 127.0.0.1; do not expose it publicly.
Freqtrade-MCP FAQ
What do I need running before using this server?
A Freqtrade instance with its REST API enabled. Add an api_server section to your Freqtrade config and set api_server.enabled to true (the README shows a sample with listen_port 8080 bound to 127.0.0.1).
How does the server authenticate to Freqtrade?
Through the FREQTRADE_API_URL, FREQTRADE_USERNAME, and FREQTRADE_PASSWORD environment variables set in the MCP client config, which correspond to your Freqtrade REST API URL and credentials.
How is the server launched?
Via uv over stdio: `uv --directory /your/path/to/freqtrade-mcp run __main__.py`, after cloning the repo and installing the freqtrade-client and mcp[cli] dependencies.
Can it actually execute trades?
Yes. In addition to read-only tools, it exposes place_trade plus start_bot, stop_bot, and reload_config, so it can take live trading actions on the connected Freqtrade bot.
Alternatives to Freqtrade-MCP
Compare all alternatives →Official Stripe server for payments, customers, subscriptions, invoices, and billing via natural language.
Coinbase's AgentKit MCP extension for onchain actions: transfers, swaps, and contract calls.
Alpaca's official trading server for stocks, ETFs, options, and crypto in plain English.