Skip to main content
Glama
robinhood-mcp

robinhood-mcp

drasticstatic作業コピー — Fortunaトレーディングシステムで使用されています。これはverygoodplugins/robinhood-mcpのローカルクローンから作成された独立したリポジトリです。アップストリームは比較目的のリモートとして追跡されており、変更は適用前にレビューされます。

# Check for upstream updates (review before applying)
git fetch upstream && git log upstream/main --oneline

robinhood-mcp

Ask DeepWiki PyPI version License: MIT Python 3.11+ MCP

Robinhoodポートフォリオ調査用の読み取り専用MCPサーバー。robin_stocksをラップし、AIアシスタントが分析のためにポートフォリオデータにアクセスできるようにします。

⚠️ 調査ツール専用 - このサーバーは読み取り専用アクセスを提供します。取引機能は公開されていません。

⚠️ 非公式API - robin_stocksの非公式APIを使用しています。予告なく動作しなくなる可能性があります。自己責任で使用してください。

これで何ができるのか?

接続すると、Claudeとポートフォリオについて自然な会話ができるようになります:

ポートフォリオの健全性チェック

「ポートフォリオの健全性をチェックして。総資産額、セクター集中度、大幅に上昇または下落しているポジションはある?」

Claudeがあなたのポジションを取得し、セクターのエクスポージャーを計算し、最もパフォーマンスの良い銘柄と悪い銘柄を特定し、集中リスクを警告します。

購入前の調査

「NVDAのポジションを増やそうと考えている。ファンダメンタルズ、最近のニュース、アナリストの評価、過去1年間のパフォーマンスを教えて。」

価格履歴、PER、決算日、アナリストのセンチメントを組み合わせた包括的な調査結果を一度の回答で取得できます。

投資の比較

「ポートフォリオ内のクルーズライン銘柄を比較して。CCL、RCL、NCLHを並べて、PER、時価総額、年初来パフォーマンスを表示して。」

類似の保有銘柄を素早く評価し、相対的な価値を特定します。

配当分析

「今年受け取った配当は?保有銘柄のうちどれが配当を支払っていて、その利回りは?」

不労所得を追跡し、ポートフォリオ内の配当機会を特定します。

リスク評価

「エネルギーセクターへのエクスポージャーは?上位5銘柄への集中度はどのくらい?」

セクター集中度を分析し、ウェイトが高すぎる可能性のあるポジションを特定します。

決算カレンダー

「今後2週間以内に決算発表がある保有銘柄は?」

パーソナライズされたカレンダーで、決算のボラティリティに先手を打ちましょう。

パフォーマンスの要因分析

「ポートフォリオの収益を内訳して。利益と損失の要因は何?」

どのポジションがパフォーマンスに最も貢献しているかを理解します。

ウォッチリストの調査

「ウォッチリストにあるすべての銘柄のクォートとファンダメンタルズを取得して。今興味深いものはある?」

追跡している銘柄を一括調査します。

Related MCP server: Public.com MCP Server

インストール

pip install robinhood-mcp

またはuvxで直接実行します:

uvx robinhood-mcp

設定

環境変数

export ROBINHOOD_USERNAME="your_email"
export ROBINHOOD_PASSWORD="your_password"
export ROBINHOOD_TOTP_SECRET="your_2fa_secret"  # Only if you use authenticator app

注: RobinhoodでFace ID、Touch ID、またはパスコードログインを使用している場合(認証アプリなし)、ROBINHOOD_TOTP_SECRETは不要です。

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.jsonに追加します:

{
  "mcpServers": {
    "robinhood": {
      "command": "uvx",
      "args": ["robinhood-mcp"],
      "env": {
        "ROBINHOOD_USERNAME": "your_email",
        "ROBINHOOD_PASSWORD": "your_password"
      }
    }
  }
}

Claude Code

claude mcp add robinhood -- uvx robinhood-mcp

利用可能なツール

ツール

説明

robinhood_get_portfolio

ポートフォリオ価値、株式、購買力、日次変動

robinhood_get_positions

コストベース、現在価値、損益を含む全保有銘柄

robinhood_get_position

ティッカーごとの数量、価値、損益を含む単一の保有銘柄

robinhood_get_watchlist

ウォッチリスト内の銘柄

robinhood_get_quote

リアルタイム価格、買値/売値、出来高

robinhood_get_fundamentals

PER、時価総額、配当利回り、52週レンジ

robinhood_get_historicals

OHLCV価格履歴(日/週/月/年)

robinhood_get_news

シンボルの最近のニュース記事

robinhood_get_earnings

決算日、EPS予想、実績

robinhood_get_ratings

アナリストの買い/ホールド/売り評価

robinhood_get_dividends

配当支払い履歴

robinhood_get_options_positions

現在のオプションポジション

robinhood_search_symbols

名前またはティッカーで銘柄を検索

会話例

単純なクエリ:

  • 「今のポートフォリオの価値は?」

  • 「価値ベースで上位5つの保有銘柄を見せて」

  • 「HIMSはすでに持っている?現在のポジションは?」

  • 「AAPLのクォートを取得して」

単一シンボルのポートフォリオに関する質問には、robinhood_get_positionsよりもrobinhood_get_positionを使用してください。単一シンボルツールは全保有銘柄の再構築を避けるため、「HIMSを買い増すべきか?」といった質問に対してはるかに高速です。

分析リクエスト:

  • 「GOOGLとMETAのファンダメンタルズを比較して」

  • 「52週平均を下回って取引されている銘柄はどれ?」

  • 「過去1年間のTSLAの価格チャートを見せて」

  • 「最もパフォーマンスの良い銘柄は?最も悪いのは?」

調査ワークフロー:

  • 「クルーズライン業界を理解したい。CCL、RCL、NCLHのデータを取得して、ファンダメンタルズと最近のパフォーマンスを比較して。」

  • 「ポートフォリオの中でPERが15未満で、利益成長がプラスの銘柄を見つけて」

  • 「いくつかのポジションで大きな損失が出ている。損切りすべきか判断するために、最もパフォーマンスの悪い銘柄のファンダメンタルズとニュースを見せて。」

制限事項

  • 読み取り専用: 取引の実行、ウォッチリストの変更、アカウント設定の変更はできません

  • 非公式API: RobinhoodはいつでもAPIを変更する可能性があり、機能が停止する場合があります

  • リアルタイムストリーミングなし: クォートは時点データであり、ライブフィードではありません

  • セッションの有効期限: 定期的に再認証が必要になる場合があります

  • レート制限: 大量に使用するとRobinhoodのレート制限に達する可能性があります

セキュリティに関する注意

  • 認証情報はRobinhoodへの認証のためにローカルでのみ使用されます

  • セッショントークンはrobin_stocksによって~/.tokens/robinhood.pickleにキャッシュされます

  • .envファイルをコミットしたり、認証情報を公開したりしないでください

  • このツールは取引を実行できません。設計上読み取り専用です

開発

git clone https://github.com/verygoodplugins/robinhood-mcp.git
cd robinhood-mcp
pip install -e ".[dev]"

# Lint
ruff check . && ruff format --check .

# Test
pytest

# Run locally
robinhood-mcp

トラブルシューティング

「Not logged in」エラー:

  • ユーザー名とパスワードが正しいか確認してください

  • 認証アプリで2FAを設定している場合は、ROBINHOOD_TOTP_SECRETが必要です

  • アカウントがロックされていないことを確認するために、Robinhoodアプリからログインを試みてください

「Non-base32 digit found」エラー:

  • TOTPシークレットに無効な文字が含まれています

  • シークレットにはA-Zの文字と2-7の数字のみを含める必要があります

  • 認証アプリを使用していない場合は、ROBINHOOD_TOTP_SECRETを完全に削除してください

レート制限:

  • robin_stocksには組み込みのレート制限はありません

  • レート制限に達した場合は、数分待ってから再試行してください

ライセンス

MIT

免責事項

このツールは教育および研究目的のみに使用してください。いつでも動作しなくなる可能性のある非公式APIを使用しています。作成者は、アカウントの制限、データの不正確さ、または経済的損失について一切の責任を負いません。

このプロジェクトは、Robinhood Markets, Inc.と提携、承認、または接続されていません。

自動化の例

Claude Codeによる毎日のポートフォリオレビュー

毎日のポートフォリオブリーフィングを取得するcronジョブを設定します:

# ~/.claude/commands/portfolio-review.md
---
description: "Daily portfolio health check"
---
Using the robinhood MCP tools:
1. Get my current portfolio value and day change
2. Identify my top 3 gainers and top 3 losers today
3. Flag any positions that are down more than 20% from cost basis
4. Check if any holdings have earnings in the next 7 days
5. Give me a 2-3 sentence summary I can read with my morning coffee

毎日実行します:

# Add to crontab -e
0 7 * * 1-5 cd ~/Projects && claude -p "/portfolio-review" --dangerously-skip-permissions >> ~/portfolio-reports/$(date +\%Y-\%m-\%d).md

週次調査ダイジェスト

# ~/.claude/commands/weekly-research.md
---
description: "Weekly deep dive on portfolio"
---
For each of my top 10 holdings by value:
1. Pull current fundamentals and compare to sector averages
2. Get recent news and analyst rating changes
3. Flag any significant changes from last week
4. Identify 2-3 stocks from my watchlist that might be worth adding

Format as a markdown report I can review on the weekend.

クレジット

Very Good PluginsのJack Arturoによって🧡を込めて作成されました。

robin_stocksおよびFastMCPを搭載しています。

リンク

Available Tools

13 tools
robinhood_get_dividendsA

Get all dividend payments received.

Returns list of dividend payments with amount, payable date, record date, and instrument details.

Inputs: no named parameters. Returns: result

robinhood_get_earningsC

Get earnings data for a stock.

Inputs: symbol (required). Returns: result

robinhood_get_fundamentalsC

Get fundamental data for a stock.

Inputs: symbol (required). Returns: object

robinhood_get_historicalsC

Get historical price data for a stock.

Inputs: symbol (required), interval, span. Returns: result

robinhood_get_newsA

Get recent news articles for a stock.

Inputs: symbol (required). Returns: result

robinhood_get_options_positionsA

Get all current options positions (read-only).

Returns list of options positions with chain symbol, type, strike price, expiration, and quantity.

Inputs: no named parameters. Returns: result

robinhood_get_portfolioA

Get current portfolio value and performance metrics.

Returns portfolio profile with equity, extended hours equity, withdrawable amount, and other account details.

Inputs: no named parameters. Returns: object

robinhood_get_positionA

Get one current stock position with a faster single-symbol lookup.

Inputs: symbol (required). Returns: object

robinhood_get_positionsA

Get all current stock positions with details.

Returns a dict mapping stock symbols to position details including price, quantity, average buy price, equity, and percent change.

Inputs: no named parameters. Returns: object

robinhood_get_quoteB

Get real-time quote for a stock symbol.

Inputs: symbol (required). Returns: object

robinhood_get_ratingsB

Get analyst ratings summary for a stock.

Inputs: symbol (required). Returns: object

robinhood_get_watchlistC

Get stocks in a watchlist.

Inputs: name. Returns: result

robinhood_search_symbolsB

Search for stock symbols by company name or ticker.

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct data type (dividends, earnings, fundamentals, etc.) with clear boundaries. The only potential overlap is between get_position and get_positions, but they are differentiated by single vs. all symbols.

    Naming Consistency5/5

    All tools follow a uniform 'robinhood_verb_noun' pattern, using snake_case and descriptive verbs (get, search). No mixing of styles or vague names.

    Tool Count5/5

    13 tools is well-suited for a data-heavy financial service, covering a broad range of endpoints without being overwhelming. The count feels neither sparse nor excessive.

    Completeness4/5

    The tool set comprehensively covers read-only data retrieval (quotes, positions, dividends, earnings, news, etc.), but lacks write operations (e.g., placing orders) which might be expected from a brokerage service. Minor gap for transactional use cases.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A read-only MCP server that provides access to Charles Schwab account data and market information, including portfolio positions, real-time quotes, options chains, price history, and account balances through AI assistants.
      9
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      This MCP server connects AI assistants to a Public.com brokerage account, enabling natural language trading of stocks, options, and crypto, along with portfolio management, quotes, and orders.
      46
      914 PyPI
      67
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      A read-only MCP server for Trading 212 accounts, enabling AI assistants to query balances, positions, orders, dividends, pies, and instruments without trading capabilities.
      12
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A local-first MCP server that connects Claude Code to your Robinhood account, enabling read-only portfolio insights, tax analysis, and natural language queries, with optional human-in-the-loop trading actions.
      -