@blockrun/mcp

by blockrunai

Not rated
GitHub

About

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

Details

Author
blockrunai
Categories
Developer Tools, AI, API

Setup

Install @blockrun/mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/blockrunai/blockrun-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

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

Agents can't sign up for accounts. Agents can't enter credit cards.
Agents can only sign transactions.

BlockRun MCP gives your agent <!-- -->20<!-- --> tools — markets, research, web search, images, video, on-chain data, and live Polymarket trading — paid per call in USDC. No accounts. No API keys. No dashboards.

Read the oddsandplace the bet, from one self-custody wallet.

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

BlockRun MCPis an open-sourceModel Context Protocolserver that gives Claude — and any MCP-compatible agent — <!-- -->20<!-- --> tools for real-time data and real actions: <!-- -->70<!-- --> LLMs, image & video generation, prediction-market data, live web/X search, on-chain queries across <!-- -->40<!-- --> chains, andthe ability to place real, USDC-settled bets on Polymarket. Authentication is a wallet signature (no API keys); you pay per call in USDC via thex402protocol (no credit cards, no subscriptions). One self-custody wallet on Base or Solana. MIT licensed.

🏆 First of its kind — the signal → trade loop in Claude Code

Read live Polymarket oddsandplace the bet, from one self-custody wallet, pay-per-call.Jump to Polymarket trading →

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

Agents can't do any of that.BlockRun MCP is built for the agent-first world:

- One wallet, every source— <!-- -->20<!-- --> tools behind a single self-custody wallet. No per-vendor signups.
- No API keys— your wallet signatureisauthentication.
- No credit cards— pay per request in USDC via
x402, fractions of a cent each.
- Starts free— the free tier (blockrun_chat mode:"free",blockrun_dex, cryptoblockrun_price,blockrun_models) costs $0.
- Readsandacts— most tools deliver data;blockrun_polymarketplaces real, confirm-gated trades.
- Self-custody— your key never leaves your machine (~/.blockrun/.sessionby default,0600). BlockRun can't move your funds.

✓ One wallet · ✓ Pay-per-call · ✓ Readsandtrades · ✓ Multi-chain · ✓ Agent-ready · ✓ Open source

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 canplace the trade, not just read the odds.

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.

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

-s userinstalls globally (available in every project). The--separator ensures-yis passed tonpx, not parsed byclaude mcp add.

💡Homebrew / nvm users:if the server doesn't connect, Claude Code likely can't findnode/npxon 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

Claude Desktop— add toclaude_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"] } } }

- macOS:~/.codeium/windsurf/mcp_config.json
- Linux:~/.config/.codeium/windsurf/mcp_config.json
- Windows:%APPDATA%\Codeium\windsurf\mcp_config.json

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

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 tofull.modalandphonearefull-profile only. For a complete live signal → order-preview presentation, useskills/signal-to-trade-demo/SKILL.mdwith theStanford runbook.

Runblockrun_walletto see your address. The server pays onBaseby default — send USDC on Base (Coinbase → USDC → Base network → paste address, or bridge viabridge.base.org).

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

Prefer Solana? SeeFund your wallet— two tool calls, no restart.

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

Claude reads the odds withblockrun_marketsand — with your confirmation — places the trade withblockrun_polymarket. One wallet. Gasless. Confirm-gated.

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

Claude:According to Polymarket, the market puts a73% probabilityon 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.

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

Claude:Done — bought7.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 viablockrun_markets, trade viablockrun_polymarket— one self-custody wallet, gasless · on-chain tx0x7ca8…)
- Prediction-market consensus"Polymarket's odds for the next Fed decision?"blockrun_markets
- Signal → trade(the full loop, self-custody)"If 'hold' is under 30%, put $2 on Yes."blockrun_marketsreads,blockrun_polymarket action:"buy"places. Gasless, confirm-gated.
- On-chain forensics"This wallet — what's it labeled, what does it hold, when did it whale up?"blockrun_surf
- Cited research"5 most-cited papers on speculative decoding, last 90 days."blockrun_exa
- Image generation with on-image text"Poster announcing GPT-5.5, retro-futuristic, headline 'NOW LIVE'."blockrun_image
- Give your agent a voice"Speak this with the sarah voice."blockrun_speech
- Voice phone-out"Call +1-415-… and confirm Friday at 3pm."blockrun_phone
- Multi-agent research, capped"Spawn 3 agents on competing L1 narratives. Cap each at $0.50."blockrun_wallet delegate × 3
- Cross-chain SQL"Top 10 tokens by DEX volume on Base, last 24h."blockrun_surfonchain/sql

blockrun_polymarketlets an agent placereal betsonPolymarket(CLOB V2, Polygon). It isnon-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 inpUSD(Polymarket's 1:1 collateral wrapper). Deployment, approvals, and redemptions all rungaslessthrough 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:truerequired for every order/approval/redeem,POLYMARKET_MAX_BET_USDper-order cap (default $25), optionalPOLYMARKET_MAX_SESSION_USDsession 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;setupreports your status. OverridePOLYMARKET_CLOB_HOSTto go direct or run your own egress, optionally reached viaHTTPS_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/.sessionby default; aBLOCKRUN_WALLET_KEYenv var or an existing agentwallet.jsontakes precedence —setupprints the actual signer address). It is the only key to both the payment wallet and the Polymarket deposit wallet.

Runblockrun_walletto see your address. The server pays onBaseby default.

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

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 theSolananetwork — from Coinbase (pick "Solana"), Phantom, Solflare, or Backpack. Switch back withblockrun_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:blockrun_music,blockrun_speech,blockrun_video,blockrun_modal,blockrun_defi, paidblockrun_realface, paid stockblockrun_price, and native Anthropic (claude-) passthrough. In Solana mode they return a "switch to Base" message instead of charging.blockrun_imagepays on either chain.

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

- CRITICAL: On any payment / balance / 402 error, callblockrun_walletfirstto check status, thenaction:"setup"for funding. Don't retry the failing tool blindly — the wallet is empty.
- CRITICAL:blockrun_polymarketmoves REAL user funds(pUSD on Polygon), separate from the x402 API budget. Neverbuy/sell/redeemwithconfirm:trueunless the user explicitly approved that exact trade; withoutconfirmyou get a safe dry-run. Discover markets/token IDs withblockrun_marketsfirst.
- CRITICAL:blockrun_surf's 84-endpoint catalog is in
skills/surf/SKILL.md;blockrun_markets' full endpoint list is in its tool description(worked examples inskills/prediction-markets/SKILL.md; live-demo workflow inskills/signal-to-trade-demo/SKILL.md). Browse those before guessing paths.
- CRITICAL:blockrun_musicandblockrun_videoare 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 passagent_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), andblockrun_modelsare $0.

Posters generated throughblockrun_imagewithopenai/gpt-image-2— each a single API call routed through BlockRun, paid in USDC on Base.

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

Chain selection priority(src/utils/wallet.ts):.chainpreference →SOLANA_WALLET_KEY.chain-autopin →.solana-sessionexists → otherwise Base.

The server runs a non-blocking npm registry check at startup and prints anUpdate availablenotice to stderr when a newer@blockrun/mcpexists — re-run the install command to upgrade.

- Insufficient balance/ HTTP 402 after retry→ Runblockrun_wallet action:"setup", send USDC on Base (or Solana).
- blockrundoesn't connect / "MCP server failed" /spawn npx ENOENT→ Almost always aPATH issue: Claude Code can't findnode/npxon 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

What is BlockRun MCP?An open-source MCP server that gives Claude and other agents <!-- -->20<!-- --> tools for real-time data and real actions (trading, media, on-chain), paid per call in USDC. No accounts, no API keys.

Do I need API keys or accounts?No. A wallet is auto-created locally on first run; you fund it with USDC. No signups, no dashboards, no key rotation.

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, cryptoblockrun_price,blockrun_models) is $0. $5 of USDC covers thousands of queries.

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

Which clients work?Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.

Can it really place real bets?Yes.blockrun_polymarketplaces real, USDC-settled orders on Polymarket's CLOB — confirm-gated and capped. Read the odds withblockrun_markets, place withblockrun_polymarket.

Base or Solana?Both. Switch instantly withblockrun_wallet action:"chain". A few media/paid tools settle on Base only (noted above).

BlockRun is agent-native AI infrastructure — one wallet, x402 USDC micropayments, across every surface:

- ClawRouter— the agent-native LLM router for OpenClaw. <!-- -->70<!-- --> 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.

PRs welcome. SeeCONTRIBUTING.mdfor setup, the tool-vs-skill design rule, and how to add a new partner API.

MIT License·blockrun.ai— Agent-native AI infrastructure

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Remote Streamable HTTP MCP gateway for GPT-5.5 chat plus 92 text, web, JSON, and x402 discovery tools with Base USDC pay-per-call.

Deploy and serve Haystack pipelines as REST APIs, MCP Tools, and OpenAI-compatible chat completion backends.

JCode Harness Cloud is a paid remote MCP endpoint for OpenAI Codex harness MCP. It exposes structured JSON tools, a public server card, token-based access, usage receipts, and audit-ready wo

Provides educational content, model information, and read-only API interactions for Lerian developers.

A command-line interface wrapper for the Google Gemini API, enabling interaction with Gemini's Search and Chat tools.

A backend service providing tools, resources, and prompts for AI models using the Model Context Protocol (MCP).

A bridge API service connecting Ollama with Model Context Protocol (MCP) servers.

MCP server for OpenRouter — chat with any model through one API key

An MCP client for Cursor that uses OpenRouter.ai to access multiple AI models. Requires an OpenRouter API key.

Browse 160+ LLM models with live pricing (no API key needed) and route chat completions through the OrcaRouter gateway.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.