DEV Community

team-trayd
team-trayd

Posted on

I Built an MCP Server That Handled 60K Robinhood Orders — Here's How

I built an MCP server that lets you trade on Robinhood through
Claude Code. One line to set up, then you just talk.

Demo

Setup (literally one line)

  claude mcp add trayd https://mcp.trayd.ai/mcp
Enter fullscreen mode Exit fullscreen mode

Then tell Claude: "Link my Robinhood account." That's it.

What you can do

"What's my portfolio worth?"
"Buy 10 shares of AAPL at $195"
"Place ladder sells for NVDA from $180, 20 orders, decay 0.997"
"Cancel all my open orders"
"Which of my positions dropped the most today?"

No coding. No API keys. No config files. Just conversation.

The numbers

We launched quietly three months ago. Without any marketing:

  • 42 users signed up organically
  • 16 linked their Robinhood accounts and traded real money
  • One power user placed 60,000+ orders through the server
  • All from Google Search, Hacker News, and MCP directory listings

How it works

Claude Code → MCP (JSON-RPC over HTTP) → Our Server → Robinhood API

The server handles:

  • OAuth 2.1 with PKCE — sign in with Google via Clerk
  • Robinhood auth — phone approval + SMS fallback
  • Token persistence — encrypted with AWS KMS, stored in DynamoDB
  • All Robinhood operations — portfolio, positions, quotes, orders, cancellations

Tokens are encrypted at rest with KMS. Only the Fargate container
can decrypt them. Passwords are never stored — sent directly to
Robinhood's API.

Why this exists

Robinhood doesn't offer a public API or OAuth for third parties.
Every unofficial integration (robin_stocks, etc.) uses the same
credential flow. We chose to be transparent about this rather than
hiding it.

The tradeoff is real: you're trusting our server with temporary
access to your brokerage. We've documented the security model in
detail so users can make informed decisions.

Try it

claude mcp add trayd https://mcp.trayd.ai/mcp

GitHub: https://github.com/trayders/trayd-mcp

Top comments (0)