Skip to main content
Glama
arcus-agent-gateway

arcus-agent-gateway

arcus-agent-gateway

CI PyPI PyPI downloads MCP Catalog License: MIT Python 3.11+

Robinhood Chain (Arcus) carries 194 tokenized US equities on-chain, and its public API answers questions most people don't think to ask: who actually holds AAPL, what a wallet's stock portfolio looks like, which way the whales moved NVDA today. This MCP server hands all of that to an AI agent. Read-only, keyless, no writes; every tool is a GET against api.robinhood.com/rhj plus two public on-chain sources, cached and rate-limited so an enthusiastic agent can't hammer the upstream.

Use cases

Ask it who holds AAPL and you get the top holder addresses with their share of total supply, flagged contract or wallet. One holder contract turns out to sit on 35% of NVDA; that is the kind of concentration risk a quote page will never show you.

wallet_holdings reads any address across all 194 equities and values the positions it has fresh quotes for. transfer_history walks recent ERC-20 Transfers with a min_value filter, which is how you catch the large prints instead of the dust.

Prices are the trap here, so they ship split-safe: raw and multiplier-adjusted values travel together on every quote, and a pending split (NVDA queues a 4.0 multiplier for 2026-11) comes with a warning and the effective time. A morning scan of market health, halted tokens and 13-sector averages costs two cheap calls.

Full walkthroughs with real outputs: examples/use-cases.md.

Related MCP server: hoodr MCP Server

Quickstart

Claude Code:

claude mcp add arcus -- uvx arcus-agent-gateway

Run over stdio (the default, for local agents):

uvx arcus-agent-gateway

Standard config for Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json):

{
  "mcpServers": {
    "arcus": {
      "command": "uvx",
      "args": ["arcus-agent-gateway"]
    }
  }
}
[mcp_servers.arcus]
command = "uvx"
args = ["arcus-agent-gateway"]
# 1) start the gateway (keep it running)
uvx arcus-agent-gateway --http --port 8902 &

# 2) register it (merges into ~/.zcode/cli/config.json; workspace .zcode/config.json works too)
python3 - <<'PY'
import json, os
p = os.path.expanduser("~/.zcode/cli/config.json")
os.makedirs(os.path.dirname(p), exist_ok=True)
cfg = json.load(open(p)) if os.path.exists(p) else {}
cfg.setdefault("mcp", {}).setdefault("servers", {})["arcus"] = {
    "type": "http", "url": "http://127.0.0.1:8902/mcp"}
json.dump(cfg, open(p, "w"), indent=2)
print("arcus MCP server registered:", p)
PY

# 3) copy the agent skill (tool guide + watchlist cron recipe)
git clone -q --depth 1 https://github.com/alekskram/arcus-agent-gateway /tmp/aag
cp -r /tmp/aag/.agents/skills/arcus-gateway ~/.zcode/skills/ && rm -rf /tmp/aag
echo "ZCode setup done, restart your session and call any arcus tool"

Hosted form, streamable HTTP on port 8902:

uvx arcus-agent-gateway --http               # 127.0.0.1:8902
curl http://127.0.0.1:8902/health            # -> {"ok": true, "service": "arcus-agent-gateway"}

Tools

All 13 tools are read-only (annotated readOnlyHint: true). Names and parameters are exactly as registered by arcus_mcp/server.py.

#

Tool

Signature

What it does

1

token_list

token_list(status="ACTIVE", limit=100)

Tokenized equities, one row per token (symbol, name, status, multiplier, tradable); status filters the ASSET_STATUS_* prefix, 'ALL' disables. Start here for valid symbols.

2

quote

quote(symbol)

Live quote joined with asset metadata: raw + multiplier-adjusted bid/ask/spread, is_halted, trading capabilities, multiplier block. Unknown symbol raises with a pointer to token_list().

3

quotes

quotes(symbols)

Batch of quote() rows, max 20 per call (more raises). Unknown symbols land in errors without failing the batch. Requests run in parallel (semaphore 8); 10 cold symbols take 0.6-1 s instead of ~3 s.

4

token_detail

token_detail(symbol)

Full dossier: contract/chain/ISIN metadata, embedded quote, last 5 corporate actions, multiplier block with history note, warnings (pending split).

5

market_status

market_status()

Market-wide health from assets only (never fetches 194 prices): totals, untradable count, cached-halted list, extended-hours estimate.

6

corporate_actions

corporate_actions(symbol=None, limit=10)

Splits/dividends across all tokens or for one symbol; tolerant to the API's field-name variants.

7

search

search(query, limit=10)

Local fuzzy search over the token list; apple → AAPL; top limit (cap 50) with scores and sectors.

8

sector_view

sector_view(warm=False, sector=None)

13-sector static map with sizes and multiplier-adjusted sector averages. Default (warm=False): caches only, zero requests, warmed: false. warm=True, sector="...": fans out fresh quotes for that sector only and reports requests_made.

9

onchain_info

onchain_info(symbol)

On-chain footprint joined from three independent sources (each fails to a warnings[] entry, never silently): contract address, chain id (4663, Robinhood Chain), network, decimals, ISIN (REST) + total_supply via totalSupply() eth_call (source rpc) + holders_count, circulating_market_cap (source explorer). supply_crosscheck compares the REST-implied cap (total_supply × multiplier × mid) with the explorer's; >1% divergence → warning. Per-field source tags on every derived value.

10

price_history

price_history(symbol, timeframe="daily", limit=90)

OHLCV history from the optional recorder's local parquet store (see below). Honest degradation: missing pyarrow or data → actionable error dict, never a silent empty list.

11

holder_snapshot

holder_snapshot(symbol, limit=20)

Top holders of a token's contract from the Blockscout explorer (one page, max 50 rows, 600 s cache). Rows: address, value (float token units), share_pct = value / total_supply × 100, is_contract. total_supply from the RPC with an explorer fallback (source-tagged); no supply at all → share_pct: null + warning. Errors → error dict with kind + hint.

12

wallet_holdings

wallet_holdings(address)

Which of the 194 tokenized equities a wallet holds (explorer token-balances ∩ assets() universe). Rows: symbol, name, value (float token units). est_position_usd / portfolio_usd_total computed ONLY from quotes already in the price cache (no fan-out); missing/stale quotes → null estimates + explanatory note. Cached 120 s.

13

transfer_history

transfer_history(symbol, limit=25, min_value=None)

Recent ERC-20 Transfer events from the public RPC's adaptive walk-back (windows start 48 blocks wide, shrink 48→32→16→8 on archive 403s, ≤14 getLogs requests — (see On-chain sources & limits)). Rows (newest first): ts (ISO, from the log's own blockTimestamp), from, to, value (float), tx_hash, block. min_value filters in token units; window exhausted with 0 logs → explicit note pointing at the explorer. Cached 60 s.

—

watchlist

—

Not a tool. Price tracking is done by your agent's scheduler (cron) calling quotes() on an interval — (see .agents/skills/arcus-gateway/SKILL.md).

Multiplier logic (read this before using prices)

Robinhood Chain tokens carry a multiplier, the corporate-action adjustment factor for the token contract (1.0 = untouched). Splits change it; for example NVDA's 2026-11 split queues pendingMultiplier: "4.0".

  • The REST API returns RAW prices. bid/ask from /prices/{symbol} are in token-contract units and are not multiplier-adjusted.

  • Adjusted values are computed by this server, never taken from upstream: price_adjusted = round(price_raw × currentMultiplier, 6).

  • Raw and adjusted always travel together. Every quote carries bid_raw/ask_raw/spread_raw and bid_adjusted/ask_adjusted/ mid_adjusted next to the multiplier block, never one without the other.

  • On-chain quantities (token balances, mint/burn volumes) are natively in adjusted (multiplied) units; REST prices are not. If you compare the two, go through the *_adjusted fields.

Worked example (live fixture, 2026-09-03):

AAPL   currentMultiplier = 1.000566080061092436
       bid_raw   = 327.77   →  bid_adjusted = round(327.77 × 1.000566…, 6) = 327.955544
       ask_raw   = 327.78   →  ask_adjusted = 327.965550
       mid                      mid_adjusted = 327.960547

Pending split warning. When pendingMultiplier is queued (non-empty) and differs from the current one, token_detail() adds a warning like pending split: 1→4.0 on 2026-11-06T00:00:00Z, and quote()'s multiplier block exposes pending + effective_time. After the split lands, raw prices jump by the ratio while *_adjusted fields stay comparable, another reason to always read adjusted values next to the multiplier.

Why a gateway and not the raw API?

api.robinhood.com/rhj + the public RPC are open, and every agent hitting them directly rediscovers the same traps:

Raw sources give you

You would have to build

RAW, non-multiplier-adjusted prices (bid/ask in contract units)

the multiplier math, raw/adjusted pairs on every quote, pending-split detection with effective times

no price history endpoint at all

a recorder (opt-in here): 5-min snapshots → parquet → idempotent daily OHLCV rollup

60 req/s upstream limit

a polite rate-limited client (≤50 req/s), per-endpoint caches, parallel batched quotes

RPC archive window that 403s outside ~45–60 blocks behind head

adaptive walk-back (48→32→16→8 block windows, ≤14 getLogs)

a Blockscout explorer behind a Cloudflare UA check, 40 s hangs on contract wallets

browser UA, timeouts, honest error/warnings[] degradation, never a silent empty list

API limits & caching

  • Upstream allows 60 req/s without a key; this client self-limits to ≤ 50 req/s (a 20 ms politeness interval between requests, thread-safe).

  • Transient failures (429/502/503/504, network errors) are retried up to 3 times with 2s × (attempt+1) backoff.

  • Response caches (per process): /assets 5 min, /prices/{symbol} 15 s, /corporate-actions 1 h. market_status() and sector_view() are computed from caches and assets only; they never fan out 194 price requests.

On-chain sources & limits

The v0.2 on-chain tools read two keyless public sources next to the REST API. Both are free, rate-limited and partially restricted. Every tool above degrades honestly (per-field omission + warnings[] / error dicts), never with a silent empty answer.

  • Public JSON-RPC (default robinhood-rpc.publicnode.com, override with ARCUS_RPC_URL): eth_call (e.g. totalSupply()) works normally. eth_getLogs only answers inside a floating ~45–60-block window behind the latest block; wider or older ranges get HTTP 403 "Archive requests require a personal token" (the backend is Alchemy). The window drifts minute to minute, so transfer_history() walks back in windows that start 48 blocks wide and shrink 48→32→16→8 on each 403, capped at ~14 getLogs requests. eth_getLogs log objects carry blockTimestamp directly, so no per-block lookups are needed.

  • Fallback RPC (robinhood.drpc.org, ARCUS_RPC_FALLBACK_URL): has no eth_getLogs and no eth_call (JSON-RPC "method not available"); it is used only for eth_chainId / eth_blockNumber.

  • Blockscout v2 explorer (robinhoodchain.blockscout.com/api/v2, ARCUS_EXPLORER_URL): requires a browser User-Agent on every request, and since Sep 2026 also passes Cloudflare's TLS-fingerprint bot management, so a plain client gets 403 even with browser headers. The gateway retries every Cloudflare 403 once with curl_cffi Chrome impersonation when the optional extra is installed: pip install "arcus-agent-gateway[browser]". Without it, the two explorer-backed tools (holder_snapshot, wallet_holdings) return an honest cloudflare error with this exact hint; everything else keeps working. Token pages (holders_count, circulating_market_cap, total_supply), one holders page (max 50 rows, no pagination loops) and address token-balances come from here, cached 600 s. token-balances answers in ~0.5 s on plain wallets but hangs 40 s+ on huge contract addresses, and the client fails honestly after 15 s with kind explorer-timeout.

  • On-chain activity ≠ trades. The chain records Transfer, mint and redeem events between addresses; it knows nothing about order-book trades or prices. Use quote()/quotes() for prices and transfer_history() for token movement.

Raw prices disclaimer

Prices are served exactly as they arrive from Robinhood (RAW); they are not multiplier-adjusted, and the *_adjusted fields are our computation, not upstream data. All data is for information only, not for trading decisions, and should be verified against the official source before you act on it. No warranty of completeness, accuracy or timeliness.

Optional price history recorder

The Robinhood Chain REST API has no price history endpoint, only current quotes. For the 194 tokenized equities this recorder is the only history source. It is opt-in and disabled by default; nothing is recorded unless you explicitly enable it.

How it works. One tick every 5 minutes (default): fetch a quote for every ACTIVE tradable token through the same rate-limited client (50 req/s cap; average load ≈ 0.65 req/s), append one row per symbol to data/history/snapshots_YYYYMM.parquet (monthly rotation), and maintain a daily OHLCV rollup data/history/daily.parquet (open/high/low/close on mid_adjusted, volume = max of the day's cumulative daily_volume). The rollup runs at the first tick after midnight UTC for the previous day and is idempotent (re-running a day overwrites it, never duplicates).

Enable it:

pip install "arcus-agent-gateway[recorder]"   # adds pyarrow (optional extra)
# systemd (recommended): units ship DISABLED - enabling is your decision
sudo cp deploy/arcus-recorder.* /etc/systemd/system/
sudo systemctl enable --now arcus-recorder.timer   # OnCalendar=*:0/5, Persistent
# or run one tick / a debug loop manually:
python -m arcus_mcp.recorder --once
python -m arcus_mcp.recorder --limit 5            # debug: first 5 symbols only
ARCUS_INTERVAL_SEC=60 python -m arcus_mcp.recorder  # custom interval loop
# (from a git checkout, `python scripts/recorder.py ...` still works -
#  it is a thin shim that delegates to arcus_mcp.recorder)

Data weight & rotation. Full universe (194 symbols) at a 5-minute tick ≈ 2–3 MB/day of snapshots plus ≈ 10 KB/day for the daily rollup. Snapshots rotate monthly (snapshots_YYYYMM.parquet); delete old months when you no longer need raw granularity. daily.parquet is the compact long-term store. Data lands in ~/.local/state/arcus-agent-gateway/history/ (override with ARCUS_GATEWAY_DATA).

Reading it back: the price_history tool serves daily bars and raw snapshots from the same directory. Without pyarrow or data it returns an actionable error pointing here: install the [recorder] extra, never a silent empty answer.

Security & privacy

  • Keyless and read-only. No API keys, no auth, no writes. Every tool is annotated readOnlyHint: true / destructiveHint: false on the MCP wire.

  • Rate-limited by design. Client caps at 50 req/s against the public REST surface, public RPC requests go through the same limiter, Blockscout calls carry a standard browser User-Agent and their own timeouts.

  • No telemetry, no logging of your prompts. The server caches public market data in memory (and parquet files only if you enable the optional recorder); nothing leaves your machine except the API reads themselves.

Part of the suite

Four sibling read-only MCP gateways, one style: keyless, cached, honest degradation.

Gateway

Focus

dydx-agent-gateway

dYdX v4: verified trader PnL, funding/OI anomaly detectors, leaderboard

arcus-agent-gateway (you are here)

194 tokenized US equities on Robinhood Chain: quotes, holders, whale transfers

hyperliquid-agent-gateway

Hyperliquid: 233 perps + spot, funding carry, account risk, HyperEVM

aster-agent-gateway

Aster DEX: ~580 futures incl. 24/7 TradFi perps, funding caps/floors

All four are on glama.ai and PyPI; any of them installs with uvx <name>.

License

MIT, see LICENSE. Not affiliated with Robinhood Markets, Inc.

Available Tools

13 tools
corporate_actionsCorporate ActionsA
Read-only

Corporate actions (splits, dividends) across all tokens, or filtered to one symbol. Each row: symbol, type, status, process_date, details {old_rate, new_rate} (floats when the source carries rate fields) and raw (the original record, untouched). Tolerant to the API's field-name variants. Example: corporate_actions(symbol="AAPL", limit=5)

Inputs: limit, symbol. Returns: object

holder_snapshotHolder SnapshotA
Read-only

Top holders of a token's contract from the explorer (one page, max 50 rows, cached 600s inside the explorer client). Each row: address, value (float token units, raw/1e18), share_pct (= value / total_supply * 100) and is_contract. total_supply comes from the RPC totalSupply() call, falling back to the explorer's own token row when the RPC is unavailable (source-tagged either way). Explorer/RPC failures return an error dict with kind + hint, never a silent empty list. Example: holder_snapshot(symbol="AAPL", limit=10)

Inputs: symbol (required), limit. Returns: object

market_statusMarket StatusA
Read-only

Market-wide health from assets() only - never fetches 194 prices. total_tokens, active (ASSET_STATUS_ACTIVE), untradable (fractional untradable among active), halted (only tokens whose quote is ALREADY in the price cache - opportunistic; call quotes() on suspect symbols for a real halt scan), extended_hours_open and market_hours_status. Example: market_status()

Inputs: no named parameters. Returns: object

onchain_infoOnchain InfoA
Read-only

On-chain footprint of a token, joined from three independent sources (each fails to a warning, never silently):

  • REST metadata: contract, chain_id, network, decimals, isin

  • RPC (publicnode eth_call): total_supply = totalSupply()/1e18

  • explorer (Blockscout): holders_count, circulating_market_cap

supply_crosscheck compares the REST-implied capitalization (total_supply * multiplier * quote mid) with the explorer's circulating_market_cap; a >1% divergence lands in warnings[] (both values still returned). Every derived field carries a per-field "source" tag ("rpc" | "explorer" | "rest"). Example: onchain_info(symbol="AAPL")

Inputs: symbol (required). Returns: object

price_historyPrice HistoryA
Read-only

Historical prices recorded by the OPTIONAL local recorder (arcus_mcp/recorder.py since 0.2.1) - not a live API call. timeframe='daily': OHLCV bars from history/daily.parquet (open/high/low/close are multiplier-adjusted); timeframe='raw': every recorded snapshot (bid/ask raw, mid_adjusted, multiplier, is_halted) from history/snapshots_*.parquet. Rows are newest-first. The symbol is NOT checked against token_list (the recorder writes the whole universe; assets drift) - a symbol simply absent from the file returns count 0. Degrades honestly instead of raising when the optional pieces are missing: pyarrow absent -> error suggesting 'pip install arcus-agent-gateway[recorder]'; recorder never run / no data yet -> error pointing at README § Optional price history recorder. limit must be positive (daily capped at 200, raw at 500). Example: price_history(symbol='AAPL', timeframe='daily', limit=30)

Inputs: symbol (required), limit, timeframe. Returns: object

quoteQuoteA
Read-only

One token's live quote joined with its asset metadata: bid/ask/spread raw, multiplier-adjusted (bid_adjusted, ask_adjusted, mid_adjusted - always read them next to multiplier), daily_volume, is_halted, trading_capabilities {fractional, all_day, extended_hours}, multiplier {current, pending (None while nothing is queued), effective_time} and generated_at. Unknown symbol raises an error (MCP isError) - call token_list() for the valid set. A token with no current quote returns metadata with bid/ask None and a note. Example: quote(symbol="AAPL")

Inputs: symbol (required). Returns: object

quotesQuotesA
Read-only

Batch of quote() rows, up to 20 per call (more raises), fetched in PARALLEL (v0.1.1): 8 quote() calls in flight at once, so 10 cold symbols complete in roughly one RTT instead of ten. Unknown symbols do not fail the batch - they land in errors: [{symbol, reason}] while the rest return normally, and the output order matches the input order. Example: quotes(symbols=["AAPL", "MSFT", "NVDA"])

Inputs: symbols (required). Returns: object

sector_viewSector ViewA
Read-only

Sector map (13 sectors, static validated classification) with per-sector size and live averages.

warm=False (default): cheap snapshot - averages appear only for quotes ALREADY cached ('warmed': false; no requests made). warm=True: fan out quotes() first (parallel batches of 20, upstream rate-limit safe), then report - averages are live. With sector= 'Name' only that sector is fetched and returned; an unknown name raises with the valid list. requests_made counts the price-cache misses at the start of the warm pass (each miss = one upstream request; fresh cache hits and cached-again symbols cost nothing). Example: sector_view(warm=True, sector="Crypto/Digital Assets")

Inputs: warm, sector. Returns: object

token_detailToken DetailA
Read-only

Full dossier for one token: metadata (contract, chain 4663, decimals, isin, logo), its quote() view, the last 5 corporate actions, the multiplier block with history_note, trading capabilities (normalized + raw market/extended/overnight statuses) and warnings - a pending multiplier change surfaces as 'pending split: 1->X on DATE'. Unknown symbol raises an error (MCP isError). Example: token_detail(symbol="AAPL")

Inputs: symbol (required). Returns: object

token_listToken ListA
Read-only

Tokenized equities on Robinhood Chain, one row per token: symbol, name, status, multiplier (float) and tradable (market whole AND fractional tradable). status filters on the ASSET_STATUS_* prefix - pass 'ACTIVE' (default, hides inactive) or another status short name; 'ALL' disables filtering. Alphabetical, capped at limit. Returns {"count", "total_matching", "tokens"}. Start here for valid symbols; feed them into quote/token_detail. Example: token_list(status="ACTIVE", limit=50)

Inputs: limit, status. Returns: object

transfer_historyTransfer HistoryA
Read-only

Recent ERC-20 Transfer events for a token's contract, from the public RPC's adaptive walk-back over the last ~800 blocks (windows start 48 blocks wide and shrink 48->32->16->8 on archive-403s, ~14 getLogs requests max - the free RPC only serves a floating ~45-60-block window). Rows (newest first): ts (ISO-8601 from the log's own blockTimestamp), from, to, value (float token units), tx_hash, block. min_value filters in token units AFTER normalization. Results cached 60s. The note is honest about why the walk stopped: 'window-closed' points at the explorer transfer list for older history, 'budget' says the request cap was hit. Example: transfer_history(symbol="AAPL", limit=10, min_value=1.0)

Inputs: symbol (required), limit, min_value. Returns: object

wallet_holdingsWallet HoldingsA
Read-only

Which tokenized equities (out of the assets() universe) a wallet holds, from the explorer's address token-balances. The universe join is case-insensitive on the contract address; rows: symbol, name, value (float token units, raw/1e18). est_position_usd and portfolio_usd_total are computed ONLY from quotes already in the price cache (no quote fan-out); when quotes are missing or stale a note says so instead of faking numbers. Results cached 120s. Example: wallet_holdings( address="0x8366a39CC670B4001A1121B8F6A443A643e40951")

Inputs: address (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct resource or operation: quote vs quotes is singular/batch, token_detail is a composite dossier, search vs token_list differ by fuzzy vs filtered listing, and the on-chain tools (onchain_info, holder_snapshot, transfer_history) are clearly partitioned. No two tools appear to be interchangeable.

    Naming Consistency4/5

    Tool names are all lowercase snake_case and mostly noun-phrase resource names (token_list, sector_view, price_history), with search as the only verb. The convention is predictable and consistent, though it does not follow a strict verb_noun pattern.

    Tool Count5/5

    13 tools is well within the appropriate range for a market-data/on-chain gateway; each tool represents a distinct query surface and none feels redundant or bolted on.

    Completeness4/5

    The surface covers token discovery, quotes, detailed metadata, corporate actions, price history, sector aggregation, wallet positions, and on-chain analytics—strong coverage for a read-only gateway. Minor limitations like recent-only transfer history and optional price-history recording prevent a perfect score, but agents can work around them.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to read Robinhood Chain stock-token positions, quote swaps, and execute swaps through the Model Context Protocol, bridging on-chain assets that Robinhood's own off-chain MCP cannot reach.
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to trade tokenized stocks (e.g., NVDA, TSLA) on Robinhood Chain via MCP, with non-custodial keys and spending caps.
      6 npm
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      MCP server for HoodGrow's Robinhood Chain stock token API, exposing live prices, corporate-action adjusted supply, DeFi depth, and corporate actions as tools. Enables users to query token data and corporate actions through natural language in any MCP client.
      14
      88 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Exposes tokenized-stock market data, screeners, backtests and AI-generated strategy plans on Robinhood Chain. Free tools need no setup, while paid tools settle per call in USDG via x402 from a caller-supplied wallet with built-in spend caps.
      11
      MIT