Skip to main content
Glama
BlockRun MCP

BlockRun MCP

Official
by BlockRunAI

         

npm version npm downloads GitHub stars Publish TypeScript Node License: MIT

MCP x402 Protocol Base Network Solana Telegram

claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest

BlockRun MCP is an open-source Model Context Protocol server that gives Claude โ€” and any MCP-compatible agent โ€” 19 tools for real-time data and real actions: 91 LLMs, image & video generation, prediction-market data, live web + news search, on-chain queries across 40 chains, and the ability to place real, USDC-settled bets on Polymarket.

You pay per call, and you choose how. Wallet mode authenticates with a signature and settles each call in USDC via the x402 protocol โ€” no account, no credit card, no subscription, on Solana, Base or Arc. Account mode authenticates with a BlockRun API key (brk_live_โ€ฆ) from user.blockrun.ai, routes service calls through api.blockrun.ai, and draws down card- or wire-funded account credit at exact usage. Same 19 tools either way. MIT licensed.

๐Ÿ† First of its kind โ€” the signal โ†’ trade loop in Claude Code

Read live Polymarket odds and place the bet, from one self-custody wallet, pay-per-call. Jump to Polymarket trading โ†’


Related MCP server: AxionQuant MCP Server

Why BlockRun MCP exists

Every other data integration was built for human developers โ€” create an account, copy an API key into .env, add a credit card, repeat for every vendor.

BlockRun gives you both payment rails without rebuilding the integration. Use a wallet when the agent should self-custody funds, or use an account key when a team wants card-funded credits and a dashboard.

  • One wallet, every source โ€” 19 tools behind a single self-custody wallet. No per-vendor signups.

  • One account key, every source โ€” mint a key at user.blockrun.ai, top up by card or wire, then the MCP calls api.blockrun.ai with that key.

  • No API key required in wallet mode โ€” your wallet signature is authentication.

  • No credit card required in wallet mode โ€” pay per request in USDC via x402, fractions of a cent each.

  • Starts free โ€” the free tier (blockrun_chat mode:"free", blockrun_dex, crypto blockrun_price, blockrun_models) costs $0.

  • Reads and acts โ€” most tools deliver data; blockrun_polymarket places real, confirm-gated trades.

  • Human-in-the-loop payments โ€” turn on BLOCKRUN_CONFIRM_SPEND=on and the agent pauses before any paid call above your threshold; nothing is signed until you approve. Details โ†“

  • Generative UI โ€” on Claude Desktop, claude.ai, VS Code and Cursor the Polymarket preview is a live order card with a Place button, and the wallet is a panel with balances, QR and card top-up. MCP Apps โ†“

  • Self-custody โ€” your key never leaves your machine (~/.blockrun/.session, 0600 โ€” or the OS keychain once you opt into BLOCKRUN_KEYCHAIN=strict). BlockRun can't move your funds.


How it compares

Raw provider APIs

Typical single-vendor MCP

BlockRun MCP

Setup

Account + API key per vendor

Account/key for 1 vendor

Wallet auto-created โ€” or one BlockRun key for everything

Payment

Credit card, monthly minimums

Credit card / vendor plan

USDC per-call via x402, or card/wire-funded account credit

Data sources

One per integration

One vendor

19 tools โ€” LLMs, media, markets, chain

Place real bets

Build it yourself

Rare

Yes โ€” Polymarket CLOB, confirm-gated

Pay-chain

โ€”

โ€”

Solana + Base, or api.blockrun.ai with no chain at all

Agent budgets

Manual

โ€”

Built-in per-agent delegation

Spend approval

โ€”

โ€”

Ask-before-pay dialog (MCP elicitation)

Generative UI

โ€”

Rare

Order card + wallet panel (MCP Apps)

Open source

Varies

Varies

Yes (MIT)

โœ“ One wallet or one account key ยท โœ“ Pay-per-call ยท โœ“ Reads and trades ยท โœ“ Multi-chain ยท โœ“ Agent-ready ยท โœ“ Open source


What changes

Before BlockRun, Claude can't answer:

  • "What's the current Polymarket probability that Bitcoin hits $100k this year?"

  • "Find me the top 5 papers on RAG published in the last 30 days."

  • "What are people saying about @sama on X right now?"

  • "What's the 24h volume on the PEPE/ETH pair on Uniswap?"

  • "Polymarket has the Fed holding at 73% โ€” put $2 on it." โ† and now it can place the trade, not just read the odds.

After BlockRun, it can. Each query costs fractions of a cent โ€” billed from a local USDC wallet, or from card-funded credit on a BlockRun account through api.blockrun.ai. No subscriptions, no per-vendor signups.


Quick Start

0. Choose how you pay

Wallet (default)

API key

Setup

Nothing โ€” a wallet is created on first run

Sign in at user.blockrun.ai, mint a key, use it against api.blockrun.ai

Funding

Send USDC (Solana, Base or Arc)

Credit card / wire โ†’ account credit

Billing

Per call, settled on-chain, + $0.001 network fee

Exact-usage account credit, no per-call network fee, no minimum

Identity

A keypair on your machine

An account with members, credits, and a usage ledger

Best for

Agents, solo devs, anything self-custody

Teams, companies, anyone who can't run a wallet

Trade on Polymarket

โœ…

โŒ โ€” needs a keypair to sign

Both modes reach the same 19 tools. Account mode sends service calls to https://api.blockrun.ai by default. You can switch at any time; setting BLOCKRUN_API_KEY takes priority over a wallet, and unsetting it hands the wallet back.

1. Install

Claude Code (recommended)

claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest

-s user installs globally (available in every project). The -- separator ensures -y is passed to npx, not parsed by claude mcp add.

๐Ÿ’ก Homebrew / nvm users: if the server doesn't connect, Claude Code likely can't find node/npx on its launcher PATH. Pass your shell PATH through โ€” works on CLI and desktop:

claude mcp add blockrun -s user -e PATH="$PATH" -- npx -y @blockrun/mcp@latest

See Troubleshooting if it persists.

Every MCP client โ€” one command or one JSON block. Verified = we ran the published package on that client and saw the tools listed (client version ยท date). Documented = install path from the client's own docs; not run by us yet โ€” tell us if it works. The Spend dialog column is whether the client renders the human-in-the-loop payment prompt; on โŒ clients paid calls proceed without asking and BLOCKRUN_BUDGET_LIMIT is the guard.

Client

Status

Spend dialog

Install

Claude Code

โœ… Verified ยท 2.1.251 ยท 2026-08-30

โœ…

claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest

Codex CLI

โœ… Verified ยท 0.142.5 ยท 2026-08-30

โŒ

codex mcp add blockrun -- npx -y @blockrun/mcp@latest

OpenClaw

โœ… Verified ยท 2026.8.2 ยท 2026-09-02

โš ๏ธ surface-dependent; see below

openclaw mcp set blockrun '{"command":"npx","args":["-y","@blockrun/mcp@latest"]}'

Claude Desktop

๐Ÿ“ Documented

โš ๏ธ renders; OK reports cancel โ†’ proceeds

claude_desktop_config.json โ€” JSON below

Cursor

๐Ÿ“ Documented

โœ…

~/.cursor/mcp.json โ€” JSON below

VS Code (Copilot)

๐Ÿ“ Documented

โœ…

code --add-mcp '{"name":"blockrun","command":"npx","args":["-y","@blockrun/mcp@latest"]}'

Gemini CLI

๐Ÿ“ Documented

โŒ

gemini mcp add -s user blockrun npx -y @blockrun/mcp@latest

Grok

๐Ÿ“ Documented ยท see the timeout note

โŒ

grok mcp add blockrun -- npx -y @blockrun/mcp@latest โ€” raise startup_timeout_sec first, below

Windsurf

๐Ÿ“ Documented

โŒ

~/.codeium/windsurf/mcp_config.json โ€” JSON below

Any other MCP client that can spawn a stdio server works the same way: command: npx, args: ["-y", "@blockrun/mcp@latest"]. With nvm/Homebrew Node on a JSON-configured client, put the absolute path from which npx in command. Spend-dialog sources and what "proceeds without asking" means: docs/spend-confirmation.md.

Grok โ€” raise the startup timeout before you install, or the first run looks broken. Grok waits startup_timeout_sec for an MCP server to answer, and it defaults to 30 (xAI's MCP docs). A first npx -y run has to download this package and its dependency tree before the server can say anything, and that is a race: measured cold, with an empty npm cache, it took 17s on a fast connection and 42-46s on a slower shared box. Lose the race and grok mcp doctor blockrun says server timed out (no response within 30s) and the UI shows blockrun [unavailable] โ€” an install that is working, timing out, and indistinguishable from broken.

Give it room in ~/.grok/config.toml (or .grok/config.toml for one project):

[mcp_servers.blockrun]
command = "npx"
args = ["-y", "@blockrun/mcp@latest"]
enabled = true
startup_timeout_sec = 120

Or skip the cold download entirely, which is faster every run after the first:

npm install -g @blockrun/mcp@latest
grok mcp add blockrun -- blockrun-mcp

Only the FIRST run pays this: npx caches by exact spec, so the next start is warm (~9s here). The same trap exists on any client with a startup timeout โ€” if a fresh install shows as unavailable and npx -y @blockrun/mcp@latest runs fine in a terminal, raise the client's timeout or install globally before looking for anything else. Thanks to @0xCheetah1 for the report.

OpenClaw: the published npx package was verified end-to-end on 2026.8.2: all 20 tools were projected (19 since the Surf delisting), free calls worked, and paid x402 calls settled. Add a hard session cap while installing:

openclaw mcp set blockrun '{"command":"npx","args":["-y","@blockrun/mcp@latest"],"env":{"BLOCKRUN_BUDGET_LIMIT":"2"}}'
openclaw mcp doctor blockrun --probe

Spend confirmation depends on the OpenClaw runtime and chat surface. Its Codex harness supports MCP form elicitation, but an unmappable prompt is returned as an explicit decline; in the WebChat โ†’ Codex route tested here, BLOCKRUN_CONFIRM_SPEND=on declined paid calls without presenting an actionable dialog. Keep confirmation off on that route and rely on BLOCKRUN_BUDGET_LIMIT plus OpenClaw's own tool-approval mode.

{
  "mcpServers": {
    "blockrun": { "command": "npx", "args": ["-y", "@blockrun/mcp@latest"] }
  }
}

Client

File

Claude Desktop

claude_desktop_config.json (Settings โ†’ Developer โ†’ Edit Config)

Cursor

~/.cursor/mcp.json ยท Windows %APPDATA%\Cursor\mcp.json

Windsurf

~/.codeium/windsurf/mcp_config.json ยท Linux ~/.config/.codeium/windsurf/mcp_config.json ยท Windows %APPDATA%\Codeium\windsurf\mcp_config.json

Add "env": { "BLOCKRUN_CONFIRM_SPEND": "on" } inside the server object to turn on the spend dialog where the client supports it.

2. Choose a tool profile (optional)

Expose a trimmed tool set so the client loads fewer schemas into context. Pass --profile <name> (or set BLOCKRUN_MCP_PROFILE); omit for the full set.

Profile

Tools

full (default)

everything (19 tools)

media

wallet models image video realface music speech

trading

wallet price dex markets defi rpc polymarket_read polymarket

research

wallet models chat search exa

chat

wallet models chat

blockrun_surf was removed in 0.49.0: the gateway has answered every Surf (asksurf.ai) path with 410 since 2026-09-06, so the tool could only ever return an error, and its schema cost every agent context on every turn. Those questions go to blockrun_price, blockrun_defi, blockrun_markets and blockrun_dex; the surf skill maps each former endpoint to its replacement.

claude mcp add blockrun-trading -s user -- npx -y @blockrun/mcp@latest --profile trading

# Codex CLI
codex mcp add blockrun-trading -- npx -y @blockrun/mcp@latest --profile trading

An unknown profile name falls back to full. modal and phone are full-profile only.

What each profile costs your context

Installing an MCP server spends context on every turn, whether or not you call the tools โ€” the client loads each tool's schema into the model's prompt and re-sends it for the whole session. Package managers have shown install size for decades. Almost no MCP server shows this. Ours:

Profile

Tools

Context

full (default)

19

14,533

trading

8

5,619

media

7

7,124

research

5

2,819

chat

3

2,167

Running --profile trading instead of the default costs 61% less context for the same trading workflow. If you only ever ask about markets, that is the single cheapest change you can make.

Measure it yourself โ€” against us, or against any other stdio MCP server:

npm i gpt-tokenizer
node scripts/measure-tool-schema.mjs                     # this server, every profile
node scripts/measure-tool-schema.mjs -- npx -y @some/other-mcp-server

It counts the model-visible projection โ€” {name, description, input_schema} per tool, with the mcp__blockrun__ prefix the host prepends โ€” because that is what lands in the API tools array. It excludes annotations, _meta and outputSchema, which the host consumes and never forwards to the model (a further ~3.7% on the wire).

The tokenizer is o200k_base. Claude's tokenizer is not public and runs a few percent higher on JSON, so every figure here is a slight under-count, never an over-count.

Two caveats worth stating plainly. Tool schemas sit at the front of the prompt and are covered by prompt caching, so after the first turn they re-send at cache-read rates โ€” the context-window cost is 100% every turn, the dollar cost is roughly a tenth of that. And 54% of our own cost is tool descriptions, not schemas, which is where the remaining work is.

3. Add funds

Option A โ€” API key + account credit (no wallet). Sign in at user.blockrun.ai with Google. This is the dashboard for keys, credits, and activity; the MCP uses the key to call api.blockrun.ai for the actual services.

  1. Dashboard โ†’ Keys โ€” mint a key. It looks like brk_live_โ€ฆ and is shown once.

  2. Dashboard โ†’ Credits โ€” top up by credit card or wire.

  3. Point the server at it. By default, account-mode calls go to https://api.blockrun.ai:

claude mcp add blockrun -s user -e BLOCKRUN_API_KEY=brk_live_โ€ฆ -- npx -y @blockrun/mcp@latest

Or export BLOCKRUN_API_KEY=brk_live_โ€ฆ in the environment the client launches from.

If your client makes environment variables awkward, write the key to ~/.blockrun/.api-key instead (chmod 600) โ€” same file directory the wallet uses. The environment variable wins when both are present. 4. Dashboard โ†’ Activity โ€” every call, priced at exact usage.

Verify with blockrun_wallet action:"status" โ€” it reports the account, its real balance, and what this session has spent:

Paying with: BlockRun account API key (no wallet, no chain)

  Account:  acme (gated)
  Credit remaining: $12.5000 of $50.00 granted
  Top up:   https://user.blockrun.ai/dashboard/credits

Invoiced accounts show Spent to date: $4.5239 (invoiced account โ€” no prepaid ceiling) instead. If the account is blocked, status says so and why before you spend a call finding out.

Option B โ€” wallet (no account). Run blockrun_wallet to see your addresses. New installs default to Solana; send USDC (SPL) on Solana from Coinbase (pick "Solana"), Phantom, Solflare, or Backpack. To pay on Base instead: blockrun_wallet action:"chain" chain:"base", then send USDC on Base. Full instructions: Fund your wallet.

$5 covers ~525 market queries ยท ~500 Exa searches ยท ~250 image generations ยท ~14 Seedance 1.5-pro clips.

4. Ask Claude anything

"What's Polymarket saying about the next Fed decision? If 'hold' is above 70%, put $2 on it."

Claude reads the odds with blockrun_markets. In wallet mode, and only after your confirmation, it can also place the trade with blockrun_polymarket. In API-key mode, the data/media/research calls run through api.blockrun.ai; Polymarket trading still requires a local keypair to sign.

5. Install the agent skills (optional)

The package ships 17 skills โ€” which tool answers what, worked examples, and a setup / debug / upgrade trio so the agent can install, troubleshoot and update the server on its own.

/plugin marketplace add BlockRunAI/blockrun-mcp            # Claude Code
npx -y @blockrun/mcp@latest skills install                 # any project โ†’ ./.claude/skills
npx -y @blockrun/mcp@latest skills install --global        # ~/.claude/skills
npx -y @blockrun/mcp@latest skills install --to ~/.codex/skills

skills list shows what ships; --only a,b picks; --force refreshes copies after an upgrade.


Demo

User: What's Polymarket saying about the Fed rate decision next month?

Claude: According to Polymarket, the market puts a 73% probability on the Fed holding rates steady, 24% on a 25bp cut, 3% on a hike. 24h volume: $2.1M. The "Hold" contract last traded at $0.73.

(via blockrun_markets ยท cost: $0.0085 on Base โ€” $0.0075 + the $0.001 network fee)


User: Polymarket has Hawley at ~13% to announce a 2026 presidential run โ€” put $1 on Yes.

Claude: Done โ€” bought 7.63 shares of Yes at $0.131 ($1.00, market FOK). Real on-chain order, settled in pUSD from your gasless Polymarket deposit wallet; I'm tracking the position now.

(signal via blockrun_markets, trade via blockrun_polymarket โ€” one self-custody wallet, gasless ยท on-chain tx 0x7ca8โ€ฆ)


Tools

Tool

Data source

Cost

blockrun_chat

91 LLMs (GPT, Claude, Gemini, DeepSeek, Kimi K3.1 Pro, GLM, NVIDIA free tier, โ€ฆ) with mode tier routing

per token

blockrun_image

Generate: openai/gpt-image-2, gpt-image-1, google/nano-banana(-2/-2-lite/-2.1/-pro), xai/grok-imagine-image(-pro), zai/cogview-4, bytedance/seedream-5-pro. Edit: img2img, inpaint, fusion.

$0.015โ€“0.56

blockrun_video

xAI Grok Imagine Video 1.0/1.5 + ByteDance Seedance 1.5/2.0-mini/2.0-fast/2.0/2.5 (720p + audio; 4K on 2.0, up to 30s on 2.5); RealFace asset โ†’ real-person video; reference images, video and audio on the account rail

$0.053โ€“0.32/sec charged; reference clips billed at the model's ceiling (15.2s on 2.0, 30.2s on 2.5)

blockrun_realface

Enroll a real person (phone liveness) or AI character (Virtual Portrait) as a ta_xxxx asset for Seedance 2.0 / 2.0-fast / 2.0-mini video (not 2.5)

free; $0.01 to enroll

blockrun_music

MiniMax music generation

per track

blockrun_speech

ElevenLabs TTS (Flash/Turbo/Multilingual/v3, 8 voices) + ByteDance Seed Audio (prompt-directed) + cinematic sound effects; free voice listing

$0.05โ€“0.10/1k chars

blockrun_price

Pyth-backed realtime + OHLC โ€” crypto / FX / commodity, plus the ticker catalog for 12 equity markets (equity quotes withdrawn 2026-09-05)

free

blockrun_markets

Polymarket (markets, candles, trades, orderbooks, leaderboards, smart-wallet PnL/clusters, UMA oracle), Kalshi, Limitless, Opinion, Predict.Fun, dFlow, Binance Futures, cross-platform search

$0.0075 + fee/query

blockrun_polymarket_read

Read-only Polymarket positions/open orders plus executable live order previews, separated for MCP clients that enforce tool safety annotations

free

blockrun_polymarket

Trade on Polymarket (CLOB V2): place/cancel real bets, positions, redeem winnings โ€” signed locally, settled in pUSD from a gasless deposit wallet. Confirm-gated, $25/order default cap. Details โ†“

free tool; bets are your funds

blockrun_exa

Neural web search (Exa) โ€” research, competitors, papers, URL content

$0.01 + fee/query

blockrun_search

Grok Live Search โ€” web + news with citations

$0.08 flat + network fee

blockrun_dex

Live DEX prices via DexScreener

free

blockrun_rpc

Raw JSON-RPC on 40 chains (Ethereum, Base, Solana, Bitcoin, Sui, NEAR, โ€ฆ) via Tatum

$0.002 + fee/call

blockrun_defi

DefiLlama โ€” protocol TVL, chain TVL, yield pools (APY), token prices

$0.001โ€“0.005 + fee/call

blockrun_modal

Isolated code execution in a BlockRun-hosted Modal sandbox โ€” disposable container, optional GPU (T4 โ†’ H100)

$0.01 create; $0.001/op

blockrun_phone

Outbound AI voice calls (Bland) + wallet-owned US/CA numbers (Twilio), carrier + fraud lookups

$0.54/call; $5/number

blockrun_models

Live catalogue of every LLM/image/video/music model + pricing

free

blockrun_wallet

Balance, spending, agent budgets, setup QR, chain switch

free

Flat data prices are the base. In wallet mode the gateway adds its flat network fee on top โ€” $0.001 per call on Base today, and the Solana gateway quotes the base alone; the account rail charges no fee. The exact figure is in the payment-required header of any unpaid request, which is free to ask for. The server reserves $0.002 for the fee against the budget cap, so the spend-confirmation dialog and the cap reservation run $0.001 high per call by design. The blockrun_wallet action:"report" ledger books the observed fee instead ($0.001 on Base, none on Solana or the account rail), or the settled amount when the account rail reports one.


Key use cases

  1. Prediction-market consensus โ†’ "Polymarket's odds for the next Fed decision?" โ€” blockrun_markets

  2. Signal โ†’ trade (the full loop, self-custody) โ†’ "If 'hold' is under 30%, put $2 on Yes." โ€” blockrun_markets reads, blockrun_polymarket action:"buy" places. Gasless, confirm-gated.

  3. Smart-money forensics โ†’ "This Polymarket whale โ€” who are they, which wallets are theirs, what's their P&L?" โ€” blockrun_markets polymarket/wallet/identity/:wallet + .../cluster

  4. Cited research โ†’ "5 most-cited papers on speculative decoding, last 90 days." โ€” blockrun_exa

  5. Image generation with on-image text โ†’ "Poster announcing GPT-5.5, retro-futuristic, headline 'NOW LIVE'." โ€” blockrun_image

  6. Give your agent a voice โ†’ "Speak this with the sarah voice." โ€” blockrun_speech

  7. Voice phone-out โ†’ "Call +1-415-โ€ฆ and confirm Friday at 3pm." โ€” blockrun_phone

  8. Multi-agent research, capped โ†’ "Spawn 3 agents on competing L1 narratives. Cap each at $0.50." โ€” blockrun_wallet delegate ร— 3

  9. Raw chain reads, 40 chains โ†’ "Latest Base block, and this contract's USDC balance." โ€” blockrun_rpc


๐Ÿ“ˆ Polymarket trading

blockrun_polymarket lets an agent place real bets on Polymarket (CLOB V2, Polygon). It is non-custodial: every order and approval is EIP-712-signed locally by your BlockRun wallet key โ€” the same self-custody key that pays x402 API fees on Base also authorizes bets on Polygon. Neither BlockRun nor Polymarket's relayer can move funds; they only forward payloads you signed.

Architecture โ€” the official "deposit wallet" path (signature type POLY_1271): a smart-contract vault on Polygon, CREATE2-derived from your key (only your key can authorize it), holds betting funds in pUSD (Polymarket's 1:1 collateral wrapper). Deployment, approvals, and redemptions all run gasless through Polymarket's relayer โ€” you never need POL.

๐Ÿ“– Full step-by-step guide: docs/polymarket-trading-setup.md

# 1. Provision your deposit wallet (idempotent, gasless)
blockrun_polymarket action:"setup"

# 2. Fund it from your Base USDC in one call (gasless; $0.01 fee, non-custodial)
blockrun_polymarket action:"fund" amount_usd:5 confirm:true

# 3. Sign the one-time gasless approval batch
blockrun_polymarket action:"setup" confirm:true

# 4. Find a market, preview safely, then place only after exact user approval
blockrun_polymarket_read action:"preview" side:"buy" token_id:"<id>" amount_usd:5 order_type:"FOK"
blockrun_polymarket action:"buy" token_id:"<id>" amount_usd:5 order_type:"FOK" confirm:true

# 5. Manage โ†’ positions ยท orders ยท cancel ยท sell ยท redeem ยท withdraw

Safety rails (server-side; an agent cannot bypass them): confirm:true required for every order/approval/redeem, POLYMARKET_MAX_BET_USD per-order cap (default $25), optional POLYMARKET_MAX_SESSION_USD session cap, and bets never draw from the x402 API budget.

Regions: Polymarket geoblocks order placement by IP (US/UK + many regions). Handled by default โ€” the MCP routes CLOB traffic through BlockRun's hosted Finland egress (a fully unrestricted region under Polymarket's policy), so trading works out of the box; setup reports your status. Override POLYMARKET_CLOB_HOST to go direct or run your own egress, optionally reached via HTTPS_PROXY / POLYMARKET_CLOB_PROXY (a proxy alone doesn't change the Polymarket-facing egress). Complying with Polymarket's terms for your jurisdiction is your responsibility.

โš ๏ธ Back up your signer key (~/.blockrun/.session by default; a BLOCKRUN_WALLET_KEY env var or an existing agent wallet.json takes precedence โ€” setup prints the actual signer address). It is the only key to both the payment wallet and the Polymarket deposit wallet.


๐Ÿ›ก๏ธ Human-in-the-loop payments

Turn on BLOCKRUN_CONFIRM_SPEND=on and every paid tool pauses before it signs. The server sends an MCP elicitation; your client renders it as a dialog with the estimated charge:

๐Ÿ’ธ BlockRun charge โ€” video ยท bytedance/seedance-2.5 ยท 10s
Estimated: $2.6500
Approve this spend? (USDC is debited per call.)
To stop the charge, choose Decline โ€” Cancel/ESC lets it proceed.

[ ] Approve all BlockRun charges for the rest of this session (don't ask again)

                                          [ Decline ]  [ Approve ]

Decline โ†’ nothing is sent, nothing is charged, the tool reports "Charge declined". Approve โ†’ the call proceeds. Tick the box and you're not asked again for the session. Free calls never prompt. Set BLOCKRUN_CONFIRM_THRESHOLD=0.05 to only be asked above $0.05.

claude mcp add blockrun -s user -e BLOCKRUN_CONFIRM_SPEND=on -e BLOCKRUN_CONFIRM_THRESHOLD=0.05 -- npx -y @blockrun/mcp@latest

Client

Dialog

Client

Dialog

Claude Code

โœ…

Claude Desktop

โš ๏ธ renders; OK reports cancel โ†’ proceeds

Cursor

โœ…

Windsurf

โŒ proceeds without asking

VS Code Copilot

โœ…

Codex CLI ยท Gemini CLI

โŒ proceeds without asking

On a client that can't ask, the gate fails open โ€” the call proceeds and the cost footer reports the charge. The hard stop on every client is the budget: BLOCKRUN_BUDGET_LIMIT for the process, blockrun_wallet action:"delegate" per sub-agent. blockrun_polymarket keeps its own, stronger per-order confirm:true.

๐Ÿ“– When to use it, sources for the matrix, limitations: docs/spend-confirmation.md


๐Ÿงฉ MCP Apps โ€” order card & wallet panel

On hosts that support the MCP Apps extension โ€” Claude Desktop, claude.ai, VS Code, Cursor, ChatGPT โ€” two tools render as interactive cards instead of text. Everywhere else (Claude Code, Codex, terminals) nothing changes.

  • Order card on blockrun_polymarket_read action:"preview" โ€” question, outcome, side, best quote, est. shares, notional, cap meter, session ledger. Edit the amount โ†’ Re-quote. Place order is arm-then-confirm and asks the host to call blockrun_polymarket โ€ฆ confirm:true, so the host's consent prompt and every server cap (POLYMARKET_MAX_BET_USD, session cap) still apply.

  • Wallet panel on blockrun_wallet โ€” both chains' balances, switch chain, copy address, EIP-681 / Solana Pay QR, explorer, Buy USDC with card.

๐Ÿ“– Hosts, money path, local testing: docs/mcp-apps.md


Fund your wallet

Paying with an API key instead? There is no wallet to fund โ€” top up credit by card or wire at user.blockrun.ai/dashboard/credits. The MCP will use that key against api.blockrun.ai and skip the wallet rail entirely.

The server keeps two wallets โ€” one on Solana, one on Base โ€” and pays from one at a time. Run blockrun_wallet to see both addresses, balances, and which is active.

$5 covers ~525 market queries, ~500 Exa searches, ~250 image generations, or ~14 Seedance 1.5-pro clips (5s @ 720p+audio, ~$0.35 each).

Pay on Solana (default for new installs)

blockrun_wallet action:"setup"    # shows the Solana address + funding QR

Send USDC (SPL) on the Solana network โ€” from Coinbase (pick "Solana"), Phantom, Solflare, or Backpack.

Pay on Base

One tool call โ€” no env vars, no file editing, no restart:

blockrun_wallet action:"chain" chain:"base"   # provisions + activates the Base wallet
blockrun_wallet action:"setup"                # shows the Base address + funding QR

Method

Steps

Coinbase

Send โ†’ USDC โ†’ Base network โ†’ paste address

Bridge from Ethereum

bridge.base.org

Card

blockrun_wallet action:"deposit" โ€” Coinbase Onramp, Base only

Switch back with blockrun_wallet action:"chain" chain:"solana". Switching only changes which wallet pays; both keep their balances.

Upgrading from an older version? Nothing moves. The Solana-first default applies only to installs with no wallet and no saved chain preference โ€” if you already have a Base wallet, you stay on Base until you switch.

What each mode reaches

Almost everything now settles on either chain. The exceptions:

Capability

API key

Solana wallet

Base wallet

Chat, image, video, music, speech, RealFace

โœ…

โœ…

โœ…

Search, Exa, markets, RPC, DEX, phone

โœ…

โœ…

โœ…

blockrun_defi (DefiLlama)

โœ…

โŒ not served on the Solana gateway

โœ…

blockrun_modal (sandboxes)

โœ…

โŒ not configured on the Solana gateway

โœ…

Native Anthropic claude-* passthrough

โœ…

โŒ the SDK signs EIP-3009 only

โœ…

Polymarket trading

โŒ needs a keypair

โœ…

โœ…

blockrun_wallet balance / deposit / QR

โŒ no wallet

โœ…

โœ…

blockrun_realface action:"list"

โŒ indexed by wallet address

โœ…

โœ…

A blocked capability returns a message naming the fix, not a raw error.

What a call costs, and how sure we are

Mode

Reported cost

API key โ€” most tools

The amount actually settled, read from the account API's per-call response

API key โ€” blockrun_chat

An estimate. Chat settles after the response by design, so no figure exists when the answer is sent

API key โ€” blockrun_image

The amount actually settled (since 0.49.0); only when the account API returns no figure does it fall back to the catalog estimate, marked ~

Wallet

The amount signed and settled on-chain, from the 402 quote

Anything estimated is printed with a ~ and says so. Estimates run high on the account rail โ€” they add a transaction fee it does not charge โ€” so a budget cap trips early rather than late. The source of truth is always Dashboard โ†’ Activity.


For agents & LLMs

If you are an LLM invoking BlockRun MCP tools, read these first:

  • CRITICAL: On any payment / balance / 402 error, call blockrun_wallet first to check status, then action:"setup" for funding. Don't retry the failing tool blindly โ€” the wallet is empty.

  • CRITICAL: blockrun_polymarket moves REAL user funds (pUSD on Polygon), separate from the x402 API budget. Never buy/sell/redeem with confirm:true unless the user explicitly approved that exact trade; without confirm you get a safe dry-run. Discover markets/token IDs with blockrun_markets first.

  • CRITICAL: blockrun_music and blockrun_video are payment-on-completion async. Failures / client timeouts do NOT charge. Don't retry-loop โ€” they may take 60โ€“180s.

  • CRITICAL: Before spawning child agents, allocate per-agent budget: blockrun_wallet action:"delegate" agent_id:"X" agent_limit:1.00, then pass agent_id:"X" to every downstream call. The child is auto-blocked at zero.

  • Free tier first for drafts: blockrun_chat mode:"free" (NVIDIA), blockrun_dex, blockrun_price (crypto/FX/commodity), and blockrun_models are $0.

  • A declined spend confirmation is the user's decision. Report it and stop โ€” never re-issue the call with a cheaper model, smaller parameters, or split requests to get under their threshold.


Showcase

Posters generated through blockrun_image with openai/gpt-image-2 โ€” each a single API call routed through BlockRun, paid from either account credit or a USDC wallet.

Cornell Blockchain Conference 2026

Cornell Blockchain Conference 2026

100 Trillion Tokens milestone

Prompts and a worked example are in skills/image-prompting/SKILL.md.


Why not just use the APIs directly?

Direct APIs

BlockRun

Exa

Sign up, $20/mo minimum

$0.011/call on Base ($0.01 + fee), or exact account usage via api.blockrun.ai

Polymarket

Undocumented, rate-limited

$0.0085/call on Base ($0.0075 + fee), or exact account usage for reads โ€” plus wallet mode can trade

DefiLlama

Free tier, rate-limited, no SLA

$0.006/call on Base ($0.005 + fee), or exact account usage via api.blockrun.ai

Multiple sources

3 accounts, 3 API keys, 3 billing pages

1 wallet, or 1 BlockRun account key

One wallet, or one dashboard-backed API key. All sources.


Configuration

Variable / File

Default

Effect

BLOCKRUN_API_KEY

unset

A BlockRun account key (brk_live_โ€ฆ) from user.blockrun.ai/dashboard/keys. Set โ†’ account billing through api.blockrun.ai: no wallet is created, read or used, and no chain applies. Takes priority over every wallet setting below. A malformed value is a startup error, never a silent fall back to the wallet.

~/.blockrun/.api-key

not created

The same key on disk, for clients that make env vars awkward. Read only when BLOCKRUN_API_KEY is unset; an empty or unreadable file falls through to wallet mode.

BLOCKRUN_API_BASE_URL

https://api.blockrun.ai

Account API service endpoint used after you get a key at user.blockrun.ai. Override only for staging. Accepts the OpenAI-style โ€ฆ/v1 form too.

~/.blockrun/.session

created on the first blockrun_wallet call (with .solana-session)

EVM private key (0xโ€ฆ). Which chain pays is the priority list below, not this file's existence. Also the Polymarket signer (unless BLOCKRUN_WALLET_KEY or an agent wallet.json takes precedence).

BLOCKRUN_WALLET_KEY

unset

Env override of the EVM key โ€” takes precedence over .session / wallet.json as the Base + Polymarket signer.

~/.blockrun/.chain

unset

Explicit chain preference: base or solana. Written only by blockrun_wallet action:"chain" โ€” i.e. only when you choose.

~/.blockrun/.chain-auto

written on first run

Automatic pin: the chain you were already on when your second wallet was provisioned. Keeps a Base user on Base once a Solana session exists, and is outranked by SOLANA_WALLET_KEY. Cleared whenever you set a chain explicitly.

~/.blockrun/.solana-session

created on the first blockrun_wallet call (with .session)

Solana private key โ€” the funded wallet on a new install. Which chain pays is the priority list below.

SOLANA_WALLET_KEY

unset

Env override of .solana-session. Set โ†’ use Solana.

BLOCKRUN_KEYCHAIN

auto

Key storage. auto โ€” mirror the key into the OS keychain (macOS Keychain / Linux secret-tool) and keep the plaintext file, which stays authoritative so other BlockRun tools keep working and so replacing it still rotates your wallet. off โ€” file only. strict โ€” also delete ~/.blockrun/.session once a read-back proves the keychain holds the same key; this breaks other tools that read that file directly.

BLOCKRUN_MCP_PROFILE

full

Tool profile (media / trading / research / chat).

BLOCKRUN_BUDGET_LIMIT

unset (unlimited)

Hard USD cap on spend for this server process (both rails). In-memory; resets on restart. Per-agent caps via blockrun_wallet action:"delegate".

BLOCKRUN_CONFIRM_SPEND

off

on โ€” ask before every paid call via MCP elicitation. Details. Fails open on clients without elicitation.

BLOCKRUN_CONFIRM_THRESHOLD

0

Only ask for calls estimated above this many USD. Malformed values fall back to 0 (ask for everything), never to "off".

POLYMARKET_CLOB_HOST

BlockRun Finland relay

Geoblock egress for order placement โ€” defaulted for you. Override to go direct (https://clob.polymarket.com) or your own egress.

POLYMARKET_MAX_BET_USD

25

Hard per-order notional cap.

POLYMARKET_MAX_SESSION_USD

unset

Optional cumulative per-process betting cap.

POLYMARKET_SIG_TYPE

3

3 = deposit wallet (POLY_1271, gasless); 0 = plain EOA mode.

POLYMARKET_CLOB_PROXY

unset

HTTPS proxy for Polymarket CLOB traffic only.

POLYMARKET_BOUNDED_APPROVALS

unset (unlimited)

Bound pUSD exchange allowances to this many dollars.

BLOCKRUN_BUILDER_CODE

unset

Optional Polymarket builder attribution code carried on orders.

Chain selection priority (src/utils/wallet.ts), highest first: .chain preference โ†’ SOLANA_WALLET_KEY โ†’ .chain-auto pin โ†’ non-empty .solana-session โ†’ Solana key in the OS keychain โ†’ an existing Base wallet keeps Base โ†’ otherwise Solana (a fresh install with no wallet at all).

That second-to-last step is the upgrade guard: without it, flipping the default to Solana would move every existing Base-only user onto an empty wallet, and their next paid call would fail on a zero balance with nothing on screen explaining why. None of this applies in account mode โ€” BLOCKRUN_API_KEY has no chain.

The server runs a non-blocking npm registry check at startup and prints an Update available notice to stderr when a newer @blockrun/mcp exists โ€” re-run the install command to upgrade.


Troubleshooting

๐Ÿค– Hand this to the agent: the blockrun-debug skill carries every row below as symptom โ†’ cause โ†’ fix, plus the diagnostics it can run itself. blockrun-setup and blockrun-upgrade cover the other two halves. Install: npx -y @blockrun/mcp@latest skills install.

  • Insufficient balance / HTTP 402 after retry โ†’ Run blockrun_wallet action:"setup", send USDC on Base (or Solana).

  • blockrun doesn't connect / "MCP server failed" / spawn npx ENOENT โ†’ Almost always a PATH issue: Claude Code can't find node/npx on its launcher PATH (common with Homebrew / nvm, on CLI and desktop). Fix by passing your shell PATH at install:

    claude mcp remove blockrun -s user
    claude mcp add blockrun -s user -e PATH="$PATH" -- npx -y @blockrun/mcp@latest

    Then restart Claude Code. Or pin absolute paths (which npx).

  • claude mcp list doesn't show blockrun โ†’ Check node -v (โ‰ฅ20.19). Clear the npx cache: rm -rf ~/.npm/_npx. Re-run the install.

  • fetch failed / balance-check timeout โ†’ Base RPC transient outage. The tool falls through 3 public RPCs; retry after 30s. Persistent = local proxy / firewall blocking outbound RPC.

  • Video/Music generation timed out โ†’ Upstream queue congestion. Whether it cost anything depends on the rail, and the error says which: on the Base wallet payment settles on completion, so it is not charged and a retry is safe; on Solana music and every account-rail media job the gateway bills at submit, so the job is charged, the error names it, and re-running bills a second one โ€” check blockrun_wallet action:"report" instead.

  • blockrun_price says Equity quotes are not served (gateway 501 โ€ฆ) โ†’ Equity price/history were withdrawn on 2026-09-05; not an outage, and nothing was charged (the wallet is never asked to sign). The ticker catalog (action:"list" category:"stocks") is still free. Equity coverage: hello@blockrun.ai.

  • blockrun_markets on sports/* fails โ€” before 0.49.0 as API error after payment: 502 with no balance change โ†’ Predexon's sports/* routes have been down upstream since 2026-08-04; the gateway releases the payment on that upstream 500, so the call is not charged (the error says so when the gateway's "payment NOT charged" confirmation is in the response; otherwise it tells you to check blockrun_wallet action:"report"). For sports odds use path:"markets/search" with params:{ q: "NBA" }, or polymarket/events with params:{ search: "NBA" } โ€” the bare markets route and its league filter were removed upstream on 2026-08-04 and 404 before payment. Upgrade to โ‰ฅ 0.49.0 so the error says all of this itself.

  • No spend-confirmation dialog although BLOCKRUN_CONFIRM_SPEND=on โ†’ Your client doesn't support MCP elicitation (Windsurf, Codex, Gemini CLI); the server proceeds without asking by design. Use BLOCKRUN_BUDGET_LIMIT as the guard, or a client from the support table.

  • Polymarket: neg-risk ("winner") market buy fails, or redeem reverts, though setup shows ready โ†’ Re-run action:"setup" confirm:true once (grants the on-chain approvals a pre-upgrade deposit wallet may lack โ€” including the collateral-adapter approvals redeem needs). See the setup guide.


FAQ

What is BlockRun MCP? An open-source MCP server that gives Claude and other agents 19 tools for real-time data and real actions (trading, media, on-chain), paid per call โ€” from a self-custody wallet or a BlockRun account key.

Do I need an API key or an account? No. A wallet is auto-created locally on first run; you fund it with USDC and there are no signups, dashboards or keys to rotate.

But you can have one. If your team can't hand a wallet to an agent, sign in at user.blockrun.ai, mint a key at Dashboard โ†’ Keys, top up account credit by card or wire at Dashboard โ†’ Credits, and set BLOCKRUN_API_KEY. The MCP then sends paid service calls to api.blockrun.ai and bills exact usage against that account credit โ€” no $0.001 per-call network fee, no per-call minimum โ€” with a ledger at Dashboard โ†’ Activity. Everything works except the parts that genuinely need a keypair: Polymarket trading, wallet balances/top-ups, and the wallet-indexed blockrun_realface action:"list".

Which is cheaper? Account billing, slightly โ€” it charges exact metered usage with no per-call minimum and no $0.001 transaction fee. Wallet mode buys you self-custody and Polymarket trading instead.

How much does it cost? Pay-per-call โ€” fractions of a cent to a few cents. The free tier (blockrun_chat mode:"free", blockrun_dex, crypto blockrun_price, blockrun_models) is $0. $5 of USDC or account credit covers thousands of queries.

Is it safe / non-custodial? Yes. Your private key never leaves your machine (~/.blockrun/.session by default, 0600). x402 payments and Polymarket orders are signed locally โ€” BlockRun forwards signed payloads and cannot move your funds.

Which clients work? Any MCP client that can spawn a stdio server. Verified on Claude Code and Codex CLI, in daily use on OpenClaw; install paths documented for Claude Desktop, Cursor, VS Code, Gemini CLI and Windsurf โ€” see the client table. The spend-confirmation dialog additionally needs MCP elicitation (Claude Code, Cursor, VS Code).

Does it have a UI? On MCP-Apps hosts (Claude Desktop, claude.ai, VS Code, Cursor) the Polymarket preview is a live order card and the wallet is a panel โ€” see MCP Apps โ†‘. Terminal clients get the same information as text.

Can I make the agent ask before it spends? Yes โ€” BLOCKRUN_CONFIRM_SPEND=on. Every paid tool pauses with the estimated charge and nothing is signed until you approve. Human-in-the-loop payments โ†‘

Can it really place real bets? Yes. blockrun_polymarket places real, USDC-settled orders on Polymarket's CLOB โ€” confirm-gated and capped. Read the odds with blockrun_markets, place with blockrun_polymarket.

Base, Solana or Arc? All three. Switch instantly with blockrun_wallet action:"chain". Arc (Circle's chain) pays from the same address as Base, funded with USDC on Arc, and serves everything Base does. Three things are Base-only, and each says so when you call them on Solana: blockrun_defi (DefiLlama) and blockrun_modal, which the Solana gateway does not serve, and claude-* chat with thinking (the native /v1/messages path pays on Base; a plain claude-* call takes the compat path on Solana). Media generation, markets, search and Polymarket all settle on either chain.


From the BlockRun ecosystem

BlockRun is agent-native AI infrastructure โ€” one wallet with x402 USDC micropayments, or one account API key with card-funded credit, across every surface:

  • โšก ClawRouter โ€” the agent-native LLM router for OpenClaw. 91 models, <1ms local routing, USDC on Base & Solana.

  • ๐Ÿค– BRCC โ€” BlockRun for Claude Code: smart routing + x402 payments, purpose-built for Claude Code.

  • ๐Ÿ ClawRouter-Hermes โ€” Python plugin wiring NousResearch Hermes into the ClawRouter proxy.

  • ๐Ÿ“š Docs ยท Models & pricing โ€” full SDKs, APIs, and the model catalogue.


Support & community

๐Ÿ’ฌ Community Telegram

t.me/blockrunAI

๐Ÿฆ X / Twitter

@BlockRunAI

๐Ÿ“– Documentation

blockrun.ai/docs

๐Ÿ› Issues

github.com/BlockRunAI/blockrun-mcp/issues


Contributing

PRs welcome. See CONTRIBUTING.md for setup, the tool-vs-skill design rule, and how to add a new partner API.


MIT License ยท blockrun.ai โ€” Agent-native AI infrastructure

Website ยท npm ยท Docs ยท @BlockRunAI

Available Tools

19 tools
blockrun_chatA

Get a second opinion from another AI model, or use a specialized model for a specific task.

Notable modes:

  • mode:"powerful" โ†’ Claude Opus 5, Claude Opus 4.8, GPT-5.6-sol, Claude Fable 5 (frontier, 1M context)

  • mode:"reasoning" โ†’ Claude Opus 5, GPT-5.6-sol, Kimi K3.1 Pro, Grok 4.3, deepseek-v4-pro

  • mode:"coding" โ†’ Claude Opus 5, GPT-5.3-codex, Kimi K3.1 Pro, Grok Build, GLM-5.2

  • mode:"cheap" โ†’ deepseek-v4-pro, Qwen3.7 Flash, MiniMax M3, Gemini 2.5 Flash, DeepSeek Chat / V4.1 Flash

  • mode:"glm" โ†’ Zhipu GLM-5 / 5.2 / 5.1 / 5-Turbo (strong at coding)

  • mode:"free" โ†’ free models (no cost)

Pick directly: model:"anthropic/claude-opus-5.5", model:"openai/gpt-6-sol", model:"xai/grok-4.7", model:"moonshot/kimi-k3.1-pro", model:"nvidia/gpt-oss-120b" (free).

Run blockrun_models to see all available models with pricing.

Inputs: message (required), mode, stop, model, +7 more.

blockrun_defiA
Read-only

DeFi fundamentals via DefiLlama โ€” protocol TVL, chain TVL, yield pools (APY), token prices. Pays per call in USDC, no API key.

Paths (GET only; price = base + the gateway's flat tx fee, $0.001 today โ€” we reserve $0.002; the 402 header carries the exact charge):

  • protocols ($0.005 base) โ€” all DeFi protocols ranked by TVL

  • protocol/{slug} ($0.005 base) โ€” one protocol's TVL history + chain breakdown, e.g. protocol/aave-v3

  • chains ($0.005 base) โ€” TVL by chain

  • yields ($0.005 base) โ€” yield pools with APY + TVL (large; filter client-side)

  • prices/{coins} ($0.001 base) โ€” token prices, coins like 'base:0x833589...,coingecko:ethereum'

Examples: blockrun_defi({ path: "protocol/uniswap-v3" }) blockrun_defi({ path: "prices/coingecko:bitcoin,coingecko:ethereum" }) blockrun_defi({ path: "chains" })

Use blockrun_price (free) for plain spot quotes, blockrun_dex (free) for DEX pairs โ€” this tool is for protocol/TVL/yield fundamentals.

Inputs: path (required), agent_id.

blockrun_dexA
Read-only

Get real-time DEX data from DexScreener. FREE - no payment required.

Use for:

  • Token prices and liquidity across chains

  • Trading volume and price changes

  • Finding token pairs and contracts

Examples: blockrun_dex({ query: "SOL" }) -> Search for SOL pairs blockrun_dex({ token: "So11...xxx" }) -> Get specific token data blockrun_dex({ symbol: "PEPE" }) -> Search by symbol

Inputs: chain, query, token, symbol.

blockrun_exaA
Read-only

Neural web search via Exa โ€” understands meaning, not just keywords. Great for research.

Common paths (all POST, body shapes documented in the exa-research skill):

  • search โ€” body: { query, numResults?, category?, includeDomains?, excludeDomains? } ($0.010 base + tx fee)

  • answer โ€” body: { query } ($0.010 base + tx fee)

  • contents โ€” body: { urls: [...] } ($0.002/URL + ONE tx fee, up to 100)

  • find-similar โ€” body: { url, numResults? } ($0.010 base + tx fee) Tx fee = the gateway's flat network fee, $0.001 today (we reserve $0.002); the 402 header carries the exact charge.

Categories for search: "news", "research paper", "company", "github", "pdf". Exa does not serve X/Twitter content.

Full request/response shapes + worked research workflows in the exa-research skill.

Inputs: path (required), body, agent_id.

blockrun_imageA

Generate or edit images via BlockRun. Pays with USDC on the ACTIVE chain โ€” Base, Solana or Arc (see blockrun_wallet) โ€” no separate API keys needed.

Actions:

  • generate (default): Create image from text prompt

  • edit: Transform an existing image using img2img

Generation models (1024x1024 base price; larger sizes cost more on gpt-image-*):

  • openai/gpt-image-2 ($0.06โ€“0.12) โ€” flagship, reasoning-driven, multilingual on-image text + character consistency (default)

  • openai/gpt-image-2.5-sunburst ($0.28โ€“0.56) โ€” OpenAI's most capable image model, high-precision editing

  • openai/gpt-image-2.5-flare ($0.28โ€“0.56) โ€” GPT Image 2.5 fast tier, same price as Sunburst (generate only)

  • openai/gpt-image-1 ($0.02โ€“0.04) โ€” GPT native image generation

  • google/nano-banana ($0.05) โ€” Gemini-family image model

  • google/nano-banana-2 ($0.09) โ€” Gemini 3.1 Flash, pro-level quality at Flash speed (1024x1024 only)

  • google/nano-banana-2-lite ($0.05) โ€” Gemini 3.1 Flash Lite, lowest-cost Nano Banana 2 (1024x1024 only)

  • google/nano-banana-2.1 ($0.07) โ€” newer Flash-tier Nano Banana with thinking (1024x1024 only)

  • google/nano-banana-pro ($0.17; $0.30 at 4096px) โ€” up to 4K, strongest photorealism

  • xai/grok-imagine-image ($0.02) โ€” stylized, fast

  • xai/grok-imagine-image-2.0 ($0.04) โ€” Grok Imagine 2.0, between Grok Imagine and Pro on price

  • xai/grok-imagine-image-pro ($0.06) โ€” Grok Imagine 2.0 at medium quality, finer detail

  • zai/cogview-4 ($0.015) โ€” cheapest, photorealistic detailed scenes

  • bytedance/seedream-5-pro ($0.045; $0.09 when both dimensions exceed 1024) โ€” Seedream 5.0 Pro; cheap widescreen at 1280x720 / 2048x1024, large formats up to 2848x1600

Edit (img2img) models: openai/gpt-image-2 (default), openai/gpt-image-2.5-sunburst, openai/gpt-image-1, google/nano-banana, google/nano-banana-2, google/nano-banana-2-lite, google/nano-banana-2.1, google/nano-banana-pro Multi-image edit: pass an array of 2โ€“4 source images to "image" to fuse them in one render (openai/* up to 4, google/* up to 3) โ€” e.g. a subject plus a sprite layout guide, or a reference plus a brand logo. Source images and masks accept a base64 data URI, an http(s) URL, or a local file path (auto-encoded). Inpaint mask (openai/gpt-image-* only) via "mask"; not combinable with multiple source images.

Inputs: prompt (required), mask, size, image, +4 more.

blockrun_marketsA
Read-only

Prediction market + derivatives data via Predexon aggregator. Flat $0.0075 base per call (every endpoint) plus the gateway's network fee โ€” $0.001 on Base today, none quoted on Solana; the 402 header carries the exact charge (we reserve $0.0095).

POLYMARKET (Tier 1):

  • polymarket/events, polymarket/markets โ€” list events/markets (filter, sort, paginate)

  • polymarket/markets/keyset, polymarket/events/keyset โ€” same data, cursor-based keyset pagination (params: { pagination_key })

  • polymarket/crypto-updown โ€” crypto up/down markets

  • polymarket/market-price/:token_id โ€” current/historical price

  • polymarket/candlesticks/:condition_id โ€” OHLCV by market

  • polymarket/candlesticks/token/:token_id โ€” OHLCV by single outcome token

  • polymarket/volume-chart/:condition_id โ€” volume w/ YES/NO split

  • polymarket/orderbooks, polymarket/trades, polymarket/activity

  • polymarket/markets/:token_id/volume, polymarket/markets/:condition_id/open_interest

  • polymarket/positions โ€” user positions

  • polymarket/leaderboard, polymarket/leaderboard/market/:condition_id

  • polymarket/cohorts/stats, polymarket/market/:condition_id/top-holders

  • polymarket/uma/markets, polymarket/uma/market/:condition_id โ€” UMA oracle questions/timeline

POLYMARKET (Tier 2 โ€” wallet/smart-money analytics):

  • polymarket/wallet/:wallet โ€” full smart-wallet profile

  • polymarket/wallet/:wallet/markets, .../similar

  • polymarket/wallet/pnl/:wallet, .../positions/:wallet, .../volume-chart/:wallet

  • polymarket/wallets/profiles โ€” batch profiles, GET with params: { addresses } (POST 404s); polymarket/wallets/filter โ€” AND/OR filter

  • polymarket/market/:condition_id/smart-money, polymarket/markets/smart-activity

WALLET IDENTITY & CLUSTERING (Tier 2) โ€” cross-context labels + on-chain relationship graph:

  • polymarket/wallet/identity/:wallet โ€” fetch identity + profile metadata for one wallet

  • polymarket/wallet/identities โ€” POST { addresses: [...] } for bulk lookup (up to 200 wallets)

  • polymarket/wallet/:address/cluster โ€” discover wallets connected via on-chain transfers + identity proofs

SPORTS โ€” sports/* (categories, markets, markets/:game_id, outcomes/:predexon_id) DEGRADED, do not call: Predexon 500 on every call since 2026-08-04; the gateway releases the payment on that upstream 500. Use markets/search { q: "NBA" } or polymarket/events { search: "NBA" } instead โ€” no live route takes a "league" param.

KALSHI: kalshi/markets, kalshi/trades, kalshi/orderbooks LIMITLESS / OPINION / PREDICT.FUN: {platform}/markets, {platform}/orderbooks BINANCE FUTURES: binance/candles/:symbol, binance/ticks/:symbol

CROSS-PLATFORM:

  • markets/search โ€” search every venue in one call (search term is "q"). The only canonical-layer route left: markets, markets/listings, outcomes/:id and matching-markets(/pairs) were removed upstream 2026-08-04 and 404 before payment.

REQUEST CONTRACTS:

  • Discover current markets with markets/search (its search term is "q"), then resolve the chosen Polymarket market with polymarket/markets/keyset and condition_id.

  • On polymarket/markets{,/keyset} the free-text filter is "search" (NOT "q"), and status:"open"/"closed" replaces Gamma's active/closed. "sort", "end_after", and "end_before" are supported; "order"/"ascending" are not.

  • Candlesticks interval is integer minutes ("1440", not "1h"); it is OPTIONAL (the server defaults). Which intervals a market serves varies โ€” 1440 may work where 60 does not. start_time/end_time are Unix seconds.

  • polymarket/orderbooks requires token_id plus start_time/end_time in Unix milliseconds.

  • Smart-money needs a smart-wallet CRITERION (min_trades, min_volume, min_roi, min_*_pnl, min_win_rate, min_profit_factor). "window" only scopes time and is NOT sufficient on its own. Default: { window: "30d", min_trades: "100" }.

Pass query params via 'params' (GET) โ€” a '?' in 'path' is refused before payment, because path-carried values bypass the pre-payment checks above. Use 'body' only for POST endpoints (e.g. polymarket/wallet/identities).

Inputs: path (required), body, params, agent_id.

blockrun_modalA
Destructive

Run isolated code in a BlockRun-hosted Modal sandbox โ€” disposable remote container, optional GPU.

Use when you need: a clean ephemeral environment, GPU access (T4/L4/A10G/A100/H100 โ€” those five only), or a safer place for untrusted code. Prefer local tools for normal repo work.

โš ๏ธ timeout IS THE BILLED LIFETIME โ€” charged upfront in full, NEVER refunded. It is not an idle timeout: you pay for the time you ASK for, not the time you use, and terminating early refunds nothing. Ask for what you need, not a safe-looking ceiling.

  • timeout โ‰ค 300s, cpu โ‰ค 1 and memory โ‰ค 1024 โ†’ flat: $0.0120 CPU ยท $0.0520 T4 ยท $0.0820 L4 ยท $0.1020 A10G ยท $0.2020 A100 ยท $0.4020 H100

  • anything longer or larger โ†’ PER-HOUR ร— the full requested lifetime, never below flat: $0.25/h CPU ยท $4.00 T4 ยท $4.50 L4 ยท $5.00 A10G ยท $7.00 A100 ยท $9.00/h H100 e.g. { timeout: 600, gpu: "A100" } = $1.1687 ยท { timeout: 300, gpu: "T4", cpu: 8 } = $0.3353 ยท { timeout: 86400, gpu: "H100" } = $216.00

Common paths (all POST):

  • sandbox/create โ€” body: { image?, timeout?, cpu?, memory?, gpu?, setup_commands? } (see above โ€” $0.0120 to $216.00)

  • sandbox/exec โ€” body: { sandbox_id, command: ["python","-c","..."], timeout? } ($0.0030)

  • sandbox/status โ€” body: { sandbox_id } ($0.0030)

  • sandbox/terminate โ€” body: { sandbox_id } ($0.0030)

Full pricing tables + GPU details in the modal skill.

Inputs: path (required), body, agent_id.

blockrun_modelsA
Read-only

List available AI models with pricing. Use to discover models and compare costs.

Inputs: category, provider.

blockrun_musicA

Generate music tracks via BlockRun x402 (async, client-polled).

Generates a full-length ~3 minute MP3 track. Takes 1-3 minutes to complete. The tool submits the job and, for slower tracks, polls until it is ready. On the Base wallet payment settles only when a finished track is returned โ€” if the job fails you are not charged; if this client gives up while a paid request is still in flight the gateway may still settle, and the error text says so. On Solana and on the account rail the job is billed when the gateway ACCEPTS it, so a job that later fails or outlives the poll budget is still charged โ€” the error text says so and names the job, which stays claimable for ~48h.

Model: minimax/music-2.5+ ($0.1575/track, up to ~4 min)

Returns a permanent BlockRun-hosted URL.

Inputs: prompt (required), model, lyrics, agent_id, +1 more.

blockrun_phoneA
Destructive

Phone-number intelligence, US/CA number provisioning, and outbound AI voice calls.

Common paths (path = everything after /v1/):

  • phone/lookup POST body: { phoneNumber } ($0.01)

  • phone/lookup/fraud POST body: { phoneNumber } โ€” SIM-swap + call-forwarding signals ($0.05)

  • phone/numbers/buy POST body: { country?: "US"|"CA", areaCode? } โ€” 30-day lease ($5.00)

  • phone/numbers/renew POST body: { phoneNumber } โ€” extend 30 days ($5.00)

  • phone/numbers/list POST body: {} โ€” your wallet-owned numbers ($0.001)

  • phone/numbers/release POST body: { phoneNumber } โ€” release back to pool (free)

  • voice/call POST body: { to, task, from, voice?, max_duration?, ... } ($0.54 flat)

  • voice/call/{call_id} GET (no body) โ€” poll status + transcript (free)

REQUIRED for voice/call: from must be a number your wallet owns. Provision one with phone/numbers/buy first ($5, 30-day lease).

Voice presets: nat, josh, maya, june, paige, derek, florian. Phone numbers use E.164 format (e.g. +1 followed by 10 US digits, or +).

Voice call flow + voice preset details + full body shapes in the phone skill.

Inputs: path (required), body, agent_id.

blockrun_polymarketA
Destructive

Trade on Polymarket prediction markets (CLOB V2, Polygon). REAL MONEY โ€” orders spend pUSD held in your Polymarket deposit wallet, signed locally by your BlockRun key. Free tool (no BlockRun API charge); discover markets/prices/token IDs with blockrun_markets first.

Run action:"setup" FIRST (and again after funding). It creates a gasless deposit wallet owned by your key, checks pUSD balance + exchange approvals, and prints funding instructions. Zero config โ€” no Polymarket account or API keys; setup bootstraps its credentials from your wallet key.

Actions:

  • setup โ€” create/inspect deposit wallet, funding, approvals (confirm:true to sign the approval batch), region check. Idempotent.

  • fund โ€” top up the deposit wallet from your OWN Base USDC, gasless (confirm:true). amount_usd required. BlockRun pays the gas + charges $0.01; you need no ETH. Non-custodial (USDC โ†’ Polymarket bridge โ†’ your vault).

  • buy / sell โ€” token_id (or condition_id+outcome) + either price+size (limit) or amount_usd (market buy) / size (market sell). confirm:true REQUIRED to place; omitting it returns a dry-run preview. Per-order cap: POLYMARKET_MAX_BET_USD (default $25).

  • orders โ€” list open orders (optional condition_id filter)

  • cancel โ€” order_id:"โ€ฆ" or all:true

  • positions โ€” holdings incl. redeemable winnings (free Data-API)

  • redeem โ€” claim resolved winnings for condition_id (confirm:true; gasless)

  • withdraw โ€” cash out pUSD โ†’ native USDC on Base to your agent wallet (confirm:true). amount_usd optional (default: full balance); to_address optional (default: your wallet).

Prices are probabilities 0โ€“1 on the market's tick grid. token_id comes from blockrun_markets Polymarket data. Geoblock is handled by default (CLOB traffic routes through BlockRun's Finland egress) โ€” setup reports your region status. Complying with Polymarket's terms for the user's jurisdiction is the user's responsibility.

Inputs: action (required), all, size, price, +12 more.

blockrun_polymarket_readA
Read-only

Read or preview Polymarket state without signing or changing anything.

Actions:

  • positions โ€” holdings, current value, PnL, and redeemable status (free Data API)

  • orders โ€” open CLOB orders, optionally filtered by condition_id

  • preview โ€” build a live buy/sell order preview from the CLOB book. side plus token_id (or condition_id+outcome) are required. Market buys use amount_usd; limit orders use price+size. This action never accepts confirm and never signs or submits an order.

Use blockrun_polymarket only for setup and funds-affecting operations: confirmed buy/sell, cancel, redeem, fund, or withdraw.

Inputs: action (required), side, size, price, +7 more.

blockrun_priceA
Read-only

Prices for crypto, FX and commodities (free daily closes and OHLC history), on-chain US stock prices, and the ticker catalog for 12 stock markets.

  • action="price" โ€” realtime quote for a symbol

  • action="history" โ€” OHLC bars between from/to (unix seconds)

  • action="list" โ€” discovery: list available symbols (free)

Pricing:

  • crypto / fx / commodity: FREE across price, history and list

  • stocks / usstock, market "us", action "price": $0.005 โ€” ON-CHAIN price from tokenized-stock DEX pools on your ACTIVE chain (Base: Coinbase Tokenized Stocks; Solana: xStocks). Returns the price, every pool with its liquidity, the dividend multiplier, the US session and SEC company facts. It is the token's price on that chain, not an exchange quote. A ticker with no on-chain market on your chain is refused before payment; the other chain may have it (see otherChains).

  • stocks / usstock: list (ticker catalog) FREE; US history and every non-US price/history NOT SERVED โ€” 501 before payment, nothing charged, do not retry

Stocks markets: us, hk, jp, kr, gb, de, fr, nl, ie, lu, cn, ca (required when category="stocks").

Examples:

  • { action: "price", category: "crypto", symbol: "BTC-USD" }

  • { action: "price", category: "fx", symbol: "EUR-USD" }

  • { action: "history", category: "crypto", symbol: "ETH-USD", resolution: "D", from: 1700000000, to: 1710000000 }

  • { action: "list", category: "crypto", query: "sol" }

  • { action: "price", category: "stocks", market: "us", symbol: "NVDA" } ($0.005, on-chain)

Inputs: action (required), category (required), to, from, +7 more.

blockrun_realfaceA

Enroll a real person's face as a BytePlus RealFace asset, then drive Seedance 2.0 video with it (blockrun_video real_face_asset_id).

A RealFace asset (ta_xxxx) lets Seedance 2.0 / 2.0-fast / 2.0-mini generate video of a SPECIFIC real person โ€” not a generic seed image. Only those three models: seedance-2.5 is numerically newer but does NOT accept ta_ assets, and seedance-1.5-pro never did. Enrollment is a multi-step flow because BytePlus requires a live phone liveness check (the real person nods + blinks on camera) before a face photo can be uploaded.

Actions:

  • init: FREE. Create an asset group + a phone H5 link. The tool renders the link as a QR code and opens it; the real person scans it on their phone and completes the ~1 min liveness check. Pass group_id to refresh an expired link.

  • status: FREE. Poll a group until status:"active" (ready_to_finalize:true). The H5 link is valid ~120s โ€” re-init if it expires.

  • enroll: PAID ($0.01). Settles on Solana, Base or Arc from a wallet, or against your BlockRun account key. After the group is active, upload a clear front-facing photo (image_url) of the SAME person. Returns the ta_xxxx asset id.

  • portrait: PAID ($0.01). Settles on Solana, Base or Arc from a wallet, or against your BlockRun account key. Virtual Portrait โ€” enroll an AI-GENERATED character from an image URL directly, NO liveness needed (one step: name + image_url โ†’ ta_xxxx). For fictional/AI characters only; for a real person use the initโ†’statusโ†’enroll liveness flow.

  • list: FREE, WALLET MODE ONLY (assets are indexed by wallet address). List the RealFace + Virtual Portrait assets enrolled by this wallet (their ta_xxxx ids + names) so you can pick one for blockrun_video.

Typical flow:

  1. blockrun_realface action:"init" name:"Alice" โ†’ scan QR on phone, do liveness

  2. blockrun_realface action:"status" group_id:"legacy_rf_โ€ฆ" โ†’ repeat until ready_to_finalize:true

  3. blockrun_realface action:"enroll" name:"Alice" group_id:"legacy_rf_โ€ฆ" image_url:"https://โ€ฆ/alice.jpg" โ†’ ta_xxxx

  4. blockrun_video model:"bytedance/seedance-2.0" real_face_asset_id:"ta_xxxx" prompt:"โ€ฆ"

Privacy: BlockRun does not store face/liveness data โ€” only the asset id, name, and the photo URL you supply.

Inputs: action (required), name, agent_id, group_id, +1 more.

blockrun_rpcA
Destructive

Raw JSON-RPC against 40+ blockchains โ€” one endpoint, no node, no API key. $0.002 base per call plus the gateway's flat tx fee ($0.001 today; we reserve $0.002, so budget/confirm show $0.004 per single call). A JSON-RPC batch charges $0.002 per element plus ONE fee โ€” batch when you can.

Use when you need data the higher-level tools don't cover: contract reads (eth_call), balances, blocks, txs, logs, gas, or any chain-native RPC method.

Networks (full catalog in the rpc skill): ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, solana, bitcoin, sui, near, ripple, polkadot, dogecoin, litecoin, monad, berachain, unichain, hyperevm, sonic, and 20+ more.

Examples: blockrun_rpc({ network: "ethereum", method: "eth_blockNumber" }) blockrun_rpc({ network: "base", method: "eth_getBalance", params: ["0xabc...", "latest"] }) blockrun_rpc({ network: "solana", method: "getSlot" }) blockrun_rpc({ network: "bitcoin", method: "getblockchaininfo" }) blockrun_rpc({ network: "ethereum", body: [{jsonrpc:"2.0",id:1,method:"eth_blockNumber"},{...}] }) // batch

Prefer blockrun_price (free quotes) or blockrun_dex (free DEX data) when they cover the question โ€” this tool is for raw chain access.

Inputs: network (required), body, method, params, +1 more.

blockrun_speechA

AI voice via BlockRun x402 โ€” speak text aloud (ElevenLabs or ByteDance Seed Audio), generate sound effects, list voices.

Actions:

  • speak (default): text-to-speech. E.g. "speak this with the sarah voice". Price = chars/1000 ร— rate (min $0.001), quoted before payment.

  • sound_effect: cinematic sound effects from a text prompt, up to 22s ($0.0525/clip)

  • voices: list available voices (free)

Models (speak): elevenlabs/flash-v2.5 ($0.05/1k chars, 75ms, default), elevenlabs/turbo-v2.5 ($0.05/1k), elevenlabs/multilingual-v2 ($0.10/1k, narration), elevenlabs/v3 ($0.10/1k, most expressive), bytedance/seed-audio-1.0 ($0.003/sec of output, est. from input length; max 3k chars in / 120s out) โ€” prompt-DIRECTED audio: describe the voice, emotion, and sound staging in the input text itself ("a tired detective mutters, rain in the background: ..."); the voice parameter is ignored.

Voice aliases (ElevenLabs models only): sarah (default), george, laura, charlie, river, roger, callum, harry โ€” or any raw ElevenLabs voice_id.

Returns a hosted audio URL โ€” download immediately if you need to keep the file.

Inputs: input, model, speed, voice, +5 more.

blockrun_videoA

Generate short AI videos via BlockRun x402 on the active Base, Solana or Arc chain (async, client-polled).

Turns a text prompt (and optional seed image) into a short video clip (MP4, or MOV on Seedance 2.5). The tool submits the job, then polls until the video is ready (typical total wall-time 60-180s; 9 min Base / 15 min Solana hard cap). On the wallet rails payment settles only when upstream returns a finished video โ€” if the job fails you are not charged; if this client gives up while a paid poll is still in flight the gateway may still settle, and the error text says so. On the account rail the job is billed when the gateway accepts it, so a job that fails or outlives the poll budget is still charged โ€” the error names it.

Models. Every rate below is what you are CHARGED (margin and transaction fee included), at the 720p baseline Seedance renders by default with synced audio (on for every input):

  • xai/grok-imagine-video ($0.05/sec at 480p default, $0.07/sec at 720p; 8s default -> $0.401/clip, 1-15s) โ€” stylized, fast. 480p/720p only.

  • xai/grok-imagine-video-1.5 ($0.08/sec at 480p default, $0.14/sec at 720p, $0.25/sec at 1080p; 8s default -> ~$0.64/clip, 1-15s) โ€” xAI's flagship video model with native synced audio; text- or image-to-video. No 4K.

  • bytedance/seedance-1.5-pro (~$0.071/sec, 4-12s, 5s default -> ~$0.35/clip) โ€” cheapest Seedance, token-priced upstream

  • bytedance/seedance-2.0-mini (~$0.080/sec, 4-15s, 5s default) โ€” 2.0-generation quality at roughly half the 2.0-fast rate; 720p ceiling; supports RealFace, first/last-frame and the full reference set. The CHEAPEST model that takes reference video/audio โ€” prefer it over 2.0 for reference work unless you need 4K.

  • bytedance/seedance-2.0-fast (~$0.165/sec, 4-15s, ~60-80s gen) โ€” sweet-spot price/quality; supports RealFace, first/last-frame and the full reference set

  • bytedance/seedance-2.0 (~$0.227/sec, 4-15s, up to 4K) โ€” highest quality, and the ONLY model that renders true 4K; supports RealFace, first/last-frame and the full reference set. Also the priciest: 2.0-mini takes the same reference inputs at ~1/3 the rate.

  • bytedance/seedance-2.5 (~$0.315/sec, 4-30s, 5s default) โ€” long-form: double 2.0's length ceiling, multilingual. NOT a strict upgrade โ€” it caps at 720p and takes no RealFace, though it does take first/last-frame, up to 30 reference IMAGES and reference clips. Use 2.0 for 1080p/4K or real-person video.

Image-to-video is NOT cheaper than text-to-video on Seedance โ€” same per-second rate. Higher resolutions ARE more expensive (token-priced: 1080p ~2.25x, 4K ~9x the 720p rate); the 402 quote is authoritative and is what gets charged.

Reference media (reference_image_urls / reference_videos / reference_audios) is served ONLY on the BlockRun account rail (BLOCKRUN_API_KEY) โ€” the Base and Solana gateways refuse it with a 400 before quoting, and this tool refuses it there first. Reference CLIPS are expensive: each one is billed at its model's ceiling (15.2s on the 2.0 family, 30.2s on 2.5) whatever its real length, and that price does NOT shrink with a shorter render or a lower resolution. On seedance-2.0-mini a 5s 720p render goes ~$0.40 -> ~$1.61 with one reference video (~4x), ~$5.10 with three videos plus three audios (~13x), and ~24x at 480p, where the discount reaches the render but not the clip. Reference IMAGES cost nothing extra. The account rail bills at submit with no quote to correct against, so check blockrun_wallet action:"report" before a large reference job.

RealFace: to generate video of a SPECIFIC real person, first enroll them with blockrun_realface (returns a ta_xxxx asset id), then pass real_face_asset_id here with seedance-2.0, seedance-2.0-fast, or seedance-2.0-mini. Mutually exclusive with image_url.

Returns a permanent blockrun-hosted video URL (the gateway mirrors the asset to GCS so URLs don't expire).

Inputs: prompt (required), seed, model, agent_id, +16 more.

blockrun_walletA

Call this tool to manage the BlockRun payment wallet and control agent spending budgets.

Call this FIRST if any other blockrun_* tool returns a payment/balance error. Call this to check your current USDC balance before expensive operations. Call this to set spending limits before spawning child agents.

If this server is running on a BlockRun API key (BLOCKRUN_API_KEY), there is no wallet and no chain: status reports the account, and setup/qr/deposit/chain do not apply. Credit is managed at https://user.blockrun.ai/dashboard/credits.

In wallet mode the server holds TWO wallets โ€” one on Solana, one on Base โ€” but pays on ONE active chain at a time. status shows both addresses/balances and which is active. New installs default to Solana; an existing Base wallet keeps Base until you switch.

To switch chain (no env vars, no file editing, no restart):

  1. action:"chain" chain:"solana" โ†’ provisions + activates the Solana wallet

  2. action:"setup" โ†’ address + funding QR for the active chain Switch back with action:"chain" chain:"base". Almost everything now settles on either chain; only blockrun_defi (DefiLlama) and blockrun_modal are Base-only, plus native Anthropic (claude-*) in blockrun_chat.

Arc (Circle's chain) is a third option: action:"chain" chain:"arc". It pays from the SAME address as Base (one EVM key), funded with USDC on Arc, and serves everything Base does.

Actions:

  • status (default): Both wallet addresses + USDC balances, active chain, session spending

  • deposit: Buy USDC with a card โ€” mints a one-time Coinbase Onramp link and opens it in the browser (Base only; funds settle into your own wallet). Paid tools auto-open this on an out-of-funds failure; call it directly to fund up front.

  • setup: Get funding instructions + QR code for the ACTIVE chain (call this when balance is 0)

  • qr: Open QR code (active chain) in system viewer

  • chain + chain:"base"|"solana"|"arc": Switch the active payment chain (omit chain: to just see the current one)

Budget controls:

  • budget + budget_action:"set" + budget_amount:1.00 โ†’ Set global spend cap

  • budget + budget_action:"check" (the default) โ†’ Report the cap, spend and remaining

  • budget + budget_action:"clear" โ†’ Remove a cap set here If the operator started the server with BLOCKRUN_BUDGET_LIMIT, that value is a ceiling this tool can only lower: set above it is clamped, clear restores it, and agent_limit is clamped to it. Only a restart with a new env raises it.

Multi-agent orchestration:

  • delegate + agent_id:"research" + agent_limit:2.00 โ†’ Allocate $2 to a child agent

  • revoke + agent_id:"research" โ†’ Remove a child agent's cap (its spend is kept; re-delegating the id carries it)

  • report โ†’ See per-agent spending breakdown

Usage pattern for multi-agent systems:

  1. blockrun_wallet action:"delegate" agent_id:"worker-1" agent_limit:1.00

  2. Pass agent_id:"worker-1" to all blockrun_chat/search/etc calls for that agent

  3. blockrun_wallet action:"report" to audit spending

Do NOT call this for actual AI queries โ€” use blockrun_chat for that.

Inputs: chain, action, agent_id, agent_limit, +2 more.

Tool Schema Changelog

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

Loading tool schema changelogโ€ฆ

    TDQS

    A4/5.0

    Scored across 19 tools

    Disambiguation3/5

    Most domains are cleanly separable (image/video/music/speech/media vs. chain data vs. wallet), but there are real overlaps: blockrun_search (Grok live search) and blockrun_exa (neural search) are both general web search, and blockrun_markets, blockrun_polymarket_read and blockrun_polymarket all expose market/orders/positions data. The descriptions do add routing hints (read vs. trade vs. data) so an agent can recover, but boundaries are fuzzy in places.

    Naming Consistency4/5

    All 19 tools share a uniform blockrun_* prefix with a lowercase noun suffix, which is predictable and readable. Minor deviations: two suffixes name vendors rather than capabilities (blockrun_exa, blockrun_modal) while others name the function (blockrun_price, blockrun_chat), and blockrun_polymarket vs blockrun_polymarket_read is a subtle distinction carried only by the suffix.

    Tool Count4/5

    19 tools is on the heavy side of the 3-15 sweet spot, but this is a broad multi-service gateway (payments, media generation, market data, RPC, telephony, sandbox) and each tool multiplexes many endpoints via action/path params rather than expanding into dozens of separate tools. Given the scope, the count is defensible.

    Completeness4/5

    Coverage is broad and lifecycle-oriented: wallet status/deposit/budget/delegate, full Polymarket setupโ†’fundโ†’tradeโ†’redeemโ†’withdraw, model discovery plus chat/image/video/music/speech generation, and read paths for chain and market data. Gaps are minorโ€”no job cancellation/list for async video/music, no asset history listing, and reference-media is restricted to the account rail.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to access real-time financial data including crypto, equities, on-chain, prediction markets, and macro via a single API key.
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables AI agents and LLM apps to answer natural-language financial questions using live market data, including stocks, crypto, forex, futures, indices, ETFs, economic data, news, sentiment, SEC filings, earnings, financials, insider trading, ESG, credit ratings, and web traffic.
      132
      109 npm
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables natural-language research across SEC filings, earnings call transcripts, company financials, stock and crypto market data, and prediction markets, returning structured, source-backed answers. It also exposes deep-research synthesis agents and live documentation search to Claude Desktop, Cursor, and other MCP clients.
      -