@heura/mcp
v0.1.0
Published
MCP server for heura: compare AI model prices across sellers, call models with a heura key, or pay one request in USDG on Robinhood Chain.
Readme
@heura/mcp
MCP server for heura: compare AI model prices across sellers, call a model with a heura key, or pay one request with USDG on Robinhood Chain (no account).
Works with Claude Code, Claude Desktop, Cursor, Codex and any MCP client.
Install
Read-only (prices, quotes, status). No key, no wallet, nothing can be spent:
claude mcp add heura -- npx -y @heura/mcpHosted, read-only, nothing to install:
https://mcp.useheura.com/mcpTools
| Tool | What it does | Needs |
|---|---|---|
| heura_status | reachable? healthy sellers? what this server may spend | nothing |
| heura_models | models on the market now, best price per million tokens, filters | nothing |
| heura_catalog | heura's list price for every model | nothing |
| heura_topup_info | where to send USDG to add API balance (read only) | nothing |
| heura_quote | price of paying one request in USDG (nothing signed) | nothing |
| heura_spend | what this session spent or reserved | nothing |
| heura_key_check | does the API key work | HEURA_API_KEY |
| heura_chat | call a model, paid from the key's balance | HEURA_API_KEY |
| heura_pay | pay ONE request with USDG, dry run until confirm:true | HEURA_WALLET_KEY_FILE |
Spending tools are not registered unless you configure the matching credential. The hosted server never has them.
Safety model
The model cannot be talked into spending more than you allow, because the limits live in the server, not in the prompt.
heura_payis a dry run untilconfirm:true. The tool description tells the agent to show you the model, the price and the receiving address and wait for a yes.- The receiving address is pinned in the server. A quote that pays any other address is refused before anything is signed. Only USDG on Robinhood Chain (
eip155:4663) is accepted. Malformed amounts are refused. - Caps, all enforced by the server: per call (
HEURA_MAX_CALL_USD, default 0.05), per payment (HEURA_MAX_PAY_USDG, default 0.05) and per session (HEURA_SESSION_BUDGET_USD, default 1). The budget is reserved before the network call, so parallel calls cannot overrun it. - The model can only supply a model name, messages and numbers. It cannot supply a URL, header, address or secret.
- Redirects are refused, so a hijacked gateway never receives your key or a payment proof. Responses are size-capped, and gateway text is cleaned of control characters and labelled untrusted.
- The wallet key is read from a mode-600 file and the server refuses to start if the file is readable by others. It is never returned by any tool. Errors are scrubbed of RPC URLs and keys.
- If a payment went through but the request failed, the error says so, includes the transaction hash and tells the agent not to pay again.
Configuration
| Variable | Default | |
|---|---|---|
| HEURA_BASE_URL | https://api.useheura.com | https origin only |
| HEURA_API_KEY | none | enables heura_chat, heura_key_check |
| HEURA_WALLET_KEY_FILE | none | path to a mode-600 file with an EOA private key. Enables heura_pay |
| HEURA_PAY_TO | production address | override only for your own deployment |
| HEURA_RPC_URL | https://rpc.mainnet.chain.robinhood.com | |
| HEURA_MAX_CALL_USD / HEURA_MAX_PAY_USDG / HEURA_SESSION_BUDGET_USD | 0.05 / 0.05 / 1 | |
With a key and a wallet:
claude mcp add heura \
-e HEURA_API_KEY=*** \
-e HEURA_WALLET_KEY_FILE=$HOME/.heura-wallet \
-- npx -y @heura/mcpUse a dedicated wallet holding a few dollars of USDG plus a little ETH for gas. The payer must be an EOA (smart-contract wallets are refused by the gateway).
Status
heura is pre-launch and has not been audited. The tests in this package run against a mocked gateway (27 tests, including hostile quotes and parallel spend) and, optionally, against production read-only endpoints. test/mutation-check.sh breaks each money safeguard on a copy and confirms the tests catch it.
