lowob

Onchain Data APIs AI Agents Can Call: Dune, Allium, Nansen and More

An onchain data API lets your software, or an AI agent, query blockchain activity without running nodes. As of November 2026, Dune, Allium, Nansen, CoinGecko and Alchemy all offer an official MCP server, so an agent can call them directly. Pick Dune or Allium for SQL, Nansen for labeled wallets, CoinGecko for prices, Alchemy for raw chain access.

IN SHORT: Five major providers now let an agent connect over MCP (Model Context Protocol, the standard way to plug tools into an AI assistant). They differ on what they return, how they bill (credits, compute units, or per-call stablecoin payments) and how clearly they license the data. This review is based on vendor documentation and public pricing as of November 2026, not hands-on testing.

Key facts

Providers with an official MCP server Dune, Allium, Nansen, CoinGecko, Alchemy (checked November 28, 2026)
Widest stated chain coverage Allium, "150+ chains"
Dune MCP launch Blog post dated March 3, 2026, 100+ indexed blockchains
Lowest entry price with an API Free: CoinGecko keyless MCP, Nansen free plan (100 trial credits), Alchemy free tier (30M compute units a month)
Pay per call, no account Nansen: $0.01 (basic) or $0.05 (premium and smart money) per call in USDC via x402 or MPP
Nansen Pro $49 a month billed annually, $69 monthly, 2,000 credits
Alchemy pay as you go $0.52 per 1M compute units
Latency Not published by any of the five in the docs we read

Which onchain data APIs can an agent call today?

All five below document a hosted MCP server, which means you add one URL to Claude, ChatGPT, Cursor or your own agent and sign in. The real difference is what comes back.

  • SQL warehouses (Dune, Allium): the agent searches tables, writes SQL, runs it and reads the rows. Most flexible, most room for error.
  • Labeled intelligence (Nansen): the agent calls fixed endpoints such as smart money flows, holders or wallet profit and loss. Less flexible, much harder to get wrong.
  • Market data (CoinGecko): prices, market caps, and token and pool data across decentralized exchanges.
  • Node and data APIs (Alchemy): raw reads from the chain (balances, transactions, traces) plus NFT, price and portfolio endpoints.

Comparison table

Provider Chains (as stated) Freshness MCP / API License for LLM use Price
Dune 100+ indexed blockchains Indexed tables queried by SQL; no latency figure published Official remote MCP at api.dune.com/mcp/v1; OAuth or API key. REST API Terms ban scraping and limit-dodging; no LLM-specific clause in the terms we read; Dune doesn't guarantee accuracy API needs a trial or paid plan. Trial: 7 days, 2,500 credits. Dune's own post lists Analyst at $75 a month ($65 annual) with 4,000 credits; the post is undated, so confirm on the pricing page
Allium 150+ chains Separate realtime toolset (prices, balances, transactions, positions, PnL); no latency figure published Official remote MCP at mcp.allium.so; OAuth or bearer API key. SQL and realtime APIs Not stated in the docs we read; ask No public price list. SQL billed in Explorer Units (compute profile times run time); realtime calls 20 to 60 Developer Units each
Nansen 25+ or 35+ (the API page states both) Described as real-time; no latency figure published Official MCP at mcp.nansen.ai (curated and full catalog); OAuth or API key. REST API, CLI Not checked: the terms page didn't load for us Free: 100 trial credits, then a daily top-up to 10. Pro: $49 a month annual, $69 monthly, 2,000 credits. Or $0.01 to $0.05 per call in USDC
CoinGecko Not listed on the MCP page Not published Keyless public MCP, plus a keyed Pro MCP and a local npm server Paid plans allow commercial use with "Data provided by CoinGecko" and a link; no reselling, sublicensing or redistribution Demo: free, 10,000 credits a month. Basic: $29 to $35 a month (two price tables shown), 100,000 credits. Analyst: $129. Pro: $999, 2M credits
Alchemy 100+ chains Direct node reads Official remote MCP at mcp.alchemy.com/mcp, 168 tools; OAuth Not stated in the MCP docs we read Free: 30M compute units a month. Pay as you go: $0.52 per 1M compute units. Enterprise: custom

Prices and limits checked November 28, 2026. Vendor pages win if they disagree with this table.

How do these providers bill an agent?

Each bills in its own unit, so the same question costs differently depending on how your agent asks it.

Dune charges credits for the compute a query actually uses, plus export fees: 10 credits per MB on Analyst and 2 credits per MB on Plus. Credits reset each billing cycle and don't roll over. Some failed runs are still charged, including timeouts and runs you cancel after compute started; syntax errors aren't. The MCP server has a getUsage tool, so an agent can check its own spend.

Allium charges Explorer Units for SQL, scaled by compute profile and run time, and 20 to 60 Developer Units per realtime or Hyperliquid call. Batched calls multiply: 10 inputs cost 10 times one call. Search, docs, schema lookups and fetching results are free. One detail that matters: running SQL and then saving it as a query bills the compute twice, so Allium recommends creating the saved query with run_on_creation=true.

Nansen charges credits per endpoint, from 0 (search, account) to 1 (most profiler and token endpoints), 5 (smart money, historical), 25 (historical top holders, PnL leaderboard) and up to 100 and 400 for its own fast and expert agent endpoints. MCP tool calls bill to your Nansen API credits, not your AI subscription, and one prompt can trigger several calls.

CoinGecko counts call credits per month, and each MCP tool call makes one or more API requests against your plan.

Alchemy charges compute units, a weighted measure of how heavy each request is.

If you already know this: an agent that retries a failed SQL query three times pays for three runs on Dune if each one times out. Put a credit cap on queries (Dune supports per-query caps and overage limits) before you hand an agent the keys.

How does pay-per-call work for agents?

Nansen is the one provider here that lets an agent pay without an account. Its agentic payments accept USDC over x402 on Base, Solana or Monad, or over MPP (Machine Payments Protocol) on Tempo. An unpaid request returns HTTP 402 Payment Required, with a header describing the price and the shape of the response, so the agent can decide before it pays. Basic endpoints cost $0.01 a call; premium and smart money endpoints cost $0.05.

There are limits. Wallet label lookups, smart alerts and DeFi holdings need an account, and requests asking for premium labels are rejected before payment. For a production agent you'll still want a key. For a one-off research agent, per-call payment means no signup and a hard cost ceiling. See what agent payment protocols are for how x402 and MPP compare.

Sample agent query

Here's how one question flows through two providers. The tool names come from each vendor's docs; the question and outputs are illustrative.

Prompt: "Which tokens did smart money wallets buy most on Base in the last 7 days, and how did DEX volume for the top one change week over week?"

  1. Nansen MCP: the agent calls the smart money net flow tool (5 credits per the credits guide, or $0.05 per call over x402) to get the top tokens.
  2. Dune MCP: the agent calls searchTables to find DEX trade tables, createDuneQuery with SQL filtered to Base and the token, executeQueryById, then getExecutionResults.
  3. Check: the agent calls getUsage to report credits spent.

Illustrative cost: one Nansen call at $0.05 plus one Dune execution. The Dune cost depends on how much data the query scans, which is why you test with small date ranges first.

lowob score: how we rated them

We scored each provider out of 5 on four documented criteria, weighted equally: agent readiness (official MCP, OAuth, clear tool list), coverage (stated chains and data types), price transparency (public price per unit), and licensing clarity (written terms on commercial use and redistribution). We didn't score speed or accuracy, because we haven't tested them.

Provider Agent readiness Coverage Price transparency Licensing clarity lowob score
Dune 5 4 3 3 3.75
Allium 5 5 2 2 3.5
Nansen 5 3 5 2 3.75
CoinGecko 4 3 4 5 4.0
Alchemy 5 4 5 2 4.0

Scores reflect documentation as of November 28, 2026. A higher score means easier to evaluate and buy, not better data.

Verdict by use case

Use case Our pick Why
Ad hoc research and dashboards Dune SQL over 100+ chains, MCP can build visualizations and dashboards, and a large public query base
Wide chain coverage, realtime wallet data Allium 150+ chains plus a separate realtime toolset; ask for pricing before you build
"Who is buying" and wallet labels Nansen Labeled smart money and holder data in fixed endpoints, and pay-per-call for agents
Prices inside a product you sell CoinGecko The clearest commercial license of the five, with attribution
Building an app that reads and writes to chains Alchemy Node access plus data APIs, and a free tier large enough to prototype

Who this isn't for: if your agent only needs a token price once a day, a keyless CoinGecko call is enough, and the rest is overkill.

How we'd test it

  1. Same question, five providers. Ask each for 30-day DEX volume on one chain for one token and compare with a block explorer.
  2. Freshness. Pull a wallet balance right after a known transaction and time how long until each provider reflects it.
  3. Cost per answer. Run 50 realiztic agent prompts and record credits or dollars spent per completed answer, including retries.
  4. Failure behavior. Ask for a chain or table that doesn't exist and see whether the agent gets a clear error or invents an answer.
  5. Terms. Send each vendor the same written question: may we show your data to our users inside an LLM product, and with what attribution?

What we'd do

  1. Connect CoinGecko's keyless MCP and a Nansen free account this week; both cost nothing.
  2. Start a Dune trial on the day you have 20 real questions ready, because the 7 days and 2,500 credits go fast.
  3. Set credit caps and overage limits before any agent runs unattended.
  4. Log cost per answered question, not cost per call.
  5. Get the data license in writing before the data appears in anything customer-facing.
  6. Once you're past prototyping, ask Allium and Dune for enterprise quotes side by side.

Common questions

What is an onchain data API?

A paid service that indexes blockchains and lets your software ask questions of that data, such as balances, trades or wallet history, without running your own nodes. Some return raw chain data; others return cleaned, labeled tables you can query with SQL.

Which onchain data providers have an MCP server?

As of November 2026, Dune, Allium, Nansen, CoinGecko and Alchemy all document an official remote MCP server. Dune and Allium expose SQL querying, Nansen exposes labeled wallet and token data, CoinGecko exposes prices and DEX data, and Alchemy exposes node and data APIs.

Is there a free crypto data MCP server?

CoinGecko runs a keyless public MCP server with shared rate limits, and Nansen's free plan gives 100 trial credits plus a small daily top-up. Dune's API, and so its MCP server, needs a trial or paid plan.

Can an AI agent pay for onchain data without an account?

Yes, with Nansen. Its agentic payments let an agent pay per call in USDC over x402 or MPP, from $0.01 a call, with no API key. Most other providers still need an account and a key or OAuth sign-in.

Can I use onchain data from these APIs inside an LLM product?

Check the terms first. CoinGecko's paid plans allow commercial use with an attribution line but ban redistribution. None of the docs we read grant or restrict LLM use specifically, so get it in writing if your product shows the data to your own users.

What's the cheapest way to start?

Use CoinGecko's keyless server for prices, a Nansen free account for wallet questions, and a Dune trial (7 days, 2,500 credits) for SQL. That's enough to test an agent before you pay for anything.

How fresh is the data?

Vendors describe realtime endpoints but don't publish latency figures in the docs we read. Allium and Nansen separate realtime tools from historical ones. Measure it yourself against a block explorer before you rely on it for trading.

Sources

Last checked November 28, 2026. Written by Chris Wells, lowob.

How to cite this

Free to quote and link with credit. Please link to this page when you use a figure, chart or framework from it.

Cite as: Wells, C. (2026). Onchain Data APIs AI Agents Can Call: Dune, Allium, Nansen and More. lowob RESEARCH. Published 29 November 2026, updated 29 November 2026. https://lowob.com/research/onchain-data-apis-for-ai-agents/

BibTeX
@online{lowob2026onchaindataapisforaiagen,
  author  = {Wells, Chris},
  title   = {Onchain Data APIs AI Agents Can Call: Dune, Allium, Nansen and More},
  organization = {lowob},
  date    = {2026-11-29},
  urldate = {2026-11-29},
  url     = {https://lowob.com/research/onchain-data-apis-for-ai-agents/}
}

Using a chart? Each chart has its own link. Charts and data tables are licensed CC BY 4.0: reuse them with the credit line "Source: lowob RESEARCH" and a link to this page.

Changelog

29 Nov 2026: First published.

What Are Agent Payment Protocols? x402, AP2 and Others Explained

Read next