Skip to content
MCP server

robinhood-for-agents MCP Server

AI-native Robinhood trading interface — MCP server + TypeScript client

robinhood-for-agents scores 53 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 40 tools. Filed under Uncategorized. GitHub shows 73 stars. Package registries report about 241 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by kevin1chunMITTypeScript73 stars
Trust score
53Fair
Trust score 53 of 100, Fair

Fair trust

53 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 53 comes from

0 + 20 + 9 + 10 + 4 + 10 = 53. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity9 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 9 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "kevin1chun-robinhood-for-agents": {      "command": "npx",      "args": [        "-y",        "robinhood-for-agents@5.0.0"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools40Tool docs quality grade F

All capabilities

About

robinhood-for-agents

CI npm version ClawHub License: MIT Buy Me a Coffee

An MCP server that lets your AI agent read and trade your Robinhood account, in one of two modes:

  • Standard mode (default): Robinhood's official hosted Trading MCP, 77 tools; orders reach your Agentic account.
  • Web mode: the unofficial web API robinhood.com uses, 59 tools, every brokerage account.

Also included: a TypeScript client library (82 async methods) and a trading skill for agent apps that support skills. Works with Claude Code, Codex, Cursor, Antigravity, Hermes, and any other MCP client; OpenClaw uses the skill.

Quick start

  1. Run the installer. Needs Bun v1.3+.

    bunx robinhood-for-agents install
    

    It detects your agent apps and asks which to configure and whether to add web mode, then registers the server with a generated ROBINHOOD_TOKEN_KEY (reused on re-runs) and copies the trading skill into each app that supports skills. Manual setup instead: npx -y add-mcp "bunx robinhood-for-agents" -g -n robinhood-for-agents --env "ROBINHOOD_TOKEN_KEY=<32-byte base64 key>" plus npx skills add kevin1chun/robinhood-for-agents.

    Other clients:

    Web mode only: the skill calls the client library through bun, with no MCP server. bunx robinhood-for-agents install covers it when ~/.openclaw exists (as "OpenClaw (skill only)": the skill plus robinhood-for-agents in ~/.openclaw/workspace). Alternative:

    clawhub install robinhood-for-agents
    

    Add to ~/.hermes/config.yaml, keeping the entries for the modes you use, then run /reload-mcp:

    mcp_servers:
      robinhood-for-agents:
        command: "bunx"
        args: ["robinhood-for-agents"]
        env:
          ROBINHOOD_TOKEN_KEY: "<any 32-byte base64 key, e.g. from the installer's config entry>"
      robinhood-web:
        command: "bunx"
        args: ["robinhood-for-agents", "--mode", "web"]
    
  2. Restart the app and ask your agent to "log in to Robinhood"; approve once in the browser. Then prompt it: "show my portfolio".

Choosing a mode

Use standard mode unless you need something only web mode has. It is the surface Robinhood supports for agents: the 76 official tools, with Robinhood's own titles, descriptions, schemas, and annotations, each call relayed unchanged to agent.robinhood.com/mcp/trading. Orders reach your Agentic account only; other accounts are read-only. Web mode trades that for reach: it calls the web API robinhood.com itself uses, serves every brokerage account, and backs the client library, but Robinhood does not sanction it for agents.

25 tools exist only in standard mode, 8 only in web mode; the Mode column in Tools says which, and docs/MODES.md has the full comparison. To run both, register both entries, robinhood-for-agents and robinhood-web. Tool names match, so your agent tells them apart by entry; the credentials are separate.

Install

Prerequisites: Bun v1.3+ and a Robinhood account. Standard mode needs ROBINHOOD_TOKEN_KEY (the installer sets it), and its sign-in opens your browser with the macOS open command. Web mode needs Google Chrome for login (playwright-core, channel: "chrome"; no bundled browser, Brave/Chromium fallback, or BROWSER_PATH override).

Setup commands

bunx robinhood-for-agents install      # pick apps, register the server, copy the skill; -y takes every detected app, standard mode only
bunx robinhood-for-agents login        # web-mode Chrome login outside an MCP client
bunx robinhood-for-agents login --export   # also writes ./tokens.enc for Docker

install registers entries through the add-mcp library (supported apps: npx add-mcp list-agents) and copies the skill with the skills CLI. It overwrites existing robinhood-for-agents/robinhood-web entries and keeps the ROBINHOOD_TOKEN_KEY already in them.

From source

git clone https://github.com/kevin1chun/robinhood-for-agents.git
cd robinhood-for-agents
bun install
bun bin/robinhood-for-agents.ts   # standard mode; add --mode web for web mode

To register a checkout, pass "bun run /path/to/checkout/bin/robinhood-for-agents.ts" as the add-mcp target in the manual setup line.

What each client gets:

FeatureClaude CodeCodexOpenClawCursorAntigravityHermesOther MCP
MCP tools (both modes)YesYes—YesYesYesYes
Trading skillYesYesYesYesYes——
ClawHub install——Yes————
install setupYesYesYesYesYes—add-mcp list
Browser authYesYesYesYesYesYesYes

Sign in

  • Standard: ask your agent to run robinhood_official_login, then approve once in the browser it opens. The browser must reach the server's 127.0.0.1 callback. Until then, every standard-mode tool answers an error naming the login tool. The credential is stored as official-mcp.enc (AES-256-GCM under ROBINHOOD_TOKEN_KEY), never in the keychain.
  • Web: say "setup robinhood" or call robinhood_browser_login, then log in to Robinhood in Chrome with your credentials and MFA. The token capture is a passive network intercept that never touches the page. The session is cached in the OS keychain (or the encrypted file named by ROBINHOOD_TOKENS_FILE) and renews a day before expiry and on any 401; a long idle gap lapses it and needs a new login. robinhood_check_session probes the API and answers logged_in, expired, unknown, or not_authenticated.
  • Storage, rotation, and failure modes: docs/SECURITY.md. Mechanics: docs/ARCHITECTURE.md.

What you can do

"Buy 1 50-delta SPX call expiring tomorrow"

SPX options chain with greeks and order summary

The robinhood-for-agents skill (Claude Code and OpenClaw; clawhub install robinhood-for-agents from ClawHub) adds guided workflows. With Claude Code it drives whichever MCP entry you registered, so standard-only tools need robinhood-for-agents; standalone it uses the client library, which is web mode only.

DomainExample Triggers
Setup"setup robinhood", "connect to robinhood"
Portfolio"show my portfolio", "my holdings"
Research"research AAPL", "analyze TSLA"
Trading"buy 10 AAPL", "sell my position"
Options"show AAPL options", "SPX calls"

In skills/robinhood-for-agents/, SKILL.md routes to domain files (portfolio.md, trade.md, …) and the client-api.md reference, loaded on demand. More examples: docs/USE_CASES.md.

Tools

Names and input schemas are the official ones, prefixed robinhood_ (parity table). In standard mode each tool also carries Robinhood's title, description, output schema, and annotations verbatim from docs/official-mcp-tools.json. The hosted server's rate limit: measured here. Mode: standard or web = only in that mode; both = both modes.

ToolModeDescription
robinhood_browser_loginwebAuthenticate via Chrome browser
robinhood_check_sessionwebProbe the cached session: logged_in / expired / unknown / not_authenticated
robinhood_get_accountsbothList all brokerage accounts
robinhood_get_accountwebAccount details and profile
robinhood_get_portfoliobothPortfolio: positions, P&L, equity, cash, buying power
robinhood_get_equity_positionsbothRaw equity positions (shares, avg price)
robinhood_get_equity_tax_lotsbothOpen tax lots for one equity holding (cost basis, term, open date)
robinhood_get_equity_quotesbothStock quotes and fundamentals
robinhood_get_equity_fundamentalsbothFundamentals: float, shares outstanding, valuation, profile
robinhood_get_equity_historicalsbothOHLCV bars over a time range
robinhood_get_equity_technical_indicatorsbothRSI, MACD, Bollinger, moving averages, ATR, VWAP, … (computed)
robinhood_get_short_interestwebDaily short-interest estimate (% of float, with bounds)
robinhood_get_equity_price_bookbothLevel-2 price book (bid/ask depth)
robinhood_get_equity_tradabilitybothTradability flags (fractional, short-selling, per-account type)
robinhood_get_equity_newswebNews and analyst ratings
robinhood_get_earnings_resultsbothEarnings for a symbol (EPS estimate vs. actual)
robinhood_get_earnings_calendarbothMarket-wide earnings calendar for a day window
robinhood_searchbothSearch stocks/ETFs, crypto pairs, or indexes
robinhood_get_moverswebMarket movers and popular stocks
robinhood_get_market_hourswebMarket hours for a date: is it a trading day, when each session opens/closes
robinhood_get_indexesbothMarket index instruments (SPX, NDX, VIX, …) with ids
robinhood_get_index_quotesbothCurrent values for index instrument ids
robinhood_get_option_chainsbothOption chains for an underlying (expirations, chain ids)
robinhood_get_option_instrumentsbothOption contracts of a chain (filter by expiration, strike, type)
robinhood_get_option_quotesbothOption market data with greeks
robinhood_get_option_positionsbothPer-leg option positions
robinhood_get_option_ordersbothOption order history
robinhood_get_option_historicalsbothOHLC bars for option contracts
robinhood_get_crypto_quotesbothCrypto quotes
robinhood_get_crypto_positionsbothCrypto holdings
robinhood_get_crypto_historicalswebCrypto OHLCV history
robinhood_get_currency_pairsbothTradable crypto pairs
robinhood_review_equity_orderbothSimulate a stock order before placing (price-collar check, live quote)
robinhood_review_option_orderbothSimulate an option order before placing (per-leg data, collateral)
robinhood_preview_crypto_orderbothPreview a crypto order before placing (quote-based estimate)
robinhood_place_equity_orderbothPlace stock orders (market/limit/stop_market/stop_limit, incl. sell_short)
robinhood_place_option_orderbothPlace option orders (1–4 legs by option id)
robinhood_place_crypto_orderbothPlace crypto orders
robinhood_get_equity_ordersbothStock order history (filter by id, symbol, state)
robinhood_get_crypto_ordersbothCrypto order history (filter by id, symbol, state)
robinhood_cancel_equity_orderbothCancel a stock order
robinhood_cancel_option_orderbothCancel an option order
robinhood_cancel_crypto_orderbothCancel a crypto order
robinhood_get_watchlistsbothList your own watchlists (with list ids)
robinhood_get_watchlist_itemsbothItems of a watchlist (enriched with symbols)
robinhood_get_popular_watchlistsbothRobinhood-curated lists to follow
robinhood_get_option_watchlistbothYour options watchlist — single-leg option contracts
robinhood_create_watchlistbothCreate a new watchlist (confirm first)
robinhood_update_watchlistbothRename / re-describe a watchlist (confirm first)
robinhood_add_to_watchlistbothAdd symbols / indexes / crypto to a list (confirm first)
robinhood_remove_from_watchlistbothRemove items from a list (confirm first)
robinhood_follow_watchlistbothFollow a Robinhood-curated list (confirm first)
robinhood_unfollow_watchlistbothUnfollow a curated list (confirm first)
robinhood_add_option_to_watchlistbothAdd long single-leg option contracts to the options watchlist (confirm first)
robinhood_remove_option_from_watchlistbothRemove single-leg option contracts from the options watchlist (confirm first)
robinhood_get_scansbothList your saved scanners (screeners)
robinhood_get_scanner_filter_specsbothFilter vocabulary for building scans (RSI/MACD/fundamentals/…)
robinhood_get_realized_pnlbothRealized P&L over a window, bucketed (computed FIFO; equity + crypto)
robinhood_get_pnl_trade_historybothPer-trade realized P&L (computed FIFO; equity + crypto)
robinhood_official_loginstandardSign in to Robinhood's hosted MCP (browser)
robinhood_cancel_option_exercise, robinhood_create_alert, robinhood_create_scan, robinhood_delete_alert, robinhood_exercise_option, robinhood_get_alert_log, robinhood_get_alerts, robinhood_get_crypto_account_onboarding_info, robinhood_get_equity_analyst_ratings, robinhood_get_financials, robinhood_get_index_historicals, robinhood_get_limited_margin_upgrade_info, robinhood_get_option_level_upgrade_info, robinhood_get_politician_trades, robinhood_get_scanner_datapoints, robinhood_get_sec_filing, robinhood_get_sec_filing_facts, robinhood_get_sec_filing_facts_catalog, robinhood_get_sec_filing_index, robinhood_mark_alerts_read, robinhood_preview_scan, robinhood_run_scan, robinhood_update_alert, robinhood_update_scan_config, robinhood_update_scan_filtersstandardNo web endpoint: option exercise, alerts, scanner writes and datapoints, financials, SEC filings, politician trades, index historicals, onboarding and upgrade info

Placing orders

Both modes run review → confirm → place. robinhood_review_equity_order simulates the order (live quote plus Robinhood's price collar) and places nothing. Show the result, get explicit confirmation, then call robinhood_place_equity_order. The client-side checks below run in web mode only; standard mode relays the call for Robinhood to validate.

Side — buy, sell, or sell_short:

IntentSideNotes
Open / add to a longbuyFractional shares supported
Close a longsellOnly sells shares you hold
Open a shortsell_shortMargin-enabled account, whole shares only
Cover a shortbuyNo separate cover side exists

sell only closes a long; selling shares you don't hold fails with Not enough shares to sell. sell_short carries unlimited loss, so confirm the user meant a short. Shorts also need gfd and the regular or extended session, not the 24 Hour Market.

Trading session — market_hours defaults to regular_hours, as in the official tool:

ValueWindowExecutes
regular_hours09:30–16:00 ETAll order types
extended_hoursPre / post-marketLimit orders only
all_day_hours24 Hour Market (overnight)Limit orders only

An order tagged to the wrong session queues for the next open instead of executing, which looks like success. Name the session outside regular hours; robinhood_get_market_hours says which is live. See examples/short-selling.ts, trade.md, and docs/ARCHITECTURE.md.

Client library

import { RobinhoodClient } from "robinhood-for-agents";

const client = new RobinhoodClient();
await client.restoreSession();

const quotes = await client.getQuotes("AAPL");
const portfolio = await client.buildHoldings();

Web mode only; there is no client-library path to the hosted MCP. All 82 methods are async, and account-scoped ones take accountNumber. Reference, including EncryptedFileTokenStore and direct-accessToken construction: client-api.md.

Docker and headless

Without a keychain or browser, both modes keep their credential in an encrypted file under ROBINHOOD_TOKEN_KEY and sign in on the host.

  • Standard: official-mcp.enc lives beside ROBINHOOD_TOKENS_FILE, so mount the directory, not the file (docs/DOCKER.md).
  • Web: run bunx robinhood-for-agents login --export on the host. It exports ./tokens.enc, copies the key to the clipboard, and prints the env vars, including ROBINHOOD_MODE=web (docs/DOCKER.md).

Keep the mount read-write and use one process per token file: refresh tokens are single-use, and a failed write-back logs CRITICAL to stderr and strands the container on restart. Encryption stops casual disk access, not an agent with shell access that can read the key, so run only agents you trust (docs/SECURITY.md).

Safety

  • Fund transfers, bank operations, and bulk cancel are absent by design, not gated.
  • Every order is confirmed with the user; the skill enforces review → confirm → place.
  • Account, symbol, side, and order type are explicit; time_in_force and market_hours default to gfd and regular_hours, as in the official tools.
  • A short needs the explicit sell_short side, so a mis-parsed "sell" can never open one.
  • Order writes resolve the symbol by exact match, never a fuzzy search.
  • Standard-mode orders are relayed to Robinhood's hosted MCP and reach the Agentic account only.
  • The standard-mode credential lives only in an encrypted file; web-mode tokens live in the OS keychain or an AES-256-GCM file.
  • No real PII in this repo; examples use placeholders like "ACCOUNT_ID".
  • Risk matrix: docs/ACCESS_CONTROLS.md. Threat model: docs/SECURITY.md. Multi-agent identity and gateway auth: docs/AGENT-IDENTITY.md, docs/GATEWAY-AUTH.md.

Development

bun install
bun run typecheck              # tsc --noEmit
bun run check                  # Biome lint + format
npx vitest run                 # all tests — vitest, not `bun test`

Integration tests (read-only, real API, not in CI): bunx robinhood-for-agents login, then bun run test:integration. Design: docs/ARCHITECTURE.md. Adding tools and skills: docs/CONTRIBUTING.md.

Disclaimer

This project is not affiliated with, endorsed by, or sponsored by Robinhood Markets, Inc. "Robinhood" is a trademark of Robinhood Markets, Inc. This software interacts with Robinhood's services through publicly accessible interfaces but is an independent, third-party tool.

USE AT YOUR OWN RISK. This software enables AI agents to read data from and place orders on your Robinhood brokerage account. Automated and AI-assisted trading carries inherent risks, including but not limited to:

  • Unintended order execution due to AI misinterpretation
  • Financial losses from erroneous trades
  • Stale or inaccurate market data
  • Software bugs or unexpected behavior

You are solely responsible for all activity on your brokerage account, whether initiated manually or through this software. The authors and contributors assume no liability for any financial losses, damages, or other consequences arising from the use of this software. Review all AI-proposed actions before confirming, and never grant unsupervised trading authority to any automated system.

This software is provided "as is" without warranty of any kind. See LICENSE for full terms.

A note from the maintainer

I'm a solo developer. I built this for myself, I use it every day, and I keep it up to date so anyone else can share the joy of it. If it saves you time or makes trading more fun, a coffee helps me keep pace with changes to Robinhood's API and official MCP, and keep adding new tools:

A star on the repo helps too, and issues and pull requests are always welcome.

License

MIT — see LICENSE.

Frequently asked questions

What is robinhood-for-agents MCP Server?

AI-native Robinhood trading interface — MCP server + TypeScript client

How do I install robinhood-for-agents MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. robinhood-for-agents MCP Server runs locally from the npm package robinhood-for-agents with the command npx -y robinhood-for-agents@5.0.0.

Is robinhood-for-agents MCP Server free and open source?

Yes. robinhood-for-agents MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does robinhood-for-agents MCP Server support remote (HTTP) connections?

No remote endpoint is listed for robinhood-for-agents MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does robinhood-for-agents MCP Server provide?

robinhood-for-agents MCP Server provides 40 tools, including robinhood_browser_login, robinhood_check_session, robinhood_get_account, and robinhood_get_accounts. See the full tool list for descriptions and parameters.

How is robinhood-for-agents MCP Server's trust score calculated?

robinhood-for-agents MCP Server scores 53 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server