Composer's MCP server lets MCP-enabled LLMs like Claude backtest trading ideas and automatically invest in them for you
# Add to your Claude Code skills
git clone https://github.com/invest-composer/composer-trade-mcpNo comments yet. Be the first to share your thoughts!
For more ideas, check out our collection of Awesome Prompts!
This section will get you started with creating symphonies and backtesting them. Use the links below to jump to the instructions for your preferred LLM client:
To use the Composer MCP, you’ll need the Claude Pro or Max plan.
https://github.com/user-attachments/assets/f560c127-4c87-4932-b515-6cad962c8ddc
https://ai.composer.trade/mcp in the Remote MCP server URL field.Once you've followed the above steps, the Composer MCP server will automatically be accessible in the Claude iOS app.
Run the following command from your terminal:
claude mcp add --transport http composer https://ai.composer.trade/mcp
Copy-paste the following into your browser:
cursor://anysphere.cursor-deeplink/mcp/install?name=Composer&config=eyJ1cmwiOiJodHRwczovL2FpLmNvbXBvc2VyLnRyYWRlL21jcCJ9
Try asking Cursor something like, "Find the Composer strategies with the highest alpha."
:
MY_KEY:MY_SECRET becomes TVlfS0VZOk1ZX1NFQ1JFVA== after Base64 encoding1.104.0
https://mcp.composer.trade/mcp/HTTP StreamableHeader AuthAuthorizationBasic REPLACE_WITH_BASE64_ENCODED_KEY_AND_SECRET (Use your Base64 encoded key and secret here)save_symphony - Save a symphony to the user's accountcopy_symphony - Copy an existing symphony to the user's accountupdate_saved_symphony - Update a saved symphonyinvest_in_symphony - Invest in a symphony for a specific accountwithdraw_from_symphony - Withdraw money from a symphony for a specific accountcancel_invest_or_withdraw - Cancel an invest or withdraw request that has not been processed yetskip_automated_rebalance_for_symphony - Skip automated rebalance for a symphony in a specific accountgo_to_cash_for_symphony - Immediately sell all assets in a symphonyliquidate_symphony - Immediately sell all assets in a symphony (or queue for market open if outside of market hours)rebalance_symphony_now - Rebalance a symphony NOW instead of waiting for the next automated rebalanceexecute_single_trade - Execute a single order for a specific symbol like you would in a traditional brokerage accountcancel_single_trade - Cancel a request for a single trade that has not executed yetTo install for any other MCP-enabled LLM, you can add the following to your MCP configuration JSON:
{
"mcpServers": {
"composer": {
"url": "https://ai.composer.trade/mcp"
}
}
}
‼️ NOTE: ChatGPT does not support custom MCP servers unless you have the Pro Plan ($200/mo). They also do not support MCP servers with more than two tools. ‼️
An API key will be necessary to interact with your Composer account. For example, saving a Composer Symphony for later or viewing statistics about your portfolio.
Trading a symphony will require a paid subscription, although you can always liquidate a position regardless of your subscription status. Composer also includes a 14-day free trial so you can try without any commitment.
Get your API key from Composer by following these steps:
Once your LLM is connected to the Composer MCP Server, it will have access to the following tools:
create_symphony - Define an automated strategy using Composer's system.backtest_symphony - Backtest a symphony that was created with create_symphonysearch_symphonies - Search through a database of existing Composer symphonies.backtest_symphony_by_id - Backtest an existing symphony given its IDsave_symphony - Save a symphony to the user's accountcopy_symphony - Copy an existing symphony to the user's accountupdate_saved_symphony - Update a saved symphonylist_accounts - List all brokerage accounts available to the Composer userget_account_holdings - Get the holdings of a brokerage accountget_aggregate_portfolio_stats - Get the aggregate portfolio statistics of a brokerage accountget_aggregate_symphony_stats - Get stats for every symphony in a brokerage accountget_symphony_daily_performance - Get daily performance for a specific symphony in a brokerage accountget_portfolio_daily_performance - Get the daily performance for a brokerage accountget_saved_symphony - Get the definition about an existing symphony given its ID.get_market_hours - Get market hours for the next weekget_options_chain - Get opti