Blockrun

Developer toolsFinance and commerce

Web search, deep research, prediction markets & crypto data for AI agents. Pay per call via x402.

Your AI app calls the Blockrun MCP server, which does the developer tools and finance and commerce work and sends the result back to the chat.

About Blockrun

Blockrun is a community MCP server from BlockRunAI, filed in our directory under developer tools and finance and commerce. Web search, deep research, prediction markets & crypto data for AI agents. Pay per call via x402.

Blockrun runs on your own machine: your AI app starts it with the command npx -y @blockrun/mcp@0.58.0 and talks to it over standard input and output.

Blockrun is listed in the official MCP registry as io.github.BlockRunAI/blockrun-mcp, version 0.58.0.

At a glance

Publisher
BlockRunAI (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @blockrun/mcp
Written in
TypeScript
License
MIT
GitHub stars
392
Official MCP registry
io.github.BlockRunAI/blockrun-mcp

How to set up Blockrun

  1. Install Node.js on the machine that runs your AI app, because Blockrun starts with npx and downloads its package on first run.
  2. Check the Blockrun README for keys or settings; the registry lists none that Blockrun requires.
  3. Add Blockrun to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Blockrun tools to confirm the connection.
  5. Run one read-only task with Blockrun first, and keep your app asking before each tool call until the results look right.

Blockrun compared with similar servers

  • Xcode by r-huijts has fewer GitHub stars than Blockrun (386 against 392); both are community servers, and both run locally.
  • Django by gts360 has more GitHub stars than Blockrun (393 against 392); both are community servers, and both run locally.
  • Tableau by tableau has fewer GitHub stars than Blockrun (385 against 392); Tableau is official while Blockrun is a community server, and both run locally.

Before you connect Blockrun

  • Give Blockrun its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Blockrun tool call until you trust what it does with them.
  • Treat text that Blockrun fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Blockrun on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Blockrun

How marketing and sales teams put Blockrun to work, by company size. Pick the size closest to yours and start Blockrun on one use case.

Small business

  • A small business with a developer can use Blockrun to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Blockrun to explain and fix a marketing site issue without context switching between tools.
  • A small business can ask Blockrun which products and customers drive margin, then plan promotions around them.
  • Blockrun runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Blockrun to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Blockrun to keep scripts and automations documented and versioned as they change.
  • Ecommerce teams can connect Blockrun to tie campaigns to orders and revenue, not just clicks.
  • Start Blockrun on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Blockrun with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Blockrun so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises should keep Blockrun read-only for agents, with any money movement handled by people and existing approvals.
  • Blockrun is a community server, so have security review the code and pin a version before Blockrun touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Blockrun README

From BlockRunAI/blockrun-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

BlockRun MCP

Real-time data, and real trades, for Claude and any AI agent.

Agents can pay like agents: sign transactions from a wallet.
Teams can pay like teams: get a BlockRun API key at user.blockrun.ai, add credit by card or wire, and let the MCP call api.blockrun.ai.

BlockRun MCP gives your agent 21 tools, markets, research, web search, images, video, on-chain data, and live Polymarket trading, paid per call.

Two ways to pay, same tools: a self-custody wallet (USDC on Solana, Base or Arc, no account needed), or a BlockRun API key backed by account credit. Sign up at user.blockrun.ai →

Read the odds and place the bet, from one self-custody wallet.


claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest
Wallet auto-created on first run. Fund with $5 USDC, or get a key at user.blockrun.ai, top up by card, and call through api.blockrun.ai. Ask Claude anything. Every MCP server costs you this. Almost none of them tell you. How we measure it, and how to measure anyone else →

BlockRun MCP is an open-source Model Context Protocol server that gives Claude, and any MCP-compatible agent, 21 tools for real-time data and real actions: 93 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 21 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 →

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, 21 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 21 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 21 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.

JSON for Claude Desktop, Cursor, Windsurf
{
  "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 (21 tools)
media wallet models image video realface music speech jobs quote
trading wallet price dex markets defi rpc polymarket_read polymarket quote
research wallet models chat search exa quote
chat wallet models chat quote

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) 21 15,276
trading 9 5,871
media 9 7,865
research 6 3,073
chat 4 2,421

Running --profile trading instead of the default costs 62% 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
How the number is computed, and why it is a slight under-count

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.

For a complete live signal → order-preview presentation, use [`skills/signal-to-trade-demo/SKILL.md`](skills/signal-to-trade-demo/SKILL.md) with the [Stanford runbook](docs/stanford-trading-demo.md).
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 93 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_jobs Collect a blockrun_video / blockrun_music job that answered "pending" (it keeps running in the background), or list this session's jobs free
blockrun_models Live catalogue of every LLM/image/video/music model + pricing free
blockrun_wallet Balance, spending, agent budgets, setup QR, chain switch free
blockrun_quote Price any call before making it: the estimate it would reserve (the spend-dialog figure), the most it can sign, whether it fits the session/agent budget, and the wallet balance. Reserves, signs and sends nothing 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.

Read the rest of the Blockrun README on GitHub

Questions about Blockrun

What is the Blockrun MCP server?

Web search, deep research, prediction markets & crypto data for AI agents. Pay per call via x402. Blockrun is maintained by BlockRunAI on GitHub at BlockRunAI/blockrun-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Blockrun MCP server?

Add Blockrun to your AI app's MCP config with the command npx -y @blockrun/mcp@0.58.0. In Claude Code, run claude mcp add --transport stdio blockrun -- npx -y @blockrun/mcp@0.58.0. To run Blockrun this way you need Node.js installed.

Does Blockrun need an API key?

The registry lists no required keys for Blockrun. Check the Blockrun README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Blockrun an official MCP server?

No. Blockrun is a community server maintained by BlockRunAI. Community servers can be excellent; read the code and the open issues before you give Blockrun access to company data.

What license is Blockrun under?

Blockrun is released under the MIT license, according to its GitHub repository. The license covers the code of Blockrun; the service it connects to has its own terms.