Connect to Robinhood Agentic Trading via MCP. This skill lets OpenClaw access your Robinhood Agentic account — view portfolio, analyze positions, place trades, and execute automated strategies.
The MCP client ( rh-client.mjs) handles OAuth 2.1 PKCE authentication to https://agent.robinhood.com/mcp/trading and manages token storage/refresh automatically.
text
cd robinhood-agentic
pnpm install
text
node rh-client.mjs auth
The script will:
http://localhost:1455/callback?code=XXXX....rh-tokens.json (gitignored, mode 0600)All commands output to stdout. Errors and status messages go to stderr.
text
node rh-client.mjs status
Returns a JSON object with authenticated, expired, expiresAt, hasRefreshToken, and savedAt.
text
node rh-client.mjs list-tools
Returns a JSON array of tool definitions with names, descriptions, and input schemas.
text
node rh-client.mjs call <tool_name> '<json_args>'
# Or with stdin for complex args:
echo '{"symbol": "AAPL"}' | node rh-client.mjs call get_equity_quotes -
Output depends on the MCP tool response — may be plain text or JSON. Error messages go to stderr.
Token refresh happens automatically when the access token is within 5 minutes of expiry (only if a refresh token is available). No manual intervention needed unless the refresh token itself expires.
After auth, OpenClaw can call any tool Robinhood exposes through the MCP server. Based on official docs, the available tools are:
Read-only tools (portfolio, positions, quotes, etc.) work on all your Robinhood accounts. Trading tools (place/cancel orders) are restricted to the dedicated Agentic account — fund it separately.
ToolDescriptionget_accountsView all Robinhood accountsget_portfolioPortfolio snapshot — total value, asset class breakdown, buying powerget_equity_positionsOpen equity positions with quantity and cost basis
ToolDescriptionget_equity_quotesReal-time quotes + prior close for up to 20 symbolssearchFind ticker by company nameget_equity_tradabilityCheck if a symbol can be traded (including fractional)
ToolDescriptionreview_equity_orderSimulate an order and get pre-trade warningsplace_equity_orderPlace an equity ordercancel_equity_orderCancel an open equity orderget_equity_ordersView equity order history
Use list-tools after auth to discover the exact API surface — Robinhood is actively adding more tools.
For the latest tool list, see Robinhood's official docs.
.rh-tokens.json with restrictive 0600 permissions (gitignored, never committed)place_equity_order sends the order directly with no app-side confirmation prompt. The only preview is the review_equity_order MCP call — use it before placing.review_equity_order tool is the only pre-trade check (returns quote + alerts); place_equity_order skips any app-side prompt entirely.