Trayd MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add trayd -- npx -y @trayders/trayd-mcp
README.md

Trade Robinhood through Claude Code

Trayd - Trade Robinhood from Claude Code

Connect Claude Code to your Robinhood account. Analyze your portfolio, get real-time quotes, and execute tradesβ€”all through conversation.

Demo

Quick Start

claude mcp add --transport http trayd https://mcp.trayd.ai/mcp --scope user

Then in Claude Code:

  1. Type /mcp β†’ select trayd β†’ click Authorize
  2. Sign in with Google
  3. Say: "Link my Robinhood account"
  4. Approve on your phone
  5. Start trading!

What You Can Do

πŸ“Š Portfolio Analysis

"What's my portfolio worth?"
"Which positions are up today? Which are down?"
"What's my biggest winner this week?"
"Show me everything that's down more than 5%"

πŸ“ˆ Real-Time Market Data

"What's NVDA trading at?"
"Get me a quote on AAPL"
"Check the price of TSLA"

πŸ’° Trade Execution

"Buy 10 shares of AAPL"
"Place a limit order for TSLA at $400"
"Set 5 ladder buys for NVDA from $180-$175"
"Set stop losses on all my positions at -5%"

πŸ”₯ Complex Operations (One Sentence)

"Sell half of my TSLA position"
"What's my biggest loser today? Sell it."
"Cancel all my open orders and show me what's left"
"Buy $500 worth of each: AAPL, GOOGL, MSFT"

Note: Market orders work during regular hours (9:30 AM - 4 PM ET). Extended hours (pre-market & after-hours) require limit ordersβ€”this is a Robinhood policy.

Why Trayd?

Instead of clicking through dozens of screens:

Setting 5 ladder limit orders manually:
  Open app β†’ Search NVDA β†’ Buy β†’ Limit β†’ $180 β†’ 10 shares β†’ Submit
  β†’ Search NVDA β†’ Buy β†’ Limit β†’ $178.75 β†’ 10 shares β†’ Submit
  β†’ Search NVDA β†’ Buy β†’ Limit β†’ $177.50 β†’ 10 shares β†’ Submit
  β†’ Search NVDA β†’ Buy β†’ Limit β†’ $176.25 β†’ 10 shares β†’ Submit
  β†’ Search NVDA β†’ Buy β†’ Limit β†’ $175 β†’ 10 shares β†’ Submit
  (50+ clicks, 5 minutes)

With Trayd:
  "Set 5 ladder buys for NVDA from $180-$175"
  (1 sentence, 10 seconds)

Security Model

How Your Credentials Flow

You β†’ Claude Code β†’ Trayd Server β†’ Robinhood API
         ↓              ↓
    (MCP token)    (Your RH credentials
                   passed through to RH,
                   NEVER stored by us)

Important to understand:

  • Your Robinhood email/password pass through our server to Robinhood's API
  • We never log, store, or persist your password - it goes directly to Robinhood
  • After login, Robinhood returns access tokens which we hold in memory only
  • Tokens are wiped on: logout, server restart, or container redeployment

What We Store (and Don't)

Data Stored? Where Duration
Robinhood password NO Never touches disk Passed through, then discarded
Robinhood access token Yes Server memory only Until logout/restart
Your trades/positions NO Not logged Fetched live from RH
Your Google identity Yes Via Clerk For auth only

Authentication

  • OAuth 2.1 with PKCE - Industry-standard secure auth flow
  • Google Sign-in via Clerk - We don't handle Google passwords
  • Robinhood Phone 2FA - Native Robinhood security, you approve on your phone

Infrastructure

  • AWS ECS Fargate - Containerized, isolated execution
  • Cloudflare Tunnel - DDoS protection, no exposed ports
  • HTTPS everywhere - All traffic encrypted

Example Conversations

Check Your Portfolio

You: What's my portfolio worth?

Claude: Your Robinhood portfolio:
  β€’ Total Equity: $45,230.82
  β€’ Cash Available: $2,156.33
  β€’ Buying Power: $2,156.33

View Positions

You: Show my positions

Claude: Your current holdings:

  NVDA - 50 shares
  β€’ Avg Cost: $127.45 β†’ Current: $137.01
  β€’ Market Value: $6,850.50
  β€’ P&L: +$478.00 (+7.5%)

  AAPL - 100 shares
  β€’ Avg Cost: $178.23 β†’ Current: $254.49
  β€’ Market Value: $25,449.00
  β€’ P&L: +$7,626.00 (+42.8%)

Get a Quote

You: What's TSLA trading at?

Claude: TSLA (Tesla Inc) - $421.06
  β€’ Bid: $421.05 Γ— 100
  β€’ Ask: $421.08 Γ— 200
  β€’ Day Range: $415.02 - $428.50
  β€’ Volume: 42.3M

Place a Trade

You: Buy 5 shares of GOOGL at $191

Claude: I'll place a limit order to buy 5 shares of GOOGL at $191.00.

  [Calls place_order tool]

  βœ“ Limit order placed successfully
  β€’ Order ID: 67890-abcdef
  β€’ Buy 5 GOOGL @ $191.00 limit

Cancel an Order

You: Cancel my GOOGL order

Claude: [Calls cancel_order tool]

  βœ“ Order cancelled successfully

Troubleshooting

Issue Solution
Browser doesn't open for auth Type /mcp β†’ select trayd β†’ click "Authorize"
Phone notification not received Ensure Robinhood app is installed and you're logged in
"Authentication required" error Run /mcp to re-authenticate
Market order rejected after hours Use limit orders (Robinhood policy for extended hours)

FAQ

Is this safe?

Yes, and here's why y

Tools (2)

place_orderExecutes a trade order on Robinhood
cancel_orderCancels an existing open order

Configuration

claude_desktop_config.json
{"mcpServers": {"trayd": {"command": "npx", "args": ["-y", "@trayders/trayd-mcp"]}}}

Try it

β†’What's my portfolio worth?
β†’What's NVDA trading at?
β†’Buy 10 shares of AAPL
β†’Sell half of my TSLA position
β†’Cancel all my open orders and show me what's left

Frequently Asked Questions

What are the key features of Trayd?

Real-time portfolio analysis and equity tracking. Live market data and stock quotes. Automated trade execution including limit orders. Secure OAuth 2.1 authentication with PKCE. Memory-only token storage for enhanced security.

What can I use Trayd for?

Quickly checking total portfolio equity and cash availability. Executing complex ladder buy strategies with a single sentence. Monitoring stock performance and P&L for current holdings. Managing open orders by cancelling or modifying them via chat. Getting instant market data for specific tickers without leaving the IDE.

How do I install Trayd?

Install Trayd by running: claude mcp add --transport http trayd https://mcp.trayd.ai/mcp --scope user

What MCP clients work with Trayd?

Trayd works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Trayd docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare