Labsco
BlockRunAI logo

@blockrun/mcp

β˜… 468

from BlockRunAI

Access 30+ AI models in Claude Code with zero API keys. One wallet, pay-per-request.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedPaid serviceNeeds API keys

BlockRun MCP

npm License: MIT MCP

Real-time data for Claude β€” markets, research, web search, crypto. No API keys. Pay per call.

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

Wallet auto-created. Fund with $5 USDC. Ask Claude anything.


Documentation

Full docs: https://blockrun.ai/docs


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?"

After BlockRun, it can. Each query costs fractions of a cent, billed from a local USDC wallet. No subscriptions. No API dashboards. No key rotation.


Demo

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

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

(via blockrun_markets Β· cost: $0.001)


User: Find recent papers on speculative decoding and summarize the key approaches

Claude: I found 8 papers from the last 60 days via neural search. The dominant approaches are: (1) draft model selection β€” smaller models predicting N tokens ahead for the larger model to verify in parallel...

(via blockrun_exa Β· cost: $0.01)


Showcase

Posters generated through blockrun_image with openai/gpt-image-2. Each is a single API call routed through BlockRun, paid in USDC on Base.

Latest β€” GPT-5.5 now live on BlockRun

<p align="center"> <img src="assets/posters/gpt-5-5-launch.png" width="640" alt="gpt-5.5 β€” now live on BlockRun. Pay per call. No subscription. No keys."> </p>

Gallery

<img src="assets/posters/cornell-2026-popular-booth.png" width="280" alt="Thank you, Cornell β€” BlockRun at the Cornell Blockchain Conference 2026, packed booth"><img src="assets/posters/cornell-2026.png" width="280" alt="Thank you, Cornell β€” BlockRun at the Cornell Blockchain Conference 2026"><img src="skills/image-prompting/example-100t-poster.jpg" width="280" alt="100 Trillion Tokens served β€” synthwave milestone poster">
Cornell Blockchain Conference 2026 β€” packed booth recapCornell Blockchain Conference 2026 β€” quiet variant100 Trillion Tokens β€” milestone synthwave poster

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


Fund your wallet

Run blockrun_wallet to see your address. The server pays on Base by default. Send USDC on Base:

MethodSteps
CoinbaseSend β†’ USDC β†’ Base network β†’ paste address
Bridge from Ethereumbridge.base.org

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

Pay on Solana

Prefer to pay in USDC on Solana? It's two tool calls β€” no env vars, no file editing, no restart:

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

Then send USDC (SPL) on the Solana network β€” from Coinbase (pick "Solana"), Phantom, Solflare, or Backpack. Switch back anytime with blockrun_wallet action:"chain" chain:"base". The server keeps both wallets; switching just changes which one pays.

Base-only β€” these fall back to Base regardless of active chain:

  • Tools: blockrun_music, blockrun_speech, blockrun_video, paid blockrun_realface (enroll/portrait), paid stock blockrun_price. In Solana mode they return a "switch to Base" message instead of charging. (blockrun_image pays on either chain.)
  • blockrun_chat routing:"smart" (ClawRouter) and native Anthropic (claude-*) passthrough β€” on Solana, pass model: or mode: explicitly.

Advanced: chain selection can also be forced before startup via files/env (~/.blockrun/.chain, SOLANA_WALLET_KEY) β€” see Environment Variables. The action:"chain" command above is the recommended path.


Tools

ToolData sourceCost
blockrun_chat55+ LLMs (GPT, Claude, Gemini, DeepSeek, Kimi K2.6, GLM, NVIDIA free tier, ...) with mode tier routingper token
blockrun_imageGeneration: openai/gpt-image-2 ($0.06–0.12) β€” flagship, reasoning + text; openai/gpt-image-1 ($0.02–0.04); google/nano-banana ($0.05) / nano-banana-pro ($0.10–0.15, 4K); xai/grok-imagine-image ($0.02) / -pro ($0.07); zai/cogview-4 ($0.015). Edit: openai/gpt-image-, google/nano-banana (img2img, inpaint, fusion).$0.015–0.15
blockrun_videoSora 2 + xAI Grok Imagine Video + ByteDance Seedance 1.5/2.0/2.0-fast (720p + audio defaults); RealFace asset β†’ real-person video$0.05–0.30/sec
blockrun_realfaceEnroll a real person (phone liveness) or an AI character (Virtual Portrait, no liveness) as a ta_xxxx asset for Seedance 2.0 videofree; $0.01 to enroll
blockrun_musicMiniMax music generationper track
blockrun_speechElevenLabs text-to-speech (Flash/Turbo/Multilingual/v3, 8 voice aliases) + cinematic sound effects; free voice listing$0.05–0.10/1k chars; $0.0525/effect
blockrun_pricePyth-backed realtime + OHLC β€” crypto / FX / commodity (free), 12 stock markets (paid)free or $0.001/call
blockrun_marketsPolymarket (markets, candles, trades, orderbooks, leaderboards, smart-wallet PnL/clusters, UMA oracle), Kalshi, Limitless, Opinion, Predict.Fun, dFlow, Binance Futures, cross-platform match + search$0.001–0.005/query
blockrun_surfSurf (asksurf.ai) β€” 84 endpoints: CEX market data, on-chain SQL (13 chains, 80+ ClickHouse tables), 100M+ labeled wallets, Polymarket + Kalshi side-by-side, social mindshare, news, search, Surf-1.5 chat with citations$0.001–0.02/call
blockrun_exaNeural web search (Exa) β€” research, competitors, papers, URL content$0.01/query
blockrun_searchGrok Live Search β€” web + X/Twitter + news with citations$0.025 Γ— max_results (default 10)
blockrun_dexLive DEX prices via DexScreenerfree
blockrun_rpcRaw JSON-RPC on 40+ chains (Ethereum, Base, Solana, Bitcoin, Sui, NEAR, ...) via Tatum gateway β€” eth_call, balances, blocks, logs$0.002/call
blockrun_defiDefiLlama β€” protocol TVL, chain TVL, yield pools (APY), token prices$0.001–0.005/call
blockrun_modalIsolated code execution in a BlockRun-hosted Modal sandbox β€” disposable container, optional GPU (T4 β†’ H100)$0.01 create; $0.001/op
blockrun_phoneOutbound AI voice calls (Bland) + wallet-owned US/CA numbers (Twilio), carrier + fraud lookups$0.54/call; $5/number
blockrun_modelsLive catalogue of every LLM/image/video/music model + pricingfree
blockrun_walletBalance, spending, agent budgets, setup QRfree

Tips for effective LLMs

For LLMs and agents invoking BlockRun MCP tools:

  • CRITICAL: When any blockrun_* tool returns a payment / balance / 402 error, call blockrun_wallet first to check status, then action:"setup" to get funding instructions. Don't retry the failing tool blindly β€” the wallet is empty.
  • CRITICAL: blockrun_surf's 84-endpoint catalog lives in skills/surf/SKILL.md; blockrun_markets' full endpoint list is in its own tool description (with worked examples in skills/prediction-markets/SKILL.md). Browse those before guessing endpoint paths.
  • CRITICAL: blockrun_chat routing:"smart" (ClawRouter) only works on Base wallets. On Solana, pass mode: or model: to pick a model directly.
  • CRITICAL: blockrun_music and blockrun_video are payment-on-completion async. Failures or client-side timeouts do NOT charge. Don't retry-loop them β€” 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. Pass agent_id:"X" to every downstream blockrun_* call β€” the child is auto-blocked when the budget hits zero.
  • Free tier first for drafts: blockrun_chat mode:"free" (NVIDIA), blockrun_dex, blockrun_price (crypto / FX / commodity), and blockrun_models are all $0. Use them to scaffold before paying for premium models.

Key Use Cases

What kinds of questions can Claude (or any LLM agent) answer once BlockRun MCP is installed:

  1. Price reads / market data

    "What's BTC trading at? Compare with last week's average." β†’ blockrun_price (free) or blockrun_surf path:market/price

  2. Prediction-market consensus

    "What's Polymarket's odds for the next Fed rate decision?" β†’ blockrun_markets path:polymarket/events + filter

  3. On-chain forensics

    "This wallet (0xabc...) β€” what's it labeled as? What does it hold? When did it whale up?" β†’ blockrun_surf paths:wallet/labels/batch, wallet/detail, wallet/net-worth

  4. Cited research with sources

    "Find the 5 most-cited papers on speculative decoding from the last 90 days. Summarize the dominant approach." β†’ blockrun_exa action:search then contents

  5. Image generation with on-image text

    "Generate a poster announcing GPT-5.5 on BlockRun, retro-futuristic, with the headline 'NOW LIVE'." β†’ blockrun_image + the image-prompting skill 5-section framework

  6. Give your agent a voice

    "Use blockrun to speak this with the sarah voice." β†’ blockrun_speech action:speak (default), input + voice β†’ hosted MP3 URL. Sound effects via action:sound_effect

  7. Voice phone-out

    "Call +1-415-555-... and confirm the appointment on Friday at 3pm." β†’ blockrun_phone path:voice/call, body: { to, task, from } (provision from first via phone/numbers/buy), then poll voice/call/{call_id}

  8. Multi-agent research with budget cap

    "Spawn 3 research agents on competing L1 narratives. Cap each at $0.50." β†’ blockrun_wallet delegate Γ— 3 β†’ children call blockrun_chat + blockrun_exa with their agent_id

  9. Cross-chain SQL forensics

    "Top 10 tokens by DEX volume on Base in the last 24h." β†’ blockrun_surf path:onchain/sql, body: { sql: "SELECT..." }


Why not just use the APIs directly?

Direct APIsBlockRun
ExaSign up, $20/mo minimum$0.01/call, no subscription
PolymarketUndocumented, rate-limited$0.001/call, clean JSON
Surf (asksurf.ai)Account + monthly plan$0.001/call, no Surf account, 84 endpoints
Multiple sources3 accounts, 3 API keys, 3 billing pages1 wallet

One wallet. All sources. No dashboards.


When NOT to use BlockRun MCP

BlockRun shines when you want unified billing + many sources + LLM-readable errors. It is not the right fit for:

  • High-volume single-API workloads (β‰₯10k calls/day to one source). Direct subscriptions amortize better past the break-even point β€” Polymarket's free public API plus your own caching beats $0.001 Γ— 10k/day if you don't need cross-source aggregation.
  • Compliance-sensitive flows that need a fiat invoice / audit trail. BlockRun settles in USDC; receipts are on-chain (Basescan / Solscan) but are not tax invoices. For enterprise procurement, contract directly with the upstream provider.
  • Latency-critical sub-100ms reads. Each x402 call adds ~200–500ms of payment-signing + settlement overhead vs. a direct authenticated request. For HFT-style flows, run your own infra.
  • You only need one source forever. If you'll only ever call Polymarket, or only ever Exa, save the indirection β€” sign up upstream and skip the wallet.

Use BlockRun when you want pay-per-call for exploration, aggregation, or agent-driven workloads where you can't predict which source you'll reach for next.


Multi-agent budget delegation

Delegate a spending budget to a child agent with agent_id. The child is auto-blocked when the budget runs out β€” useful for autonomous agents that shouldn't run up unbounded costs.


Environment Variables

Variable / FileDefaultEffect
~/.blockrun/.sessionauto-created on first runEVM private key (0x...). File exists β†’ use Base.
~/.blockrun/.chainunsetOptional explicit chain preference: base or solana.
~/.blockrun/.solana-sessionnot createdSolana private key. File exists β†’ switch to Solana unless .chain says base.
SOLANA_WALLET_KEYunsetEnv-var override of .solana-session. Set β†’ use Solana.

Chain selection priority (see src/utils/wallet.ts):

  1. ~/.blockrun/.chain or ~/.blockrun/payment-chain set to base or solana β†’ explicit preference wins
  2. SOLANA_WALLET_KEY env var present β†’ Solana
  3. ~/.blockrun/.solana-session exists β†’ Solana
  4. Otherwise β†’ Base (~/.blockrun/.session auto-created)

Switching chains:

The recommended way is the tool itself β€” it provisions both wallets, applies instantly (no restart), and shows the funding QR:

blockrun_wallet action:"chain" chain:"solana"   # or chain:"base"
blockrun_wallet action:"setup"                  # funding instructions for the active chain

Advanced (force a chain before startup, e.g. in CI): echo solana > ~/.blockrun/.chain then set SOLANA_WALLET_KEY or create ~/.blockrun/.solana-session; echo base > ~/.blockrun/.chain reuses the existing .session (same Base wallet). These edit the same preference file that action:"chain" writes β€” prefer the tool unless you need pre-startup control.

Some media and paid market-data tools still settle on Base only: blockrun_music, blockrun_speech, blockrun_video, paid blockrun_realface (enroll/portrait), and paid stock blockrun_price calls β€” plus blockrun_chat routing:"smart" and native Anthropic (claude-*) passthrough. In Solana mode these return a "switch to Base" message instead of charging. blockrun_image (generate + edit) settles on whichever chain is active.

The server also runs a non-blocking npm registry check at startup and prints an Update available notice to stderr when a newer @blockrun/mcp version exists. Upgrade by re-running the install command β€” no manual npm update needed.


How it works

Pay-per-call via x402 micropayments in USDC. Your wallet lives at ~/.blockrun/.session (Base) or ~/.blockrun/.solana-session (Solana). The private key never leaves your machine.