
How to add Freqtrade-MCP to Cursor
Control a Freqtrade crypto trading bot through its REST API from any MCP-compatible AI agent. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 121★ · stdio · no auth
Cursor config for Freqtrade-MCP
pip install freqtrade-client mcp[cli]{
"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"
}
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Freqtrade-MCP config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Freqtrade-MCP's tools to confirm it's connected.
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
What Freqtrade-MCP can do in Cursor
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.
Security
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 + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Freqtrade-MCP config there under the "mcpServers" key and restart the client.
Is Freqtrade-MCP safe to use with Cursor?
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.
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.