DEV Community

team-trayd
team-trayd

Posted on

I Built an MCP Server to Trade Robinhood Through Claude Code

I got tired of clicking through 10+ screens just to place a trade. So I built an MCP server that lets me trade Robinhood using natural language in Claude Code.

What it does

Instead of the app, I just type:

  • "What's my portfolio worth?"
  • "Buy 10 shares of AAPL"
  • "Place a limit order for TSLA at $400"

Setup (one command)

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

Then tell Claude: "Link my Robinhood account"

How it works

  1. MCP Server - Runs on AWS ECS, handles OAuth + Robinhood API
  2. Clerk Auth - Google sign-in for user isolation
  3. Phone 2FA - Robinhood sends approval notification
  4. In-memory tokens - Never stored on disk

Security

  • Tokens in memory only (wiped on restart)
  • Phone approval required to link
  • Logout wipes everything instantly
  • Open source - review the code yourself

GitHub

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

Would love feedback from Claude Code users!

Top comments (0)