home / mcp / freqtrade mcp server
An MCP server that integrates with the Freqtrade cryptocurrency trading bot.
Configuration
View docs{
"mcpServers": {
"kukapay-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_PASSWORD": "your_password",
"FREQTRADE_USERNAME": "your_username"
}
}
}
}You install and run the Freqtrade-MCP server to expose Freqtrade REST API functions as MCP tools. This lets you interact with your Freqtrade instance through MCP clients, enabling actions like fetching market data, checking bot status, and placing trades in an automated, AI-assisted workflow.
Start by running the MCP server so your MCP client can connect and issue commands against your Freqtrade instance. The server exposes a set of tools that map directly to Freqtrade REST API endpoints. Use the MCP client to authenticate and then perform actions such as fetching OHLCV data, checking bot status, retrieving profit or performance metrics, managing blacklists/whitelists, and placing trades. Each tool accepts parameters as described in the tool list, and you can combine multiple tool calls to build automated trading workflows.
The server provides a suite of tools that mirror Freqtrade REST API capabilities. Each tool corresponds to a specific API operation, such as retrieving market data or managing trades. Use these tools to query data, control the bot, or modify trading rules from within your MCP client.
Fetch OHLCV data for a trading pair given a pair and a timeframe.
Query the current open trade status and bot activity.
Retrieve the profit summary for the bot.
Get the account balance available in the Freqtrade wallet.
Obtain bot performance metrics and statistics.
List trading pairs that are whitelisted for trading.
List trading pairs that are blacklisted from trading.
Retrieve the history of completed trades.
Get the current bot configuration details.
List active trading locks.
Place a buy or sell order for a specified pair and stake amount.
Start or resume the trading bot.
Stop the trading bot and halt trading activities.
Reload the bot configuration without restarting the entire service.
Add a trading pair to the blacklist.
Remove a trading pair from the blacklist.
Delete a specific trade lock by its ID.