BrainChain
by usebrainchain.com · v0.23.2 · updated Nov 24, 2026
Hear of public changes to Robinhood Chain tokens as they happen and read their history at any block.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
BRAINCHAIN_PAYER_KEYsecretPrivate key of the wallet that pays for tasks, 64 hex characters with or without 0x. Needed to post tasks, grade work, bond tasks and sit the licence exam; the server starts and reads orders without it. Use a wallet that holds only what you plan to spend.
BRAINCHAIN_PAYER_KEY_FILEThe path of a file holding that key, in place of BRAINCHAIN_PAYER_KEY: absolute or starting with ~/, and readable only by your account.
BRAINCHAIN_NETWORKWhich BrainChain network to use: mainnet or testnet. Testnet payments use test tokens with no value.
BRAINCHAIN_PAY_ONWhere to pay: base for USDC on Base (Base Sepolia on testnet), which needs no approval and no ETH, or robinhood for USDG on Robinhood Chain (one-time Permit2 approval).
BRAINCHAIN_MAX_PRICE_UNITSThe most the server pays for one task or grade, in the payment token's base units (6 decimals). Left unset, it gives way to the price of an exam sitting for that one payment; set, it holds for a sitting too.
BRAINCHAIN_MAX_BOND_UNITSThe most the server locks in one delivery bond with brainchain_bond_task, in USDG base units (6 decimals). Bonds also count against the budget and the daily limit.
BRAINCHAIN_BUDGET_UNITSThe most the server pays in total while it runs, in the payment token's base units (6 decimals). Resets when the server restarts.
BRAINCHAIN_DAILY_UNITSThe most the wallet pays per UTC day, in the payment token's base units (6 decimals). Kept on disk, so it holds across restarts. Unset means no daily limit.
BRAINCHAIN_STATE_DIRFolder where the daily total is kept, one file per network and wallet. Defaults to ~/.brainchain.
BRAINCHAIN_MAKER_WALLETSMore wallets for brainchain_market_maker_holdings and brainchain_token_timeline to follow beside the five they follow, as Name=0xAddress separated by commas, at most 20. Their entries carry the name and source configured; nobody checks whose wallets they are.
BRAINCHAIN_WATCH_URLThe watcher brainchain_changes, brainchain_watch and brainchain_unwatch use, such as your own brainchain-mcp watch --serve at http://127.0.0.1:8787. BrainChain's own, https://watch.usebrainchain.com, by default.
BRAINCHAIN_DATASETWhere brainchain_trace_outcomes, brainchain_token_timeline and the symbol lookup read the BrainChain MCP dataset: a directory, absolute or starting with ~/, or an https address of a published copy. BrainChain's published copy by default.
GITHUB_TOKENsecretA GitHub token with no scopes. BitGo's history and the dates of Trust Wallet's and MetaMask's listings are then read with its allowance in place of the 60 requests an hour GitHub allows one IP address. Sent to api.github.com only and never logged.
BRAINCHAIN_DESK_URLAdvanced: a payment desk to use in place of the network's own. An https URL, or http on localhost or 127.0.0.1. A custom desk needs its own BRAINCHAIN_PAY_TO.
BRAINCHAIN_PAY_TOAdvanced: the address the server pays in place of the network's desk. The server refuses to pay any other.
BRAINCHAIN_PAYMENT_NETWORKAdvanced: the chain payments are made on, as eip155:<chain id>, in place of the one BRAINCHAIN_PAY_ON selects.
BRAINCHAIN_PAYMENT_ASSETAdvanced: the token contract the server pays in, in place of the one BRAINCHAIN_PAY_ON selects.
BRAINCHAIN_PAYMENT_RPCAdvanced: an http or https RPC URL for the payment chain, used to read the wallet's balance and to send the Permit2 approval.
More MCP servers
Brayer
usebrayer.com
Design mockups, device frames and launch graphics live in your open Brayer studio tab.
CarScout
usecarscout.com
Search used car inventory, check NHTSA recalls, decode VINs, and manage automated search scouts.
Chartory
usechartory.com
Chart types, props, JSON Schemas and install commands for the Chartory React chart library.
ClientProof
useclientproof.com
Read-only tools for agency testimonial walls: list clients, testimonials, and embed widgets.
Croma
usecroma.com
Colombian, Peruvian, and Mexican public data: judicial cases, registries, legislation, web search.
Cron Self Heal
usedailyai.com
Watcher — surfaces crons in error state