BlockRun MCP
Lets your AI agent pull live web search, research, prediction-market and crypto data, and place Polymarket trades, paying per call.
389 stars on GitHubby BlockRunLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add blockrun -- npx -y @blockrun/mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
BLOCKRUN_WALLET_KEY | Optional: EVM private key (0x-prefixed hex) for USDC payments on Base; also the Polymarket signer. If not set, a wallet is auto-generated. | No |
SOLANA_WALLET_KEY | Optional: Solana private key (bs58) for USDC payments on Solana. Setting it selects the Solana chain. If not set, a wallet is auto-generated. | No |
BLOCKRUN_API_KEY | Optional: BlockRun account API key; bills your prepaid balance instead of a wallet (no per-call network fee). Takes priority over a wallet when set. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
What is the current Polymarket probability that Bitcoin hits 100k this year?
Find the top 5 papers on RAG from the last 30 days.
What it is
BlockRun MCP gives your agent 19 tools for markets, research, web search, images, video and on-chain data. You pay per call, either from a self-custody USDC wallet using the x402 protocol, or with a BlockRun API key and account credit. It can also place real trades on Polymarket from your wallet.
What it can do
blockrun_chat: chat with LLMs, with a free modeblockrun_dex: DEX data, in the free tierblockrun_price: crypto prices, free for cryptoblockrun_models: list modelsblockrun_polymarket: read odds and place confirm-gated trades- Live web and news search
- Image and video generation
- On-chain queries across 40 chains
When to use
- βΊWhen you want live odds or prices that your agent cannot know by itself.
- βΊWhen you want to search the web and X/Twitter from your agent and pay only per call.
- βΊWhen you want your agent to place a Polymarket bet after you confirm it.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
polymarketLets your agent look up Polymarket prediction markets, including event odds, current prices, order books, and price history, with no account needed.blockrunLets your agent use outside AI models and tools, such as image generation or live X data, that Claude does not offer itself.ccxtLets your agent pull free public crypto market data, such as candles and prices, from more than 100 exchanges with no API key.Frequently asked questions
Is it free?
Open source under the MIT license. Some tools are free, such as free chat mode and crypto prices. Other calls cost fractions of a cent each.
How do I pay?
Either USDC in a wallet on Solana, Base or Arc, or a BlockRun API key with card or wire-funded credit.
Can it spend my money by itself?
You can set BLOCKRUN_CONFIRM_SPEND=on so the agent asks before any paid call above your threshold. A budget limit is also available.
Is my wallet key safe?
The readme says the key stays on your machine at ~/.blockrun/.session and BlockRun cannot move your funds.
Can I trade with an API key?
No. Trading on Polymarket needs a wallet keypair to sign.
Which clients work?
Claude Code, Codex CLI, OpenClaw, Claude Desktop, Cursor, VS Code, Gemini CLI, Grok and Windsurf.
If it does not work
- βΊIf the server does not connect with nvm or Homebrew Node, pass your PATH with -e PATH=$PATH or use the full path from which npx.
- βΊFor Grok, raise startup_timeout_sec above the default 30 seconds, because the first npx run downloads packages.
- βΊFund the wallet with USDC, or set BLOCKRUN_API_KEY, if paid calls fail.
5 new skills a week. 1 minute to read.