什么是 io.github.teamtrayd/trayd-mcp?
可在 Claude Code 中用自然语言交易 Robinhood,简化下单与操作流程。
README
Trayd - Trade Robinhood from Claude
Connect Claude to your Robinhood account. Analyze your portfolio, get real-time quotes, and execute trades—all through conversation.

Quick Start
Option A: Claude.ai (Web App) — No terminal needed
- Go to claude.ai → Settings → Connectors
- Click "Add custom connector"
- Name:
trayd— URL:https://mcp.trayd.ai/mcp - Click Add, then click Connect
- Sign in when the login window appears
- Click Configure → set "Other tools" to "Always allow"
- Go to any chat and say: "Link my Robinhood account"
Tip: Setting tools to "Always allow" gives the best experience. Claude is accurate with trading tools and will not make mistakes, so you don't need to approve every action.
Option B: Claude Code (Terminal)
claude mcp add --transport http trayd https://mcp.trayd.ai/mcp --scope user
Then in Claude Code:
- Type
/mcp→ selecttrayd→ click Authorize - Sign in with Google
- Say: "Link my Robinhood account"
- Approve on your phone
- Start trading!
Both options connect to the same account and data. Use whichever you prefer.
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 you can verify it yourself:
-
Phone 2FA on every login - Robinhood sends a notification to your phone. Nothing happens unless you tap "Approve". You control access.
-
Your Claude is honest to you - This MCP runs through your Claude Code. Ask Claude "Am I logged in to Robinhood?" or "Is my Robinhood linked?" anytime. Claude will honestly tell you your connection status because it's your assistant.
-
Instant logout, verified by Claude - Say "Logout from Robinhood" and all credentials are immediately wiped from memory. Then ask Claude "Am I still connected?" - it will confirm you're logged out. No trust required—verify it yourself.
-
Test with a safe order first - Try "Place a limit buy for 1 NVDA at $50" (a price that won't execute). Check your Robinhood app—you'll see the order. Cancel it from either place. Now you know it works, with zero risk.
Why should I trust you?
You don't have to trust us blindly—you can verify:
- Phone approval required - We can't access your account without you tapping Approve
- Ask Claude to verify - Your Claude Code honestly reports your connection status
- Logout = instant wipe - Say "logout" and ask Claude to confirm you're disconnected
- Server restarts wipe everything - Tokens only exist in memory, never on disk
What if something goes wrong with a trade? You are responsible for all trades placed through your account. We provide the interface; you make the decisions. Always verify orders before confirming.
Risks & Disclaimers
Please read before using:
- USE AT YOUR OWN RISK - This software is provided "as is" without warranty
- NOT FINANCIAL ADVICE - We don't provide investment recommendations
- YOU ARE RESPONSIBLE - For all trades and decisions made through this tool
- NO LIABILITY - We are not liable for any losses, bugs, or issues
- BETA SOFTWARE - This is early-stage software; expect rough edges
By using Trayd, you acknowledge:
- You understand the security model and accept the risks
- You are solely responsible for your trading decisions
- You will not hold Trayd liable for any losses
- You understand this is not affiliated with Robinhood
Not affiliated with Robinhood Markets, Inc.
Not financial advice. This tool helps you interact with your own brokerage account. All investment decisions are yours.
Support
- Email: team@trayd.ai
- GitHub: trayders/trayd-mcp
License
MIT
常见问题
io.github.teamtrayd/trayd-mcp 是什么?
可在 Claude Code 中用自然语言交易 Robinhood,简化下单与操作流程。
相关 Skills
前端设计
by anthropics
面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。
✎ 想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。
网页构建器
by anthropics
面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。
✎ 在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。
网页应用测试
by anthropics
用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。
✎ 借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。
相关 MCP Server
GitHub
编辑精选by GitHub
GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。
✎ 这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。
Context7 文档查询
编辑精选by Context7
Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。
✎ 它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。
by tldraw
tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。
✎ 这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。