RCB Team

08.11.2026AI Agents & Tools

English

How to Build an MCP-Based Trading Workflow with Claude, Alpaca's Trading API, and Google Sheets

▶Watch on YouTube · Смотреть на YouTube

Abstract · 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

Русский

How to Build an MCP-Based Trading Workflow with Claude, Alpaca's Trading API, and Google Sheets

Реферат · Satoshi Ido · «How to Build an MCP-Based Trading Workflow with Claude, Alpaca's Trading API, and Google Sheets» · Alpaca · 21.05.2025, обновлено 06.2026

Как подключить ИИ-помощника к брокерскому счёту и о чём предупреждает сам брокер. Пошаговое руководство, которое начинается с бумажного (демо) счёта.

Вопрос. Как подключить ИИ-помощника к настоящему брокерскому счёту, чтобы он смотрел рынок, ставил заявку и вёл журнал? И о чём предупреждает сам брокер?

Что сделано. Это пошаговое руководство от брокера Alpaca. Оно использует стандартный «разъём» MCP, через который ИИ-помощник пользуется внешними сервисами как инструментами. Сначала нужны счёт Alpaca и API-ключи. Затем в файл настроек Claude Desktop добавляют официальный MCP-сервер Alpaca со своими ключами. Потом через командный инструмент подключают Google Sheets для журнала. Дальше демо с тремя запросами к Claude. Первый: взять 90 дней цен Tesla и посчитать полосы Боллинджера, обычный индикатор, показывающий привычный диапазон цены. Второй: поставить заявку на покупку одной акции по цене 97% от текущей. Третий: записать сделку в таблицу: цена, стоп-лосс 8%, цель прибыли 24% и время.

Достоинства. Руководство от брокера, то есть от создателя инструмента. Всё конкретно: какое ПО, какие настройки, какие запросы. По умолчанию сервер работает на бумажном (демо) счёте, без реальных денег. Чтобы торговать по-настоящему, это нужно включить самому и взять отдельные боевые ключи.

Результаты. Результат — рабочая цепочка: Claude читает цены, ставит заявку и ведёт журнал. В руководстве также перечислены правила безопасности. Давать ИИ минимум доступа, например включить только инструменты счёта, торговли и котировок. Ограничить частоту вызовов. И проверять тикер, количество, цену и сторону каждой заявки до отправки. В предупреждениях сказано, что ошибки или сбои могут привести к ненужным сделкам или убыткам, а прибыли никто не гарантирует. Страница самого сервера добавляет: этот сервер может совершать реальные сделки и видеть ваш портфель.

Ограничения. Руководство показывает демо, а не стратегию. Результатов торговли нет, и не проверяется, зарабатывает ли идея с полосами Боллинджера. Пример: одна акция одной компании, инструкция написана под macOS. Инструмент для таблиц не является официальным продуктом Google и не дорос до первой версии. И руководство издаёт компания, которая продаёт брокерские услуги.

Выводы. Цель достигнута: руководство показывает, как за короткое время подключить ИИ-помощника к торговому счёту. Но подключение — это простая часть. Зарабатывает ли бот — другой вопрос, и руководство на него не отвечает. Разумный порядок такой: начать с демо-счёта, дать ИИ минимум доступа, проверять каждую заявку. И прежде чем верить любому результату, помни: издержки и ошибки теста могут превратить небольшой выигрыш в проигрыш.

Real Crypto Balance: твой реальный баланс на всех биржах одним взглядом: https://rcb-team.com/?src=journal

Видео-реферат: https://youtu.be/Lt3xn2jeSvg
Оригинал: https://alpaca.markets/learn/mcp-trading-with-claude-alpaca-google-sheets

Backtests promise. Real numbers decide.

Real Crypto Balance — your real balance across all exchanges, at a glance. Bybit · OKX · futures & spot.

Бэктест обещает — решают реальные цифры. Real Crypto Balance: твой реальный баланс на всех биржах одним взглядом.

Open RCB · ОткрытьIn Telegram · В Telegram