# Let Claude trade a free Alpaca paper account

> Lets Claude place practice trades and pull market data in Alpaca.

- **What it does:** Lets Claude place practice trades in a free Alpaca paper account, covering stocks, ETFs, crypto and options, using no real money. It can also pull market data and look at your practice portfolio when you ask in plain English.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_7d7fddffc34027cd47b85fce`
- **Creator:** @orbit.earns on Instagram
- **Safety:** Checked by Orbit: use with care. Sensitive API keys; uvx remote install; can enable real-money trades
- **Runs:** Run 1 time by 1 person
- **Installs:** 2
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/let-claude-trade-a-free-alpaca-paper-account

## Skill

---
name: alpaca-paper-trading-mcp
description: Use when you say "set up Alpaca paper trading with Claude" or "connect my Alpaca paper account"; it adds Alpaca's official MCP server so Claude can place practice stock, ETF, crypto and options orders and pull market data in plain English.
---

# Let Claude trade a free Alpaca paper account

## What it does

Alpaca's official MCP server connects Claude (or Cursor, VS Code, PyCharm) to Alpaca's Trading API, so you can trade stocks, ETFs, crypto and options, run data analysis and build strategies in plain English. V2 is a complete rewrite built with FastMCP and OpenAPI, and it exposes these toolsets:

- account: balances, buying power, account config, portfolio history, activities
- trading: market, limit, stop, stop-limit, trailing-stop and bracket orders for stocks; market, limit and stop-limit for crypto; single-leg and multi-leg option orders; cancel or replace orders
- positions: view, close or liquidate positions, exercise or do-not-exercise options
- watchlists: create, read, update, delete, add and remove assets
- assets: asset and option contract lookup, market calendar, market clock
- stock-data, crypto-data, options-data: bars, quotes, trades, snapshots, orderbooks, option chain, Greeks and implied volatility, most active stocks, market movers
- corporate-actions, news, fixed-income-data, locates (short-sale locates are not available in paper trading)
- documentation tools that search and fetch Alpaca's docs and API reference

By default it runs in paper mode (`ALPACA_PAPER_TRADE` defaults to `true`), so orders are practice orders with no real money. Setting it to `false` places real trades with real money. Alpaca's own note: insights from the server are for educational purposes only and are not investment advice; review every action the model proposes, especially multi-leg option trades.

## What you need

- Python 3.10+
- uv (provides `uvx`)
- Alpaca Trading API keys (free paper trading account)
- An MCP client: Claude Desktop, Claude Code, Cursor, VS Code, etc.

Get the keys: open the Alpaca dashboard at https://app.alpaca.markets/paper/dashboard/overview, create a free paper trading account, and generate API keys there. Treat the keys as sensitive credentials.

Note: the latest 15-minute market data requires Alpaca's Algo Trader Plus plan (https://alpaca.markets/data).

## Setup

Claude Code (user scope, stdio):

```bash
claude mcp add alpaca --scope user --transport stdio uvx alpaca-mcp-server --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key
```

Then verify with `/mcp` in the Claude Code CLI.

Claude Desktop: edit `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": ["alpaca-mcp-server"],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      }
    }
  }
}
```

Restart the client after editing the config. All configuration is through environment variables in the MCP client config: no `.env` file, no `init` command, nothing written to disk.

Optional: limit which tools the server exposes with `ALPACA_TOOLSETS` (comma-separated, all enabled by default):

```json
{
  "env": {
    "ALPACA_API_KEY": "...",
    "ALPACA_SECRET_KEY": "...",
    "ALPACA_TOOLSETS": "stock-data,crypto-data"
  }
}
```

If you are coming from V1: none of the V1 tools exist in V2. Do not reuse the V1 config, remove `.env`/`init` setup, restart your client so it fetches the new tool list, and start a fresh chat so the model sees the V2 tools. To stay on V1, pin the last V1 release, for example `uvx alpaca-mcp-server==1.x.x serve`.

Keep `ALPACA_PAPER_TRADE` at its default `true` while you are testing. Live trading means setting it to `false` with live keys, which spends real money. Claude Mobile and ChatGPT need a remote MCP server; this package does not configure remote MCP authentication, so do not expose it to the public internet with your Alpaca keys. Use the local stdio setup from a desktop client. Cursor, VS Code, PyCharm, Docker and Helm configs are in the README: https://github.com/alpacahq/alpaca-mcp-server

## How to use it with Claude

- "What's my current account balance and buying power on Alpaca?"
- "Buy 5 shares of AAPL at market price." (a practice order in paper mode)
- "Show me AAPL's daily price history for the last 5 trading days."
- "Show me available option contracts for AAPL expiring next month, and the Greeks for one of them."
- "Place a market order to buy 0.01 ETH/USD."
- "Show me my current positions and all my open and filled orders from this week."

Use this only with your own Alpaca account and keys. Before any order, ask Claude to show the order details and confirm the server is in paper mode.

## Credits

Made by alpacahq (Alpaca MCP Server), packaged by Orbit. Source: https://github.com/alpacahq/alpaca-mcp-server (license: MIT)

Shared by @orbit.earns, credited on Orbit.