composer-trade
Composer's MCP server lets MCP-enabled LLMs like Claude backtest trading ideas and automatically invest in them for you
claude mcp add --transport stdio invest-composer-composer-trade-mcp python -m composer_trade_mcp \ --env COMPOSER_API_KEY="your-composer-api-key" \ --env COMPOSER_API_BASE_URL="https://api.composer.trade"
How to use
Composer-trade MCP exposes a Python-based MCP server that lets LLMs like Cursor or Claude validate investment ideas, backtest strategies, and run multiple investment symphonies in parallel to compare live performance. The server connects to Composer services (backtesting, strategy database, and live monitoring) and provides a structured MCP interface so your agent can request backtests, retrieve performance metrics, and prompt the system to rebalance or adjust strategies. Use the included prompts and examples to ask for strategy building, backtest comparisons, or best-performing symphonies, then let the system run in parallel across multiple symphonies to identify top performers.
To start using, install the MCP server, ensure your environment is configured with your Composer API key, and run the server. Connect your MCP-enabled LLM client to the server URL exposed by this MCP instance. You can then issue requests like:
- Build and backtest a strategy using RSI and EMA indicators across supported assets.
- Compare two symphonies and plot their performance metrics side by side.
- Identify your best-performing symphonies and analyze why they are working (risk-adjusted return, drawdown, Sharpe ratio, etc.).
How to install
Prerequisites:
- Python 3.8+ installed on your system
- internet access to install dependencies
- Composer account for API access (subscription may be required for live trading features)
Install steps:
-
Create and (optional) activate a virtual environment: python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows
-
Install the MCP package from PyPI: pip install composer-trade-mcp
-
Verify installation (example, adjust if your entry point differs): python -m composer_trade_mcp --version
-
Start the MCP server (use your API key in the environment if required): export COMPOSER_API_KEY=your-composer-api-key # macOS/Linux set COMPOSER_API_KEY=your-composer-api-key # Windows python -m composer_trade_mcp
-
Connect your MCP client (LLM) to the server URL that is exposed when the server starts.
Notes:
- If you prefer not to rely on a global Python installation, consider using a virtual environment or a tool like pipx to isolate the MCP server.
- Ensure network egress to Composer services is allowed in your environment.
Additional notes
Tips and considerations:
- You will typically need a Composer API key to enable live trading and backtesting capabilities.
- If you plan to run multiple symphonies in parallel, consider increasing concurrency limits in your environment and ensuring your network can handle the load.
- The MCP server may require specific environment variables for API endpoints or authentication; consult the Composer docs for current variable names and values.
- For production usage, consider running the MCP server behind a lightweight reverse proxy and enabling authentication at the MCP client level.
- If you encounter rate limits or API errors, check your API key validity and ensure you’re within your subscription plan’s allowances.
- The example config uses a single server named “composer”; you can add more servers or customize the server name as needed.
Related MCP Servers
alpaca
Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs
mcp-aktools
📈 提供股票、加密货币的数据查询和分析功能MCP服务器
Gitingest
mcp server for gitingest
ccxt
CCXT MCP Server bridges the gap between AI models and cryptocurrency trading by providing a standardized interface through the Model Context Protocol. Created to empower automated trading strategies, this tool allows AI assistants like Claude and GPT to directly interact with over 100 cryptocurrency exchanges without requiring users to write comple
mcp-install-instructions-generator
Generate MCP Server Installation Instructions for Cursor, Visual Studio Code, Claude Code, Claude Desktop, Windsurf, ChatGPT, Gemini CLI and more
obsidian-ai-curator
Smart note consolidation for Obsidian using Claude AI. Automatically identifies and merges scattered fragments into structured knowledge via MCP. Like Tetris for your thoughts - pieces fall into place.