by kukapay
Integrates the Freqtrade cryptocurrency trading bot with an MCP server, exposing the bot's REST API as tools that AI agents can call for fully automated trading operations.
Freqtrade MCP provides an MCP server that wraps the Freqtrade bot's REST API, turning each endpoint into a ready‑to‑use tool. This enables AI agents or other MCP‑compatible clients to query market data, manage trades, and control the bot without writing any custom integration code.
git clone https://github.com/kukapay/freqtrade-mcp.git
cd freqtrade-mcp
pip install freqtrade-client "mcp[cli]"
# or with uv
uv add freqtrade-client "mcp[cli]"
FREQTRADE_API_URL
, FREQTRADE_USERNAME
, FREQTRADE_PASSWORD
).uv --directory /path/to/freqtrade-mcp run __main__.py
).fetch_market_data
, place_trade
, start_bot
, etc., using simple prompts or API calls.freqtrade-client
and the mcp
library for minimal setup.__main__.py
.fetch_balance
and fetch_profit
with notification services.Q: Do I need a running Freqtrade instance? A: Yes. The MCP server only forwards requests to an existing Freqtrade REST API.
Q: Which Python version is required? A: Python 3.13 or newer.
Q: Can I use this with Docker?
A: Absolutely. Run the Freqtrade bot and the MCP server in separate containers, sharing the network so the server can reach http://freqtrade:8080
.
Q: How are credentials protected? A: Pass them as environment variables; avoid committing them to source control.
Q: Is the project actively maintained? A: The repository shows a badge indicating an "active" status.
An MCP server that integrates with the Freqtrade cryptocurrency trading bot via its REST API, enabling seamless AI agent interaction for automated trading operation.
Clone the Repository:
git clone https://github.com/kukapay/freqtrade-mcp.git
cd freqtrade-mcp
Install Dependencies:
Using pip
:
pip install freqtrade-client mcp[cli]
Or with uv
(optional):
uv add freqtrade-client "mcp[cli]"
Client Configuration:
"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"
}
}
}
Freqtrade Configuration:
Enable the rest API by adding the api_server section to your configuration and setting api_server.enabled to true.
Sample configuration:
"api_server": {
"enabled": true,
"listen_ip_address": "127.0.0.1",
"listen_port": 8080,
"verbosity": "error",
"enable_openapi": false,
"jwt_secret_key": "somethingrandom",
"CORS_origins": [],
"username": "Freqtrader",
"password": "SuperSecret1!",
"ws_token": "sercet_Ws_t0ken"
},
Check the document here.
The server exposes the following Freqtrade API endpoints as MCP tools:
Tool | Description | Parameters |
---|---|---|
fetch_market_data |
Fetch OHLCV data for a pair | pair: str , timeframe: str |
fetch_bot_status |
Get open trade status | None |
fetch_profit |
Get profit summary | None |
fetch_balance |
Get account balance | None |
fetch_performance |
Get performance metrics | None |
fetch_whitelist |
Get whitelist of pairs | None |
fetch_blacklist |
Get blacklist of pairs | None |
fetch_trades |
Get trade history | None |
fetch_config |
Get bot configuration | None |
fetch_locks |
Get trade locks | None |
place_trade |
Place a buy/sell trade | pair: str , side: str , stake_amount: float |
start_bot |
Start the bot | None |
stop_bot |
Stop the bot | None |
reload_config |
Reload bot configuration | None |
add_blacklist |
Add pair to blacklist | pair: str |
delete_blacklist |
Remove pair from blacklist | pair: str |
delete_lock |
Delete a trade lock | lock_id: int |
Fetch Market Data:
Fetch Bot Status:
Fetch Profit:
Fetch Balance:
Fetch Performance:
Fetch Whitelist:
Fetch Blacklist:
Fetch Trades:
Fetch Config:
Fetch Locks:
Place Trade:
Start Bot:
Stop Bot:
Reload Config:
Add Blacklist:
Delete Blacklist:
Delete Lock:
This project is licensed under the MIT License. See the LICENSE file for details.
Please log in to share your review and rating for this MCP.
{ "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" } } } }
Discover more MCP servers with similar functionality and use cases
by stripe
Enables popular agent frameworks to integrate with Stripe APIs via function calling, providing tools for MCP, Python, and TypeScript.
by goat-sdk
GOAT is the largest agentic finance toolkit for AI agents, enabling them to become economic actors by leveraging blockchains, cryptocurrencies, and wallets.
by financial-datasets
Provides AI assistants with tools to retrieve income statements, balance sheets, cash flow statements, stock prices, market news, and crypto information via the Model Context Protocol.
by razorpay
Enables seamless interaction with Razorpay APIs via Model Context Protocol, allowing developers and AI agents to capture payments, manage orders, process refunds, handle settlements, and more through a unified MCP interface.
by armorwallet
Armor Crypto MCP provides a unified interface for AI agents to interact with the crypto ecosystem, including wallet management, swaps, staking, and multi-chain operations.
by alpacahq
Alpaca’s MCP server lets you trade stocks and options, analyze market data, and build strategies through Alpaca's Trading API.
by XeroAPI
Provides a bridge between the Model Context Protocol and Xero's API, enabling standardized access to Xero accounting and business features.
by kukapay
Offers over 50 cryptocurrency technical analysis indicators and corresponding trading strategies, enabling AI agents and developers to assess market trends and generate buy, hold, or sell signals.
by stefanoamorelli
SEC EDGAR MCP is an open-source MCP server that connects AI models to the rich dataset of SEC EDGAR filings. It makes the trove of public company data accessible to AI assistants (LLMs) for financial research, investment insights, and corporate transparency use cases.