hoodr MCP Server
Enables AI agents to trade tokenized stocks (e.g., NVDA, TSLA) on Robinhood Chain via MCP, with non-custodial keys and spending caps.
README
<div align="center">
hoodr
The open-source agent for trading tokenized stocks on-chain.
Spot & perpetuals on Robinhood Chain — from your terminal, from any AI chat, or as a hosted service. Non-custodial by design: your keys stay on your machine (or in your own Turnkey session), encrypted, never sent to a model.
Quick start · Commands · AI chat · Hosting · Architecture
</div>
npm i -g @hoodrhq/cli # or: npx @hoodrhq/cli
Why hoodr
- Trade real assets, not memecoins — tokenized NVDA, TSLA, GOOGL, SPY, QQQ and more, priced on-chain.
- Non-custodial — a local encrypted keystore, or per-user Turnkey delegated sessions. hoodr never holds your funds.
- Hard spending caps — enforced in code (and in-enclave for hosted mode); a misbehaving script or model can't exceed them.
- Drive it however you like — deterministic CLI, background automation daemon, local MCP, or a hosted remote-MCP + REST/OpenAPI server that any AI chat can call.
Quick start
hoodr wallet new # create an encrypted local wallet
hoodr balance # ETH + stock positions
hoodr quote buy NVDA 0.05 # preview a trade (read-only, no wallet needed)
hoodr buy NVDA 0.05 # spend 0.05 ETH on NVDA
hoodr sell NVDA 50% # sell half your NVDA back to ETH
Supported stocks today: NVDA, TSLA, GOOGL (or pass any tokenized-stock 0x address).
Every trade routes through the on-chain StockRouter (ETH ↔ USDG ↔ stock) over the deep 0.3% USDG pools.
Commands
| Command | What it does |
|---|---|
hoodr wallet new [--import <key>] |
Create/import an encrypted wallet (~/.hoodr/keystore.json) |
hoodr wallet address |
Show your address |
hoodr wallet export |
Reveal the private key (asks to confirm) |
hoodr balance [--address 0x…] |
ETH + stock balances |
hoodr quote <buy|sell> <TICKER> <amount> |
Read-only price preview |
hoodr buy <TICKER> <ethAmount|$usd> |
Buy a stock (amount in ETH or USD, e.g. $50) |
hoodr sell <TICKER> <amount|NN%> |
Sell a stock for ETH |
hoodr send <ETH|TICKER> <amount> <to> |
Send ETH or a stock to an address |
hoodr usdg <ethAmount|$usd> |
Swap ETH → USDG (perp collateral) |
hoodr positions [--address 0x…] |
List open perp positions |
hoodr long <TICKER> --lev 3 --margin 50 |
Open a leveraged long (USDG collateral) |
hoodr short <TICKER> --lev 3 --margin 50 |
Open a leveraged short |
hoodr close <id> |
Close a perp position |
hoodr dca <TICKER> <$usd> --every 1d |
Schedule a recurring buy |
hoodr limit <buy|sell> <TICKER> --at <usd> … |
Schedule a limit order |
hoodr stop <TICKER> --at <usd> --amount <n|NN%> |
Schedule a stop-loss |
hoodr jobs / hoodr jobs rm <id> |
List / remove scheduled jobs |
hoodr daemon |
Run the automation loop (executes the above) |
hoodr mcp |
Run as an MCP server so an AI client can drive hoodr |
Global flags: --json (machine output), -y/--yes (skip confirmations), --slippage <bps>.
Amounts for buy / usdg / send ETH accept ETH (0.05) or USD ($50 / 50usd) — USD converts on-chain via the WETH/USDG pool. balance shows live USD values.
Perp markets: NVDA, TSLA, AAPL, AMZN, GOOGL, META, MSFT, COIN, PLTR, AMD, INTC, MU, ORCL, CRCL, CRWV, QQQ, SPY, SLV. Perps settle in USDG collateral.
Automation (recurring, limit, stop)
Schedule orders, then run the daemon to execute them — all local, using your key, capped:
hoodr dca NVDA $50 --every 1d # buy $50 of NVDA daily
hoodr limit buy TSLA --at 240 --usd 100 # buy $100 when TSLA ≤ $240
hoodr limit sell NVDA --at 250 --amount 50% # sell half when NVDA ≥ $250
hoodr stop NVDA --at 180 --amount 100% # stop-loss: sell all if NVDA ≤ $180
hoodr jobs # list scheduled jobs
hoodr daemon # run the loop (Ctrl-C to stop)
Jobs live in ~/.hoodr/jobs.json; the daemon re-reads them each poll, so you can add/remove while it runs. Triggers are one-shot; DCAs repeat. Every fill goes through the same spending caps. An AI (via MCP) can schedule these too — but a local hoodr daemon must be running to execute them.
Drive it from any AI chat
Local — hoodr mcp exposes every command as MCP tools for Claude Desktop, Claude Code, Cursor, or any MCP host; the key stays on your machine. Point the assistant at SKILL.md and talk:
"read the hoodr skill — what's my balance? Quote 0.05 ETH into NVDA and buy it if it looks good."
Setup: docs/SETUP.md.
Hosted (any chat) — hoodr serve runs one server exposing remote MCP (/mcp) and a REST + OpenAPI surface (/api/*, /openapi.json) behind a bearer token. That covers every way chats call tools: MCP connectors (Claude, ChatGPT, Cursor), custom GPT Actions (OpenAPI), and code-execution chats (Grok etc. curl the REST API). Same tool code, same caps, key stays on the server.
export HOODR_PRIVATE_KEY=0x… HOODR_API_TOKEN=$(openssl rand -hex 24)
hoodr serve --port 8790
Multi-tenant — set HOODR_MULTI_TENANT=1 and one server signs for many users, each via their own non-custodial Turnkey delegated session (the server holds no root, no funds). Enroll users with hoodr tenants add … → each gets a Bearer token that maps to their capped session.
Per-platform connect steps, the multi-tenant flow, and security in docs/HOSTED.md.
Spending limits (the safety leash)
Every trade is capped, enforced in code — a misbehaving script or AI cannot exceed them:
HOODR_MAX_TRADE_ETH=0.5 # max ETH per buy/send
HOODR_DAILY_CAP_ETH=2 # max ETH per UTC day
HOODR_MAX_MARGIN_USD=100 # max USDG margin per perp
Headless / AI-agent mode
The CLI is built to be driven by scripts and AI agents. Run it non-interactively:
export HOODR_PRIVATE_KEY=0x… # sign from an env key (use a scoped/burner key!)
export HOODR_JSON=1 # JSON on stdout
export HOODR_YES=1 # no prompts
hoodr buy NVDA 0.05
# → {"ok":true,"action":"buy","stock":"NVDA","tx":"0x…","explorer":"https://…"}
Or keep the encrypted keystore and just supply its password: HOODR_KEYSTORE_PASSWORD=….
Safety
- Private key is AES-256-GCM encrypted at rest, decrypted only at signing time, never transmitted.
- Every mutating command confirms first (bypass with
--yes) and enforces on-chainminOutslippage. - For agent use, prefer a burner/scoped key with limited funds — treat any AI that can call
buy/sellas able to spend the whole balance.
Config
All optional; Robinhood Chain mainnet defaults are baked in. See .env.example.
Development
npm install
npm run dev -- balance # run the CLI from source (tsx)
npm test # unit tests (node:test) — pure logic, no network
npm run typecheck && npm run build
Tests cover the deterministic paths (stock/market resolution, keystore round-trip, spending-cap ledger, perp sizing, USD parsing). Trading paths are exercised against live mainnet via the CLI.
Publishing
prepublishOnly runs typecheck + tests + build. To release:
npm publish --access public # publishes @hoodrhq/cli (run `npm login` as hoodrhq first)
The tarball ships only dist/ + docs (no source or tests) — ~22 kB.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。