Algorithmic Stock & Crypto Trading API · Alpaca · Updated November 2026

How to Connect Alpaca to Your AI Agent, Including ChatGPT, Claude, or GrokBot

Inspect Alpaca portfolio positions, buying power, open orders, and historical market bars, and submit paper or live trades straight from your AI agent.

  • Inspect cash balance, margin buying power, pattern-day-trader flags, and account status.
  • Place market, limit, stop, or bracket orders (supports safe Paper Trading endpoint first).
  • Control per-user, per-area permissions across Account & Positions, Orders & Execution, Market Data & Bars, Watchlists & Activities in Alpaca so each teammate sees only what belongs to their role.
On this page ▾

Example prompts for Alpaca

Copy any prompt below and paste it into ChatGPT, Claude, or GrokBot.

“Show our current Alpaca account equity, cash buying power, open positions, and unrealized P&L today.”

Portfolio snapshot

“List all open and recently filled stock or crypto orders in Alpaca along with average fill prices.”

Order blotter

“Pull daily OHLCV price bars for tickers SPY, QQQ, and AAPL over the last 30 trading days via Alpaca Market Data.”

Market bars

“Submit a paper-trading limit buy order for 10 shares of AAPL at $225.00 in our Alpaca Paper account.”

Place order

What your AI can do in Alpaca

Read live data right away, or allow create and update actions with your approval.

Query account equity & buying power

View & search

Inspect cash balance, margin buying power, pattern-day-trader flags, and account status.

Inspect open positions & P&L

View & search

Retrieve held equities, options, and crypto positions with cost basis and intraday P&L.

Audit orders & fill activities

View & search

List open, filled, and canceled orders plus account trade/dividend activity logs.

Fetch historical & live market data

View & search

Pull stock/crypto bars, latest quotes, trades, and snapshots from Alpaca Market Data API.

Submit & replace trading orders

Create & update

Place market, limit, stop, or bracket orders (supports safe Paper Trading endpoint first).

Cancel orders & manage watchlists

Create & update

Cancel open orders, close positions, or update Alpaca ticker watchlists.

Per-user, per-area permissions & security

Built so teams can connect Alpaca safely without sharing an unrestricted admin account.

Account & Positions

Equity, buying power, open holdings, and unrealized P&L.

Orders & Execution

Viewing order blotter and placing, modifying, or canceling trades.

Market Data & Bars

Historical OHLCV bars, live quotes, and ticker snapshots.

Watchlists & Activities

Saved watchlists, trade fills, dividends, and account history.

  • Per-user permissions across every area of Alpaca

    Choose what each teammate can view or change across different areas of Alpaca, such as Account & Positions, Orders & Execution, Market Data & Bars, Watchlists & Activities. Set view-only, edit, or hidden access per team member so every department sees only what belongs to their role.

  • Your own login, view-only by default

    Every person signs in with their own authorized Alpaca credentials. Keep create or update actions off until you are ready to turn them on.

  • Zero stored copies and never used to train AI

    UniversalMCP passes requests live between your AI assistant and Alpaca. Your business data is never stored as a copy and never used to train AI models.

  • Disconnect in one click anytime

    Revoke access for a single teammate or disconnect Alpaca completely at any time from your UniversalMCP dashboard.

Frequently asked questions

Click Connect Alpaca for Free, sign in once with your own Alpaca login, and paste your ready-to-paste UniversalMCP link into ChatGPT, Claude, GrokBot, or any other AI app. Setup takes about 60 seconds, and every request runs under the permissions you set.
You choose what each teammate can view or change across different areas of Alpaca (such as Account & Positions, Orders & Execution, Market Data & Bars, Watchlists & Activities). Every request from ChatGPT, Claude, GrokBot, or any other AI app runs strictly within the permissions you set for each user.
Yes. Turn off create and update permissions at any time so ChatGPT, Claude, or GrokBot can only read and summarize your Alpaca data.
UniversalMCP is 100% free ($0) for everyone, including unlimited team members, unlimited business apps, per-user and per-area permissions, and shared team connections. No credit card required.

More popular app guides

Browse all AI, Data & Automation MCP servers →

Connect Alpaca in your AI client & explore more

Follow step-by-step setup guides for your AI assistant, compare MCP platforms, or review our security architecture.

Ready to connect Alpaca to your AI?

Copy your MCP link and connect Alpaca to ChatGPT, Claude, GrokBot, or any other AI assistant in 60 seconds.

Connect Alpaca for Free