BlockRun MCP

Pay-per-call gateway to LLMs, media generation, web search, market data and Polymarket trading

Official · BlockRun.ai TypeScript Local · stdio Finance and paymentsWeb searchAI and ML

66 popularity score ★ 389 ↓ 2.0k/wk

Connect your client

Local (npm)

Add in one click

Opens the app, which asks before it adds the server.

Or add it by command or config

Claude CodeTerminal
claude mcp add blockrun -- npx -y @blockrun/mcp@latest
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "blockrun": {
      "command": "npx",
      "args": [
        "-y",
        "@blockrun/mcp@latest"
      ]
    }
  }
}
Cursor~/.cursor/mcp.json
{
  "mcpServers": {
    "blockrun": {
      "command": "npx",
      "args": [
        "-y",
        "@blockrun/mcp@latest"
      ]
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "blockrun": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@blockrun/mcp@latest"
      ]
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.blockrun]
command = "npx"
args = ["-y", "@blockrun/mcp@latest"]
Gemini CLITerminal
gemini mcp add --scope user blockrun npx -- -y @blockrun/mcp@latest

Settings 11

BLOCKRUN_API_KEY Optional: BlockRun account key (brk_live_...); when set, calls bill account credit via api.blockrun.ai and no wallet is used.
BLOCKRUN_MCP_PROFILE Optional: Tool profile: full (default), media, trading, research or chat.
BLOCKRUN_BUDGET_LIMIT Optional: Hard USD spending cap for the server process; unlimited by default.
BLOCKRUN_CONFIRM_SPEND Optional: Set to on to ask before each paid call on clients that support elicitation; off by default.
BLOCKRUN_CONFIRM_THRESHOLD Optional: Only ask for calls estimated above this many USD; default 0.
BLOCKRUN_WALLET_KEY Optional: EVM private key overriding ~/.blockrun/.session as the Base and Polymarket signer.
SOLANA_WALLET_KEY Optional: Solana private key overriding ~/.blockrun/.solana-session; selects Solana payment.
BLOCKRUN_KEYCHAIN Optional: Key storage: auto (default, file plus OS keychain), off, or strict (keychain only).
POLYMARKET_MAX_BET_USD Optional: Per-order cap for Polymarket bets; default 25.
POLYMARKET_MAX_SESSION_USD Optional: Optional total betting cap for the process.
POLYMARKET_CLOB_HOST Optional: Order-placement host; defaults to BlockRun's Finland relay, set https://clob.polymarket.com to go direct.

What it does

BlockRun MCP is BlockRun's own local stdio server that puts the services of its paid gateway behind one set of tools. Through it an assistant can call other LLMs, generate images, video, music and speech, run Exa neural search or Grok live web search, read prediction-market data from Polymarket, Kalshi and others, look up crypto, FX and commodity prices, query DEX pairs and DefiLlama, send raw JSON-RPC to 40 chains, start code in a hosted Modal sandbox, place outbound voice calls, and place or cancel real orders on Polymarket.

Each call is billed one of two ways. By default the server creates a local wallet on first use and pays per request in USDC on Solana or Base via the x402 protocol, with no account. Alternatively a BlockRun account key (BLOCKRUN_API_KEY) routes calls through api.blockrun.ai and draws on card- or wire-funded credit. A few tools are free (crypto prices, DEX prices, the model catalogue, the free chat tier); the rest cost from fractions of a cent to several dollars a call.

Version 0.54.4 registers 19 tools. A `--profile` flag or BLOCKRUN_MCP_PROFILE exposes a smaller set (media, trading, research, chat) to cut the context the tool schemas take; per src/profiles.ts the profile name is matched case-insensitively and with surrounding spaces ignored, and an unknown name falls back to the full set with a warning on stderr. At start-up (src/index.ts) the server scans client config files for leaked wallet keys and warns, and checks the npm registry for a newer version with a 3-second timeout.

What it needs

RuntimeNode.js 20+

Node.js 20.19 or newer with npx. Funds to pay for calls: either USDC on Solana (default for new installs) or Base sent to the wallet the server creates, or a BlockRun account key from user.blockrun.ai topped up by card or wire. Polymarket trading needs wallet mode and funds moved into a Polymarket deposit wallet through the tool's setup and fund steps.

Limits

Most tools are paid per call. Polymarket trading does not work in API-key mode, which has no keypair to sign; blockrun_defi and blockrun_modal are not served when paying from a Solana wallet. Orders are capped at $25 each by default (POLYMARKET_MAX_BET_USD) and need confirm:true. The spend-approval dialog (BLOCKRUN_CONFIRM_SPEND=on) fails open on clients without MCP elicitation, e.g. Codex CLI, Gemini CLI and Windsurf; BLOCKRUN_BUDGET_LIMIT is an in-memory cap that resets on restart. Equity price quotes were withdrawn on 2026-09-05, the Surf tool was removed in 0.49.0, and some rails still charge a timed-out media job. A cold first npx start can exceed a client's 30-second startup timeout.

Who it suits

Suits someone who wants one install to reach many paid data and generation services, pay per use without signing up with each vendor, and is comfortable holding USDC or prepaying BlockRun credit. It also suits agents that should read prediction-market odds and act on them with a capped, confirm-gated trade. Pick something else when you want free access, want calls to go straight to a provider under your own account rather than through BlockRun's gateway, or only need one of these services; a server from that provider avoids the per-call charges and the crypto wallet.

Tools 19

blockrun_chat
Sends a prompt to one of about 88 LLMs, with a free tier mode
blockrun_image
Generates or edits images with several hosted image models
blockrun_video
Generates video clips with Sora 2, Grok Imagine Video or Seedance models
blockrun_realface
Enrolls a real person or AI character as an asset for Seedance video
blockrun_music
Generates music tracks with MiniMax
blockrun_speech
Turns text into speech or sound effects and lists voices
blockrun_price
Returns real-time and OHLC prices for crypto, FX and commodities; free
blockrun_markets
Reads prediction-market and futures data from Polymarket, Kalshi and others
blockrun_polymarket_read
Lists Polymarket positions and open orders and previews orders, read-only
blockrun_polymarket
Places, cancels and redeems real Polymarket orders signed with the local key
blockrun_exa
Runs Exa neural web search and fetches page content
blockrun_search
Runs Grok live web and news search with citations
blockrun_dex
Returns live DEX pair prices from DexScreener; free
blockrun_rpc
Sends raw JSON-RPC calls to about 40 blockchains
blockrun_defi
Reads DefiLlama TVL, yield pools and token prices
blockrun_modal
Runs code in a disposable BlockRun-hosted Modal sandbox, optionally with a GPU
blockrun_phone
Places outbound AI voice calls, buys phone numbers and runs number lookups
blockrun_models
Lists available models and their prices; free
blockrun_wallet
Shows balance and spending, sets agent budgets and switches payment chain

Similar servers