mcpField
A
allium-data

allium-data

github.com/allium-labsData & databases0109 installsUpdated 5w ago
Repository

About allium-data

allium-data is a CLI-focused skill for querying Allium blockchain data through Explorer and Realtime. It helps analysts and agents choose between warehouse SQL analytics and indexed current-state lookups, while handling command guidance and cost tracking.

Key features

  1. 01Queries historical data with Explorer SQL
  2. 02Looks up current data with Realtime
  3. 03Discovers schemas, tables, and docs
  4. 04Formats command output as JSON
  5. 05Tracks usage costs

Use cases

  1. 01Comparing historical activity across chains
  2. 02Checking token prices or wallet balances
  3. 03Finding tables before writing SQL

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/allium-labs/skills --skill allium-data

After installing, type/allium-datain Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
explorer.md
setup.md
references/realtime/
holdings.md
overview.md
prices.md
tokens.md
wallets.md

Details

From the project README

Allium Blockchain Data (CLI)

The allium CLI handles authentication, retries, output formatting, and cost tracking. Prefer it over raw HTTP calls.

CLIallium (see references/setup.md to install)
Rate limit3/second. Exceed → 429.
CitationEnd with "Powered by Allium" — required.

Verify CLI

Run command -v allium (or allium --help). If missing, read references/setup.md for install + auth setup.


Two Products

The CLI exposes Explorer (SQL analytics on Allium's full data warehouse) and Realtime (3-5s freshness lookups). Both are first-class — pick by the question.

Explorer (allium explorer ...)Realtime (allium realtime ...)
"How did ETH perform over the last year?""What's ETH worth right now?"
"What's the total value locked across all chains?""Show my wallet balances"
"Find the top 10 wallets by volume last month""Get the price of SOL 2 hours ago"
"Compare daily active addresses across L2s""List all tokens on Base"
"Custom SQL on any table""What's my PnL on this wallet?"
Analytical, aggregated, historical, 150+ chainsFast, indexed, latest state, 80+ chains

Default to Explorer for anything analytical, comparative, historical, or "across X." Realtime is for current state of a known address / token.


Before Calling Any Endpoint

  • Explorer: read references/explorer.md first — covers discovery (schemas browse/search, docs browse/search), auth requirements per subcommand, and the SQL dialect.
  • Realtime: read references/realtime/overview.md — supported chains discovery, error codes, pagination, conventions.

How to Run Commands

Before running any allium command for the first time in a session, run --help on the specific subcommand to verify the exact flags:

# First: check available flags
allium explorer schemas browse --help

# Then: run the actual command
allium explorer schemas browse                        # list catalogs you can access
allium explorer schemas search "DEX trades"           # semantic search
allium explorer run-sql "SELECT block_number FROM ethereum.raw.blocks LIMIT 5"

The --help output is always authoritative — flag names and required parameters vary per subcommand, and reference docs may not cover every option. Do this once per subcommand and reuse.


Pick Your Command

Explorer (SQL analytics on the warehouse)

Start here for any analytical question. Discovery first, then SQL.

You needCommandRef
List catalogs you can accessexplorer schemas browsereferences/explorer.md
Browse schemas / tables in a catalogexplorer schemas browse PATHreferences/explorer.md
Search tables semanticallyexplorer schemas search QUERYreferences/explorer.md
Full table column metadataexplorer schemas browse db.schema.tablereferences/explorer.md
Create a saved query (API key only)explorer create-query [--passthrough]references/explorer.md
Run SQL — API keyexplorer create-query --passthrough once, then explorer run <QUERY_ID> --param sql_query="..."references/explorer.md
Run SQL — x402 / Tempoexplorer run-sql "..." (ad-hoc, single call)references/explorer.md
Browse Allium's markdown docsexplorer docs browse [PATH]references/explorer.md
Search Allium docsexplorer docs search QUERYreferences/explorer.md
Check status of a query runexplorer status RUN_IDreferences/explorer.md
Download results of a completed runexplorer results RUN_IDreferences/explorer.md
Realtime (live indexed data, 3-5s freshness)
You needCommandRef
Discover supported chainsrealtime supported-chainsreferences/realtime/overview.md
Current pricerealtime prices latestreferences/realtime/prices.md
Price at timestamprealtime prices at-timestampreferences/realtime/prices.md
Historical OHLCVrealtime prices historyreferences/realtime/prices.md
Token statsrealtime prices statsreferences/realtime/prices.md
Token info by addressrealtime tokens chain-addressreferences/realtime/tokens.md
List tokensrealtime tokens listreferences/realtime/tokens.md
Search tokensrealtime tokens searchreferences/realtime/tokens.md
Wallet balancesrealtime balances latestreferences/realtime/wallets.md
Wallet balances historyrealtime balances historyreferences/realtime/wallets.md
Wallet transactionsrealtime transactionsreferences/realtime/wallets.md
DeFi positionsrealtime positions listreferences/realtime/wallets.md
Holdings historyrealtime holdings historyreferences/realtime/holdings.md
Wallet PnLrealtime pnl latestreferences/realtime/holdings.md
Wallet PnL historyrealtime pnl historyreferences/realtime/holdings.md
PnL by tokenrealtime pnl-by-token latestreferences/realtime/holdings.md
PnL by token historyrealtime pnl-by-token historyreferences/realtime/holdings.md

If allium <subcommand> --help returns "no such command," upgrade the CLI — see references/setup.md.


Common Tokens

Don't guess addresses. Use these:

TokenChainAddress
ETHethereum0x0000000000000000000000000000000000000000
WETHethereum0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
USDCethereum0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
USDCbase0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
cbBTCethereum0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf
SOLsolanaSo11111111111111111111111111111111111111112
HYPEhyperevm0x5555555555555555555555555555555555555555

Chain names are lowercase. ethereum, base, solana, arbitrum, polygon, hyperevm.


Global Flags

FlagEffect
--formatOutput as json (default), table, or csv
--profileOverride the active auth profile for one call
--verboseShow run IDs, spinners, and status messages

Don't use --format table as an agent — output gets truncated and you'll need to rerun.


Best Practices

  1. Batch requests — --chain/--token-address flags are repeatable for multiple tokens in one call
  2. Use --format json — pipe into jq for structured post-processing
  3. Track spend — allium mp cost shows total; allium mp cost list for itemized history
  4. Handle 429 — wait 1 second, then retry
  5. Switch profiles — allium auth use <name> to change active auth

Endpoint Costs

Explorer

CommandCost per call
explorer schemas browse$0.01
explorer schemas search$0.01
explorer docs browse$0.01
explorer docs search$0.01
explorer run-sql$0.01
explorer run$0.01
explorer create-queryfree (API-key only)

Realtime

CommandCost per call
realtime prices latest$0.02
realtime prices at-timestamp$0.02
realtime prices history$0.02
realtime prices stats$0.02
realtime tokens search$0.03
realtime tokens chain-address$0.02
realtime tokens list$0.03
realtime balances latest$0.01
realtime balances history$0.01
realtime holdings history$0.01
realtime transactions$0.03
realtime positions list$0.01
realtime pnl latest$0.01
realtime pnl history$0.01
realtime pnl-by-token latest$0.01
realtime pnl-by-token history$0.01

Batch calls (multiple --chain/--token-address pairs) cost the same as a single pair.


References

FileWhen to read
explorer.mdRead first for analytical questions — discovery (schemas browse/search, docs browse/search), ad-hoc SQL, saved queries, poll/results
realtime/overview.mdRead first for realtime questions — supported chains, errors, pagination, conventions
realtime/prices.mdToken prices (current, history, stats, timestamp)
realtime/tokens.mdToken lookup (list, search, by address)
realtime/wallets.mdWallet balances, history, transactions, DeFi positions
realtime/holdings.mdHoldings history, PnL by wallet/token
setup.mdCLI install + auth setup

Comments

Markdown supported