Provides read-only access to Robinhood portfolio data, including portfolio metrics, stock positions with P&L, watchlists, real-time quotes, fundamentals, historical price data, news, earnings, analyst ratings, dividends, and options positions.
robinhood-mcp
A read-only MCP server for Robinhood portfolio research. Wraps robin_stocks.
Research Tool Only - This server provides read-only access for portfolio analysis and stock research. No trading functionality is exposed.
Unofficial - This uses an unofficial API. Use at your own risk. See robin_stocks disclaimer.
Installation
Or with uvx:
Configuration
Set environment variables:
Getting your TOTP Secret
If you have 2FA enabled on Robinhood:
When setting up 2FA, Robinhood shows a QR code
Most authenticator apps let you view the secret key
The secret is a base32-encoded string (e.g.,
JBSWY3DPEHPK3PXP)Set this as
ROBINHOOD_TOTP_SECRET
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Claude Code
Then set environment variables in your shell or .env file.
Available Tools
Tool | Description |
| Get portfolio value, equity, and performance metrics |
| Get all current stock positions with P&L |
| Get stocks in a watchlist |
| Get real-time quote for a stock |
| Get P/E ratio, market cap, dividend yield |
| Get historical price data (OHLCV) |
| Get recent news articles for a stock |
| Get earnings dates and estimates |
| Get analyst buy/hold/sell ratings |
| Get dividend payment history |
| Get current options positions |
| Search for stock symbols |
Example Usage
Once configured, you can ask Claude:
"What's my current portfolio value?"
"Show me my positions and their performance"
"Get the fundamentals for AAPL"
"What's the historical data for TSLA over the past year?"
"Show me analyst ratings for NVDA"
Development
Security Notes
Credentials are only used locally to authenticate with Robinhood
Session tokens are stored in
~/.tokens/robinhood.pickleby robin_stocksNever commit your
.envfileConsider using a dedicated Robinhood account for API access
License
MIT
Disclaimer
This tool is for educational and research purposes only. It uses unofficial APIs that may break at any time. The authors are not responsible for any account restrictions or financial losses.
Not affiliated with Robinhood Markets, Inc.