About blockrunai/blockrun-mcp
blockrunai/blockrun-mcp is an MCP server published by BlockRunAI in the Browser category: live data for AI agents — search, research, markets, crypto, X/Twitter. Pay-per-call via x402 micropayments. Conduid read 19 tools from its source: blockrun_chat, blockrun_defi, blockrun_dex, blockrun_exa, blockrun_image, blockrun_markets and 13 more. It is published to npm as @blockrun/mcp and starts with npx.
The repository has 392 stars and 42 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.56.3 (27 Nov 2026): Fixed — pinned gpt-4.1-nano reserves enough on Solana The openai/gpt-4.1-nano price row is gone. It follows v0.56.2 (24 Nov 2026), and the 5 most recent releases go back to v0.55.14 (24 Nov 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include x402.
Install
claude mcp add blockrun-mcp -- npx -y @blockrun/mcp@latestnpx -y @blockrun/mcp@latestgit clone https://github.com/BlockRunAI/blockrun-mcpTools (19)
blockrun_chat<!-- br:models.chatVisible -->93<!-- /br:models.chatVisible --> LLMs (GPT, Claude, Gemini, DeepSeek, Kimi K3.1 Pro, GLM, NVIDIA free tier, …) with `mode` tier routing| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier. If a budget was delegated for this agent_id via blockrun_wallet action:'delegate', spending is tracked and enforced. The agent is hard-stopped when its budget is exhausted. |
| max_tokens | number | Max tokens in response |
| message * | string | Your message to the AI |
| messages | array | https URL or data:<mime>;base64,<...> URI |
| mode | string | Routing mode: powerful/reasoning = frontier models (Opus 5, GPT-5.6-sol, Kimi K3.1 Pro), coding = code-specialized, glm = Zhipu GLM (great for coding), cheap = budget models, free = $0 models (ignored if model specified) |
| model | string | Specific model ID (e.g., 'openai/gpt-6-sol', 'anthropic/claude-sonnet-5.5', 'zai/glm-5') |
| response_format | string | Set to 'json_object' to force valid JSON output (no markdown fences). Works across all providers. |
| stop | array | Up to 4 stop sequences; generation halts when any is produced |
| system | string | Optional system prompt |
| temperature | number | Creativity 0-2 |
| thinking | object | Tokens Claude may spend reasoning before answering (1024–100000; Anthropic requires ≥1024). max_tokens is auto-raised above this if needed; counts toward the budget reserve. |
blockrun_defiDefiLlama — protocol TVL, chain TVL, yield pools (APY), token prices| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| path * | string | Endpoint under /v1/defillama/, e.g. 'protocols', 'protocol/aave-v3', 'chains', 'yields', 'prices/coingecko:ethereum' |
blockrun_dexLive DEX prices via DexScreener| Parameter | Type | Description |
|---|---|---|
| chain | string | Filter by chain (ethereum, solana, base, etc.) |
| query | string | Search query (token name, symbol, or address) |
| symbol | string | Token symbol to search |
| token | string | Token address for direct lookup |
blockrun_exaNeural web search (Exa) — research, competitors, papers, URL content| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| body | any | JSON body for the call. Sent as POST. Required for all four endpoints. |
| path * | string | Endpoint name under /v1/exa/, e.g. 'search', 'answer', 'contents', 'find-similar' |
blockrun_imageGenerate: 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.| Parameter | Type | Description |
|---|---|---|
| action | string | generate: create from text; edit: transform existing image |
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| image | any | Source image(s) for edit action: a base64 data URI, an http(s) URL, or a local file path (auto-encoded to a data URI) — or an array of 2–4 to fuse into one render (e.g. subject + layout guide, or reference + brand logo). openai/* accepts up to 4, google/* up to 3; a mask cannot be combined with multiple images. |
| inline | boolean | Return a small inline image preview (thumbnail) the client can render in-conversation, in addition to the full-resolution URL. Defaults to the BLOCKRUN_INLINE_IMAGES env setting (off unless set). Rich clients (e.g. the VS Code extension) render it; plain terminals ignore it. Off keeps responses lightweight. |
| mask | string | Inpaint mask for edit action (openai/gpt-image-* only): a base64 data URI, http(s) URL, or local file path. Transparent areas of the mask are regenerated. Cannot be combined with multiple source images. |
| model | string | Model to use (default: openai/gpt-image-2 for both generate and edit). gpt-image-2 renders on-image text best; nano-banana-pro for 4K photorealism; cogview-4 / grok-imagine-image for cheap drafts. |
| prompt * | string | Image description or edit instructions |
| size | string | Image size. Common values: 1024x1024 (all models), 1536x1024 / 1024x1536 (gpt-image-*), 2048x2048 / 4096x4096 (nano-banana-pro), 1280x720 / 2048x1024 / 2048x2048 / 2848x1600 (seedream-5-pro) |
blockrun_marketsPolymarket (markets, candles, trades, orderbooks, leaderboards, smart-wallet PnL/clusters, UMA oracle), Kalshi, Limitless, Opinion, Predict.Fun, dFlow, Binance Futures, cross-platform search| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| body | any | JSON body for POST queries (triggers pmQuery — most endpoints are GET) |
| params | object | Query parameters for GET requests (e.g. markets/search uses { q: 'Bitcoin', status: 'open', venue: 'polymarket', limit: '20' }) |
| path * | string | Endpoint path, no query string, e.g. 'polymarket/events', 'kalshi/markets' (filter via params: { ticker: 'KXBTC-25MAR14' }), 'polymarket/wallet/0xabc...', 'markets/search' |
blockrun_modalIsolated code execution in a BlockRun-hosted Modal sandbox — disposable container, optional GPU (T4 → H100)| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| body | any | JSON body. Sent as POST. |
| path * | string | Endpoint under /v1/modal/, e.g. 'sandbox/create', 'sandbox/exec' |
blockrun_modelsLive catalogue of every LLM/image/video/music model + pricing| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| provider | string | Filter by provider (e.g., 'openai', 'anthropic') |
blockrun_musicMiniMax music generation| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| instrumental | boolean | Generate without vocals (default: true) |
| lyrics | string | Custom lyrics. Cannot be used with instrumental: true |
| model | string | Music model to use |
| prompt * | string | Music style, mood, or description. E.g. 'upbeat synthwave with neon pads', 'chill lo-fi beats', 'epic orchestral film score' |
blockrun_phoneOutbound AI voice calls (Bland) + wallet-owned US/CA numbers (Twilio), carrier + fraud lookups| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| body | any | JSON body. Sent as POST. Omit for the free GET poll (voice/call/{call_id}). |
| path * | string | Endpoint after /v1/. Use 'phone/...' for lookup + number ops, 'voice/call' for outbound AI calls, 'voice/call/{id}' (no body) to poll status. |
blockrun_polymarketTrade 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 ↓| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation to perform |
| agent_id | string | Tag for the session betting ledger (bets do NOT draw from the x402 API budget) |
| all | boolean | cancel: cancel ALL open orders |
| amount_usd | number | pUSD dollars — to spend (market buy) or to cash out (withdraw; default full balance) |
| condition_id | string | Market condition ID (0x…). With `outcome` it resolves token_id; required for redeem. |
| confirm | boolean | Must be true to place orders / sign approvals / redeem. Omit for a dry-run preview. |
| expires_at | number | Unix seconds expiry (GTD only, ≥ ~3 min in the future) |
| max_fill_price | number | Market orders only: the worst fill you accept (0-1). Defaults to the worst fill of this session's last preview for the same token+side, so a bare confirm:true is already held to what was quoted — a book that moved past it is refused, not signed. Pass this to widen or tighten that bound. Buy = ceiling, sell = floor. |
| order_id | string | Order ID to cancel |
| order_type | string | Default: GTC for limit orders, FOK for market orders |
| outcome | string | Outcome label (e.g. 'Yes') — used with condition_id when token_id is omitted |
| post_only | boolean | Maker-only limit order (rejected if it would cross the book) |
| price | number | Limit price as probability (0–1). Omit for a market order. |
| size | number | Shares — required for limit orders and market sells |
| to_address | string | withdraw: destination address on Base (default: your agent wallet) |
| token_id | string | Outcome token ID (decimal ERC-1155 id from blockrun_markets clobTokenIds) |
blockrun_polymarket_readRead-only Polymarket positions/open orders plus executable live order previews, separated for MCP clients that enforce tool safety annotations| Parameter | Type | Description |
|---|---|---|
| action * | string | Read-only operation |
| amount_usd | number | preview: pUSD to spend on a market buy |
| condition_id | string | orders: optional market condition ID filter |
| expires_at | number | preview: GTD expiry in Unix seconds |
| order_type | string | preview: order type |
| outcome | string | preview: outcome label used with condition_id |
| post_only | boolean | preview: maker-only limit order |
| price | number | preview: limit probability; omit for market order |
| side | string | preview: order side |
| size | number | preview: shares for limits and market sells |
| token_id | string | preview: outcome token ID |
blockrun_pricePyth-backed realtime + OHLC — crypto / FX / commodity, plus the ticker catalog for 12 equity markets (equity quotes withdrawn 2026-09-05)| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| from | number | History window start (unix seconds). |
| limit | number | Max items for list (default 100, max 2000). |
| query | string | Free-text filter for list. |
| symbol | string | Ticker (required for price+history). e.g. BTC-USD, EUR-USD, XAU-USD. |
| to | number | History window end (unix seconds). |
blockrun_realfaceEnroll 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)| Parameter | Type | Description |
|---|---|---|
| action * | string | What to do |
| agent_id | string | Agent identifier for budget tracking and enforcement (enroll only). |
| group_id | string | Asset-group id from init (required for status and enroll; pass to init to refresh an expired H5 link). Not used by portrait. |
| image_url | string | Public HTTPS URL to a clear front-facing face image (JPG/PNG/WEBP, ≤10MB). Required for enroll and portrait. |
| name | string | Display name for the person/character (required for init, enroll, and portrait). |
blockrun_rpcRaw JSON-RPC on <!-- br:chains.rpc -->40<!-- /br:chains.rpc --> chains (Ethereum, Base, Solana, Bitcoin, Sui, NEAR, …) via Tatum| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| body | any | Full JSON-RPC 2.0 body or an array of them (batch). Overrides method/params when set. |
| method | string | JSON-RPC method, e.g. 'eth_blockNumber', 'eth_call', 'getSlot' (Solana), 'getblockchaininfo' (Bitcoin). Required unless 'body' is set. |
| network * | string | Chain key, e.g. 'ethereum', 'base', 'solana', 'bitcoin', 'arbitrum', 'polygon'. Unknown slugs pass through to the Tatum gateway. |
| params | any | JSON-RPC params array for the method, e.g. ['0xabc...', 'latest']. |
blockrun_searchGrok Live Search — web + news with citations| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| body | any | Request body. At minimum { query: '...' }. Sent as POST. |
| path | string | Endpoint sub-path under /v1/search/ (default empty = root /v1/search). Reserved for future surfaces. |
blockrun_speechElevenLabs TTS (Flash/Turbo/Multilingual/v3, 8 voices) + ByteDance Seed Audio (prompt-directed) + cinematic sound effects; free voice listing| Parameter | Type | Description |
|---|---|---|
| action | string | speak: text-to-speech (default). sound_effect: generate a sound effect. voices: list voices (free). |
| agent_id | string | Agent identifier for budget tracking and enforcement. |
| duration_seconds | number | Sound effect length in seconds (sound_effect only; default: auto) |
| input | string | speak: text to synthesize. sound_effect: description of the sound, e.g. 'rain on a tin roof, distant thunder' (max 1000 chars). |
| model | string | Speech model (speak only). seed-audio-1.0 is prompt-directed: voice/emotion/staging go in the input text, the voice param is ignored, and billing is per estimated second of output. |
| prompt_influence | number | How literally to follow the prompt, 0-1 (sound_effect only) |
| response_format | string | Audio format |
| speed | number | Playback speed 0.7-1.2 (speak only) |
| voice | string | Voice alias (sarah, george, laura, charlie, river, roger, callum, harry) or raw ElevenLabs voice_id. Default: sarah. |
blockrun_videoxAI 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 railblockrun_walletBalance, spending, agent budgets, setup QR, chain switch| Parameter | Type | Description |
|---|---|---|
| action | string | What to do |
| agent_id | string | Agent identifier for delegate/revoke/report actions |
| agent_limit | number | Budget limit in USD for this agent (required for delegate action) |
| budget_action | string | Budget action (for action='budget'). Defaults to 'check', which only reports. |
| budget_amount | number | Budget limit in USD (for budget_action='set') |
| chain | string | Target chain for action='chain'. Omit to view the current active chain. |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 7.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 76 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:13
- Starts other programs
- 8 callssrc/utils/keychain.ts:186, src/utils/keychain.ts:196, src/utils/keychain.ts:256
- Outbound network calls
- 13 callssrc/index.ts:73, src/utils/http.ts:21, src/utils/inline-image.ts:109
- Writes or deletes files
- 15 callssrc/utils/keychain.ts:517, src/utils/polymarket/creds.ts:105, src/utils/polymarket/creds.ts:111
- Lockfile
- package-lock.json
Pattern matches on the source text of 76 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 7.5K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README