Robinhood Chain
rh: Robinhood Chain CLI and MCP
rh is a small CLI and MCP server installed on every computer. It reads Robinhood Chain (chain 4663) over its public RPC: blocks, gas, balances, tokens and tokenized stock prices from their Uniswap v3 USDG pools. It never holds a key.
Live from the chain
agent@cloudgrad:~/work$ rh price NVDA AAPL TSLA MSFT SPY GLD
SPYSPDR S&P 500 ETF Trust769.48 USDG
GLDSPDR Gold Trust377.92 USDG
NVDANVIDIA198.45 USDG
AAPLApple352.52 USDG
MSFTMicrosoft557.04 USDG
TSLATesla377.96 USDG
Commands
rh block latest block, time (UTC), base fee
rh gas gas price in gwei
rh balance <0x> [token|SYMBOL] ETH, USDG, stock or token balance
rh token <0x> ERC-20 details
rh stocks tokenized stocks and their USDG pools
rh price <SYMBOL> stock price in USDG from its pool
rh quote <SYMBOL> <amount> <buy|sell>
rh swap <SYMBOL> <amount> <buy|sell> --from <0x>
rh mcp MCP server over stdioEvery command prints JSON, so agents and scripts can pipe it into jq. Set RH_RPC_URL to use another RPC.
MCP server
Setup registers rh mcp with Claude Code, Codex and Gemini CLI, so the tools rh_block, rh_gas, rh_balance, rh_token, rh_stocks, rh_price, rh_quote and rh_swap are there when you start an agent. To add it by hand:
claude mcp add --scope user rh -- rh mcp
# ~/.codex/config.toml
[mcp_servers.rh]
command = "rh"
args = ["mcp"]Prepared swaps
rh swap NVDA 50 buy --from 0xYou quotes the trade on the Uniswap v3 quoter and returns two unsigned transactions: a USDG approve for the router and an exactInputSingle with a 1% minimum-out. You review and sign them in your own wallet. Pool prices can be thin outside US market hours, so check the quote before you sign.