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

<section id="answer">

**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.

</section>

**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.

<section id="compare">

### 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 |

</section>

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](https://lowob.com/research/what-are-agent-payment-protocols/) 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 realistic 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.

## Next move

Write down the 10 onchain questions your team asks every week, then run them through two of these servers this week. Pair this with our list of [financial data providers your agents can call today](https://lowob.com/research/the-financial-data-providers-your-agents-can-call-today/), and if your questions are about protocol economics, read [protocol revenue, fees and real yield](https://lowob.com/research/protocol-revenue-fees-real-yield-and-what-to-report/) first.

## Sources

- [Dune Docs: Dune MCP](https://docs.dune.com/api-reference/agents/mcp)
- [Dune blog: Dune MCP (March 3, 2026)](https://dune.com/blog/dune-mcp)
- [Dune Docs: API billing](https://docs.dune.com/api-reference/overview/billing)
- [Dune Docs: API rate limits](https://docs.dune.com/api-reference/overview/rate-limits)
- [Dune Docs: Credits and billing overview](https://docs.dune.com/resources/credits-billing/overview)
- [Dune Docs: Pricing FAQs](https://docs.dune.com/learning/how-tos/pricing-faqs)
- [Dune Community: How you spend credits on Dune is changing](https://community.dune.com/blog/credits-changing)
- [Dune Terms of Service](https://dune.com/terms)
- [Allium Docs: MCP overview](https://docs.allium.so/ai/mcp/overview)
- [Allium Docs: MCP tools reference](https://docs.allium.so/ai/mcp/tools-reference/overview)
- [Allium Docs: MCP billing and limits](https://docs.allium.so/ai/mcp/tools-reference/billing-and-limits)
- [Allium Docs: Usage and billing](https://docs.allium.so/app/organization-management/usage-and-billing)
- [Nansen Docs: MCP overview](https://docs.nansen.ai/mcp/overview)
- [Nansen Docs: Credits and pricing guide](https://docs.nansen.ai/getting-started/credits)
- [Nansen Docs: Agentic payments](https://docs.nansen.ai/getting-started/agentic-payments)
- [Nansen API](https://nansen.ai/api)
- [CoinGecko Docs: MCP server](https://docs.coingecko.com/ai-integration/mcp-server)
- [CoinGecko API pricing](https://coingecko.com/api/pricing)
- [Alchemy blog: Alchemy MCP server](https://www.alchemy.com/blog/alchemy-mcp-server)
- [Alchemy pricing](https://www.alchemy.com/pricing)

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