BlockRun MCP
OfficialBlockRun MCP is a pay-per-call server that gives LLMs real-time access to markets, AI models, media generation, on-chain data, and more — all billed in USDC with no separate API keys required.
Wallet & Budget Management — manage USDC wallets on Base and Solana, check balances, set spending caps, and delegate budgets to child agents for multi-agent orchestration.
Multi-Model AI Chat — query 55+ LLMs (GPT, Claude, Gemini, DeepSeek, GLM, NVIDIA free tier, etc.) with routing modes, vision/multimodal input, and extended thinking.
Image Generation & Editing — generate or edit images using GPT-Image, Google Nano-Banana (up to 4K), xAI Grok Imagine, CogView-4, and more; supports img2img, inpainting, and multi-image fusion.
Video Generation — create AI videos via Sora 2, xAI Grok Imagine Video, or ByteDance Seedance with text-to-video or image-to-video, audio, and RealFace person-specific video.
RealFace Enrollment — enroll a real person (via liveness check) or an AI character for personalized video generation.
Music Generation — produce full-length ~3-minute tracks (instrumental or with lyrics) via MiniMax Music.
Text-to-Speech & Sound Effects — ElevenLabs TTS with multiple voices and models, plus cinematic sound effects up to 22 seconds.
Real-Time Price Data — live and historical quotes for crypto, FX, commodities (free), and 12 global stock markets (paid) via Pyth.
Prediction Markets — query Polymarket, Kalshi, Limitless, and others for events, order books, candles, smart-money wallet analytics, and cross-platform market matching.
Surf Unified Crypto Data — 84 endpoints covering CEX data (16 exchanges), on-chain SQL (13 chains), 100M+ labeled wallets, social/CT intelligence, news, and AI chat with citations.
Neural Web Search — meaning-based search via Exa for papers, news, companies, and GitHub repos, plus URL content retrieval.
Live Web & Social Search — real-time web, X/Twitter, and news search with AI-summarized results and citations via Grok Live Search.
DEX Data — free real-time token prices, liquidity, volume, and pair discovery via DexScreener across all chains.
DeFi Fundamentals — protocol TVL, chain TVL, yield pools/APY, and token prices via DefiLlama.
Raw Blockchain RPC — execute JSON-RPC calls against 40+ chains (Ethereum, Base, Solana, Bitcoin, Sui, NEAR, and more).
Sandboxed Code Execution — run isolated code in disposable cloud containers with optional GPU (T4 to H100) via Modal.
Phone Intelligence & Voice Calls — carrier and fraud lookups, US/CA number provisioning, and outbound AI voice calls.
Model Catalog — discover all available LLM, image, video, and music models with live pricing.
Provides access to Binance Futures market data via the blockrun_markets tool.
Provides access to ByteDance's Seedance video generation models via the blockrun_video tool.
Provides on-chain SQL queries across 13 blockchains using ClickHouse tables via the blockrun_surf tool.
Provides access to free-tier NVIDIA LLMs via the blockrun_chat tool.
Provides access to OpenAI models (GPT and DALL-E) for text generation and image creation via blockrun_chat and blockrun_image tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BlockRun MCPWhat's the current Polymarket probability for Bitcoin reaching $100k this year?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BlockRun 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@latestWallet auto-created. Fund with $5 USDC. Ask Claude anything.
Documentation
Full docs: https://blockrun.ai/docs
MCP tools & setup: https://blockrun.ai/docs/mcp/blockrun-mcp
All BlockRun SDKs & APIs: https://blockrun.ai/docs
Related MCP server: sugra-api-mcp
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
Gallery
Cornell Blockchain Conference 2026 — packed booth recap | Cornell Blockchain Conference 2026 — quiet variant | 100 Trillion Tokens — milestone synthwave poster |
Prompts and a worked example for these are in skills/image-prompting/SKILL.md.
Prerequisites
Node.js ≥ 20.19 (
node -v)~$5 USDC on Base or Solana (the server auto-creates a wallet on first run; see Fund your wallet)
An MCP client: Claude Code, Claude Desktop, Cursor, Windsurf, or ChatGPT Desktop
Install
Claude Code (recommended)
claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latestThe -s user flag 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 after install, Claude Code likely can't find
node/npxon its launcher PATH. Install with your shell PATH passed through — works on CLI and desktop:claude mcp add blockrun -s user -e PATH="$PATH" -- npx -y @blockrun/mcp@latestSee Troubleshooting if it persists.
Tool profiles — expose a trimmed tool set so the client loads fewer schemas into
context. Pass --profile <name> (or set BLOCKRUN_MCP_PROFILE); omit it for the full set.
Profile | Tools |
| everything |
|
|
|
|
|
|
|
|
# e.g. a media-only install
claude mcp add blockrun-media -s user -- npx -y @blockrun/mcp@latest --profile media
# or a trading-only install
claude mcp add blockrun-trading -s user -- npx -y @blockrun/mcp@latest --profile tradingEquivalent via env: BLOCKRUN_MCP_PROFILE=trading. An unknown profile name falls back to full. modal and phone are available in the full profile only.
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"blockrun": {
"command": "npx",
"args": ["-y", "@blockrun/mcp"]
}
}
}Cursor — add to ~/.cursor/mcp.json (macOS / Linux) or %APPDATA%\Cursor\mcp.json (Windows):
{
"mcpServers": {
"blockrun": {
"command": "npx",
"args": ["-y", "@blockrun/mcp@latest"]
}
}
}Windsurf — same JSON, in:
macOS:
~/.codeium/windsurf/mcp_config.jsonLinux:
~/.config/.codeium/windsurf/mcp_config.jsonWindows:
%APPDATA%\Codeium\windsurf\mcp_config.json
Fund your wallet
Run blockrun_wallet to see your address. The server pays on Base by default. Send USDC on Base:
Method | Steps |
Coinbase | Send → USDC → Base network → paste address |
Bridge from Ethereum |
$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 QRThen 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, paidblockrun_realface(enroll/portrait), paid stockblockrun_price. In Solana mode they return a "switch to Base" message instead of charging. (blockrun_imagepays on either chain.)blockrun_chat routing:"smart"(ClawRouter) and native Anthropic (claude-*) passthrough — on Solana, passmodel:ormode:explicitly.
Advanced: chain selection can also be forced before startup via files/env (
~/.blockrun/.chain,SOLANA_WALLET_KEY) — see Environment Variables. Theaction:"chain"command above is the recommended path.
Tools
Tool | Data source | Cost |
| 55+ LLMs (GPT, Claude, Gemini, DeepSeek, Kimi K2.6, GLM, NVIDIA free tier, ...) with | per token |
| Generation: 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 |
| Sora 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 |
| Enroll a real person (phone liveness) or an AI character (Virtual Portrait, no liveness) as a | free; $0.01 to enroll |
| MiniMax music generation | per track |
| ElevenLabs 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 |
| Pyth-backed realtime + OHLC — crypto / FX / commodity (free), 12 stock markets (paid) | free or $0.001/call |
| Polymarket (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 |
| Surf (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 |
| Neural web search (Exa) — research, competitors, papers, URL content | $0.01/query |
| Grok Live Search — web + X/Twitter + news with citations | $0.025 × max_results (default 10) |
| Live DEX prices via DexScreener | free |
| Raw JSON-RPC on 40+ chains (Ethereum, Base, Solana, Bitcoin, Sui, NEAR, ...) via Tatum gateway — eth_call, balances, blocks, logs | $0.002/call |
| DefiLlama — protocol TVL, chain TVL, yield pools (APY), token prices | $0.001–0.005/call |
| Isolated code execution in a BlockRun-hosted Modal sandbox — disposable container, optional GPU (T4 → H100) | $0.01 create; $0.001/op |
| Outbound AI voice calls (Bland) + wallet-owned US/CA numbers (Twilio), carrier + fraud lookups | $0.54/call; $5/number |
| Live catalogue of every LLM/image/video/music model + pricing | free |
| Balance, spending, agent budgets, setup QR | free |
Tips for effective LLMs
For LLMs and agents invoking BlockRun MCP tools:
CRITICAL: When any
blockrun_*tool returns a payment / balance / 402 error, callblockrun_walletfirst to check status, thenaction:"setup"to get funding instructions. Don't retry the failing tool blindly — the wallet is empty.CRITICAL:
blockrun_surf's 84-endpoint catalog lives inskills/surf/SKILL.md;blockrun_markets' full endpoint list is in its own tool description (with worked examples inskills/prediction-markets/SKILL.md). Browse those before guessing endpoint paths.CRITICAL:
blockrun_chat routing:"smart"(ClawRouter) only works on Base wallets. On Solana, passmode:ormodel:to pick a model directly.CRITICAL:
blockrun_musicandblockrun_videoare 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. Passagent_id:"X"to every downstreamblockrun_*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), andblockrun_modelsare 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:
Price reads / market data
"What's BTC trading at? Compare with last week's average." →
blockrun_price(free) orblockrun_surfpath:market/pricePrediction-market consensus
"What's Polymarket's odds for the next Fed rate decision?" →
blockrun_marketspath:polymarket/events+ filterOn-chain forensics
"This wallet (0xabc...) — what's it labeled as? What does it hold? When did it whale up?" →
blockrun_surfpaths:wallet/labels/batch,wallet/detail,wallet/net-worthCited research with sources
"Find the 5 most-cited papers on speculative decoding from the last 90 days. Summarize the dominant approach." →
blockrun_exaaction:searchthencontentsImage generation with on-image text
"Generate a poster announcing GPT-5.5 on BlockRun, retro-futuristic, with the headline 'NOW LIVE'." →
blockrun_image+ theimage-promptingskill 5-section frameworkGive your agent a voice
"Use blockrun to speak this with the sarah voice." →
blockrun_speechaction:speak(default),input+voice→ hosted MP3 URL. Sound effects via action:sound_effectVoice phone-out
"Call +1-415-555-... and confirm the appointment on Friday at 3pm." →
blockrun_phonepath:voice/call, body:{ to, task, from }(provisionfromfirst viaphone/numbers/buy), then pollvoice/call/{call_id}Multi-agent research with budget cap
"Spawn 3 research agents on competing L1 narratives. Cap each at $0.50." →
blockrun_wallet delegate × 3→ children callblockrun_chat+blockrun_exawith theiragent_idCross-chain SQL forensics
"Top 10 tokens by DEX volume on Base in the last 24h." →
blockrun_surfpath:onchain/sql, body:{ sql: "SELECT..." }
Why not just use the APIs directly?
Direct APIs | BlockRun | |
Exa | Sign up, $20/mo minimum | $0.01/call, no subscription |
Polymarket | Undocumented, rate-limited | $0.001/call, clean JSON |
Surf (asksurf.ai) | Account + monthly plan | $0.001/call, no Surf account, 84 endpoints |
Multiple sources | 3 accounts, 3 API keys, 3 billing pages | 1 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.
Troubleshooting
Insufficient balance/ HTTP 402 after retry → Runblockrun_wallet action:"setup". Send USDC on Base (or Solana — see Environment Variables).Smart routing (ClawRouter) is not available on Solana→ Passmodel:ormode:explicitly toblockrun_chat, or switch back to Base withecho base > ~/.blockrun/.chain.blockrundoesn't connect / "MCP server failed" /spawn npx ENOENT→ Almost always a PATH issue: Claude Code can't findnode/npxon the PATH its MCP launcher uses. Common with Homebrew (/opt/homebrew/bin) or nvm, where node isn't on that PATH — and it affects the CLI as well as the desktop app (the launcher doesn't always inherit your interactive shell PATH). 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@latestThen restart Claude Code (or
/mcpto reconnect — MCP tools load at session start). Or pin absolute paths:claude mcp add blockrun -s user -- /opt/homebrew/bin/npx -y @blockrun/mcp@latest(usewhich npxfor your path).claude mcp listdoesn't showblockrun→ Checknode -v(must be ≥20.19). Clear the npx cache:rm -rf ~/.npm/_npx. Re-run the install command from above (see the PATH fix above if node/npx aren't found).fetch failed/ timeout when checking wallet balance → Base RPC transient outage. The tool already falls through 3 public RPCs; retry after 30s. Persistent failures usually = local proxy / firewall blocking outbound RPC.ENOENT: ~/.blockrun/.session→ Expected on first run. The server auto-creates the wallet; check stderr for theWALLET_CREATEDline confirming the address.Video generation timed out(5-min cap) → Upstream Seedance / xAI queue congestion. No charge (payment-on-completion). Retry, or pick a faster model (bytedance/seedance-1.5-pro).Music generation timed out(200s cap) → Same pattern. No charge. Retry; if it persists, the upstream model is rate-limited — try off-peak.
Environment Variables
Variable / File | Default | Effect |
| auto-created on first run | EVM private key (0x...). File exists → use Base. |
| unset | Optional explicit chain preference: |
| not created | Solana private key. File exists → switch to Solana unless |
| unset | Env-var override of |
Chain selection priority (see src/utils/wallet.ts):
~/.blockrun/.chainor~/.blockrun/payment-chainset tobaseorsolana→ explicit preference winsSOLANA_WALLET_KEYenv var present → Solana~/.blockrun/.solana-sessionexists → SolanaOtherwise → Base (
~/.blockrun/.sessionauto-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 chainAdvanced (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.
Contributing
PRs welcome. See CONTRIBUTING.md for setup, the tool-vs-skill design rule, and how to add a new partner API.
Issues: github.com/blockrunai/blockrun-mcp/issues
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BlockRunAI/blockrun-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server