For AI agents
Blockchain data for AI agents
Give your agent read access to 23 EVM chains— balances, logs, contract calls, traces — from NodeFlare's own bare-metal nodes. Two integration paths, both keyless: an MCP server for agents in Claude, Cursor or any MCP client, and x402 pay-per-call for autonomous agents that settle in USDC.
Onchain Answer Engine
Ask a plain-English question about any wallet or token and get back a cited verdict in one call — “Is this token a scam?”, “What does this wallet hold?”. NodeFlare’s own model plans the on-chain lookups, runs them across 23 chains on our nodes, and synthesizes a sourced answer — including the young chains(Zircuit, Robinhood, Plasma, Ink) that big indexers leave as empty shells. It’s the pre-trade due-diligence layer for trading agents— the on-chain safety check a brokerage’s agentic-trading MCP doesn’t run.
curl -s https://rpc.nodeflare.app/answer \
-H "Authorization: Bearer nf_live_…" \
-H "content-type: application/json" \
-d '{"question":"Is token 0xdAC17…ec7 on eth a scam?"}'
# → { "answer": "Tether USD — LOW RISK. Verdict: LOOKS LEGIT.",
# "plan": { "calls": [{ "tool": "token_safety", … }] }, "evidence": [ … ] }Pay per call over x402 ($0.01 in USDC, no account) at /answer/x402, use a free key at /answer, or call the onchain_answer MCP tool. Listed in the x402 Bazaar.
1. MCP server
Claude Code · Cursor · Codex · ClineAdd NodeFlare to your MCP client and the agent gets tools for get_block_number, get_balance, eth_call, get_logs and rpc_call across all chains.
Claude Code — one command
claude mcp add nodeflare -- npx -y nodeflare-mcp
Cursor · Windsurf · Cline — add to the client’s mcp.json
{
"mcpServers": {
"nodeflare": {
"command": "npx",
"args": ["-y", "nodeflare-mcp"]
}
}
}OpenAI Codex — ~/.codex/config.toml
# ~/.codex/config.toml [mcp_servers.nodeflare] command = "npx" args = ["-y", "nodeflare-mcp"]
Published on npm as nodeflare-mcp and in the official MCP Registry. Set NODEFLARE_API_KEY for higher limits, or X402_PRIVATE_KEY to pay heavy calls per request.
Remote MCP — hosted, zero install
Prefer not to run anything locally? Add NodeFlare as a remote MCP server — just a URL. Works as a Claude Custom Connector, a ChatGPT connector, or in any client that speaks Streamable-HTTP MCP.
https://mcp.nodeflare.app/mcp
Anonymous free-tier reads, no key. Heavy methods (eth_getLogs, trace) need a key — run the npm server with NODEFLARE_API_KEY for those.
Claude Code plugin
In Claude Code, install the MCP server and ready-made recipe commands (/nodeflare:balance, :token, :tx, :logs, :gas) in one step:
claude plugin marketplace add Nodeflare-app/nodeflare-mcp claude plugin install nodeflare
ElizaOS plugin
Building an ElizaOS agent? The plugin-nodeflareplugin adds read-only on-chain data & agent-intelligence — wallet reports, token safety, approvals, tx simulation — across 23 chains, no wallet or private key:
elizaos plugins add plugin-nodeflare
Python — LangChain · CrewAI · LlamaIndex
Building a Python agent? The nodeflare package ships framework-native tools for LangChain, CrewAI and LlamaIndex — token safety, wallet reports, approvals, balances, tx simulation and the Onchain Answer Engine across 23 chains, including the young chains big indexers skip. One call returns ready-to-bind tools:
pip install "nodeflare[langchain]" # or [crewai] / [llamaindex] from nodeflare.langchain import get_nodeflare_tools tools = get_nodeflare_tools() # 6 on-chain tools · uses NODEFLARE_API_KEY
Core install is dependency-free; each framework is an optional extra. On PyPI as nodeflare.
2. Pay per call (x402)
autonomous agents · USDCFor agents with a wallet: pay per request in USDC, no account. The endpoint returns HTTP 402 with a price; your x402 client signs and retries. From $0.001/call — see the x402 page.
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY); // USDC on Base
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
// Agent pays ~$0.001 per call, no account:
await pay("https://rpc.nodeflare.app/base/x402", { method: "POST", /* ... */ });23
Chains
No
Account needed
$0.001/call
From
MCP Registry + x402 Bazaar
Discovery
AI agents & blockchain RPC — FAQ
How do I add NodeFlare to Claude Code, Cursor or Codex?
In Claude Code, run `claude mcp add nodeflare -- npx -y nodeflare-mcp`. In Cursor, Windsurf or Cline, add {"mcpServers":{"nodeflare":{"command":"npx","args":["-y","nodeflare-mcp"]}}} to the client's mcp.json. In OpenAI Codex, add an [mcp_servers.nodeflare] block to ~/.codex/config.toml with command "npx" and args ["-y","nodeflare-mcp"]. Or add the hosted remote server https://mcp.nodeflare.app/mcp with zero install (Claude Custom Connector, ChatGPT, or any Streamable-HTTP MCP client). All keyless for standard reads; set NODEFLARE_API_KEY for heavy methods.
How do AI agents access blockchain data?
Two ways with NodeFlare. (1) Install the MCP server (nodeflare-mcp) so an agent in Claude, Cursor or any MCP client can call read tools like get_balance, get_logs and rpc_call directly. (2) Have the agent pay per request over x402 in USDC — no account or API key. Both cover 23 EVM chains.
Is there an MCP server for EVM / blockchain RPC?
Yes, two ways. Run it locally — an open-source npm package (nodeflare-mcp), also in the official MCP Registry (io.github.Nodeflare-app/nodeflare-mcp) — or connect the hosted remote MCP server at https://mcp.nodeflare.app/mcp with zero install, as a Claude Custom Connector or ChatGPT connector. Both expose JSON-RPC on 23 chains as agent tools. Standard reads are free with no key; heavy methods (eth_getLogs, trace, debug) work with a free API key or per-call x402 payment.
How can an autonomous agent pay for RPC without an account?
Over x402: the agent POSTs to https://rpc.nodeflare.app/{chain}/x402, receives an HTTP 402 with the price, signs a USDC authorization, and retries — settlement happens on-chain (Base, Polygon or Arbitrum). From $0.001 per call, priced by compute units. No signup, no key.
Which chains can agents query?
All 23: Ethereum, Base, BNB Chain, Arbitrum, Optimism, Avalanche, HyperEVM, Polygon, and young chains like Robinhood Chain, Plasma, Ink, Zircuit, BOB and Soneium. Beyond raw RPC, the same chains carry NodeFlare's Agent Intelligence tools (balances, portfolio, approvals, simulation, wallet report, token safety) — a unified data layer over the young chains the big indexers leave as empty shells, so an agent gets composed answers there, not just on the majors.
Are the NodeFlare endpoints discoverable by agents?
Yes. The MCP server is listed in the official MCP Registry, and every x402 endpoint is cataloged in the Coinbase x402 Bazaar — the discovery layer agents search (including over MCP) to find and pay for services autonomously.
Does NodeFlare have LangChain, CrewAI or LlamaIndex tools?
Yes. The nodeflare Python package (pip install "nodeflare[langchain]", or [crewai] / [llamaindex]) exposes framework-native tools in one call — get_nodeflare_tools(). They wrap NodeFlare's on-chain intelligence: token safety, wallet reports, token approvals, multi-chain balances, transaction simulation and the natural-language Onchain Answer Engine across 23 EVM chains, including young chains (Robinhood, Plasma, Ink, Zircuit) that Alchemy and Moralis leave empty. The core client is dependency-free; set a free NODEFLARE_API_KEY to unlock the deep checks and the Answer Engine.
Go deeper
- RPC for AI Agents (integration guide) → — viem, ethers, wagmi, MCP servers, AgentKit, GOAT
- Onchain tools & intelligence for AI agents → — the agent use-case: token-safety, wallet data, Answer Engine, no account
- Due-diligence for Robinhood Chain agents → — pre-trade token-safety on a chain others skip
- Token Safety API → — check_token_safety: scam / honeypot screening before a trade
- x402 pay-per-request → — pricing and full protocol flow
- x402 developer docs → — headers, client setup, examples
- nodeflare-mcp on npm → — tools, env vars, source
- plugin-nodeflare on npm → — the ElizaOS plugin
- nodeflare on PyPI → — LangChain, CrewAI & LlamaIndex tools for Python agents
- llms.txt → — machine-readable overview for LLMs
Ship your agent on real chain data
23 chains, own dedicated nodes, no account to start. Free key for higher limits.
npx -y nodeflare-mcpGet a free key →