English
How to Build an MCP-Based Trading Workflow with Claude, Alpaca's Trading API, and Google Sheets
▶Watch on YouTube · Смотреть на YouTubeAbstract · Satoshi Ido · "How to Build an MCP-Based Trading Workflow with Claude, Alpaca's Trading API, and Google Sheets" · Alpaca · 21.05.2025, updated 06.2026
How to connect an AI assistant to a brokerage account, and what the broker itself warns about. A step-by-step guide that starts on a paper account.
The question. How do you connect an AI assistant to a real brokerage account, so that it can look at the market, place an order and keep a log? And what does the broker itself warn you about?
What was done. This is a step-by-step guide from the broker Alpaca. It uses a standard connector called MCP, which lets an AI assistant use outside services as tools. First, you get an Alpaca account and API keys. Second, you add Alpaca's official MCP server to the Claude Desktop settings file, with your keys. Third, you connect Google Sheets through a command-line tool, to keep the log. Then comes a demo with three requests to Claude. One: take ninety days of Tesla prices and calculate Bollinger Bands, a common indicator that shows the usual price range. Two: place an order to buy one share at ninety-seven percent of the current price. Three: write the trade into a spreadsheet, with the price, an eight percent stop loss, a twenty-four percent profit target, and the time.
Advantages. It comes from the broker, the maker of the tool. Everything is concrete: which software, which settings, which requests. By default, the server works on a paper account, with no real money. To trade for real, you have to switch that on yourself, with separate live keys.
Results. The result is a working chain: Claude reads prices, places an order and logs it. The guide also lists rules for staying safe. Give the AI the least access it needs, for example, switch on only the account, trading and stock-data tools. Set limits on how often the tools can be called. And check the symbol, quantity, price and side of every order before it is sent. The guide's disclosures say that mistakes or outages can cause unwanted trades or losses, and that nothing guarantees a profit. The server's own page adds: this server can place real trades and see your portfolio.
Limitations. The guide shows a demo, not a strategy. It gives no trading results, and it does not test whether the Bollinger Bands idea earns anything. The example is one share of one stock, written for macOS. The spreadsheet tool is not an official Google product, and has not reached version one. And the guide is published by a company that sells brokerage services.
Conclusions. The goal is met: the guide shows how to connect an AI assistant to a trading account in a short time. But connecting is the easy part. Whether the bot earns money is a different question, and this guide does not answer it. A sensible order is this. Start on a paper account. Give the AI the least access. Check every order. And before you believe any result, remember that costs and test mistakes can turn a small win into a loss.
Real Crypto Balance — your real balance across all exchanges, at a glance: https://rcb-team.com/?src=journal
Video abstract: https://youtu.be/Lt3xn2jeSvg
Original: https://alpaca.markets/learn/mcp-trading-with-claude-alpaca-google-sheets
RCB Team