mcpField
N
nansen-token-research

nansen-token-research

github.com/nansen-aiOther144436 installsUpdated today
Repository

About nansen-token-research

A CLI skill for researching crypto tokens with Nansen, aimed at analysts tracking prices, holders, trading flows and performance across spot and perpetual markets. It combines token-level queries with guidance on authenticated use.

Key features

  1. 01Token information and OHLCV
  2. 02Holder and smart-money analysis
  3. 03Token flow and trade queries
  4. 04Spot and perpetual PnL data
  5. 05CSV and table output

Use cases

  1. 01Compare token price intervals
  2. 02Review smart-money holders and flows
  3. 03Inspect DEX trades and token PnL

MCP support

The README notes that existing OAuth/MCP `nansen:read` permissions remain unchanged; the skill itself documents Nansen CLI research commands.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nansen-ai/nansen-cli --skill nansen-token-research

After installing, type/nansen-token-researchin Claude Code to confirm it loaded.

Details

From the project README

Authentication

Browser login requests nansen:api for API-key-equivalent account API permissions; existing OAuth/MCP nansen:read semantics and separate wallet authorization are unchanged.

Before any research command or loop, require an explicitly selected API key or saved browser session. Run nansen auth status first. Its cached/unverified metadata does not prove credential validity or unlocked storage. Cached access-token expiry alone does not mean the session is unusable: the CLI normally renews a selected session automatically during an already-authorized research task, without another consent request or a separate account check. Stop on anonymous selection, invalid authentication state, blocked or uncertain renewal/cleanup, or an actual authentication failure, including rejected or expired refresh authority. Follow the CLI error guidance; use the free nansen account check when troubleshooting calls for it. Do not unset a failed key, erase a session or switch to anonymous access to retry.

Use nansen login for fresh browser approval within the documented platform scope, or configure a conventional API key. NANSEN_API_KEY overrides the saved session. OpenClaw's optional primaryEnv mapping preserves configured API-key injection; it is not a required-key gate or proof of authentication. Normal credits and entitlements apply. Login does not purchase credits. Browser login is available in CLI 2.0.0 within the macOS arm64 preview scope.

API keys and browser sessions use the same automatic x402 payment behavior: a supported HTTP 402 challenge can spend funds from the configured wallet under existing wallet authorization, payment policy and spending limits. Each call, including calls in loops, can incur a payment. Authentication, authorization and session-renewal failures never trigger payment; login verification and nansen account never pay automatically. Anonymous x402 remains available as a separate paid workflow requiring explicit user intent and payment setup. Do not run this research workflow anonymously or switch to anonymous access after authentication fails.

Token Deep Dive

All commands: nansen research token <sub> [options]

--chain required for spot endpoints. Use --token <address> for token-specific endpoints.

Info & Price

nansen research token info --token <addr> --chain solana
nansen research token ohlcv --token <addr> --chain solana --timeframe 1h

Timeframes: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, 1M

Holders

nansen research token holders --token <addr> --chain solana
nansen research token holders --token <addr> --chain solana --smart-money

Flows

nansen research token flows --token <addr> --chain solana --days 7
nansen research token flow-intelligence --token <addr> --chain solana
nansen research token who-bought-sold --token <addr> --chain solana

flow-intelligence breaks down by label: whales, smart traders, exchanges, fresh wallets, public figures.

DEX Trades

nansen research token dex-trades --token <addr> --chain solana --limit 20

PnL

nansen research token pnl --token <addr> --chain solana --sort total_pnl_usd:desc

Perps (no --chain)

nansen research token perp-trades --symbol ETH --days 7
nansen research token perp-positions --symbol BTC
nansen research token perp-pnl-leaderboard --symbol SOL

Flags

FlagPurpose
--chainRequired for spot endpoints (ethereum, solana, base, etc.)
--tokenToken address (alias: --token-address)
--symbolToken symbol for perp endpoints (e.g. BTC)
--timeframeOHLCV interval
--smart-moneyFilter to SM wallets only (holders)
--daysLookback period (default 30)
--sortSort field:direction (e.g. total_pnl_usd:desc)
--fieldsSelect specific fields
--tableHuman-readable table output
--format csvCSV export

Notes

  • Perp endpoints use --symbol (e.g. BTC), not --token.
  • holders --smart-money returns UNSUPPORTED_FILTER for tokens without SM tracking.
  • flow-intelligence may return all-zero flows for illiquid tokens.

Comments

Markdown supported