mcpField
C
codex-supergraph

codex-supergraph

github.com/codex-dataData & databases0397 installsUpdated 2w ago
Repository

About codex-supergraph

codex-supergraph is an agent skill for constructing authenticated GraphQL requests to Codex’s on-chain data API. It helps agents discover and query token, wallet, launchpad, and prediction-market data, including live streams.

Key features

  1. 01Guided GraphQL operation selection
  2. 02On-chain token and pair data
  3. 03Wallet, holder, and balance queries
  4. 04Risk and liquidity information
  5. 05Prediction-market data and streams

Use cases

  1. 01Find trending or newly created tokens
  2. 02Inspect token risk and liquidity
  3. 03Track wallet balances and holders
  4. 04Query prediction events and markets

MCP support

The skill references Codex Docs MCP setup for coding tools; its primary interface is the Codex GraphQL API.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/codex-data/skills --skill codex-supergraph

After installing, type/codex-supergraphin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
apis.md
endpoint-playbook.md
gotchas.md
launchpads.md
migrations.md
prediction-markets.md
query-templates.md
token-risk.md
tooling-and-mcp.md
wallets-and-balances.md

Details

From the project README

Codex Supergraph Data

Codex provides real-time on-chain data — token prices, charts, holders, wallets, launchpads, token risk and prediction markets — via a single GraphQL API across 100+ networks. Full documentation: docs.codex.io. For anything this skill does not cover, fetch docs.codex.io/llms.txt first and follow the page links from there.

Authentication

Pass $CODEX_API_KEY in the Authorization header if available. Get an API key at dashboard.codex.io/signup (one-time $1 activation, no recurring cost on the entry plan). If the server returns 402 Payment Required, use the codex-gateway skill to handle the payment flow.

If both a local and global copy of this skill exist, the local copy takes precedence.

Summary

Use this skill to produce valid Codex GraphQL requests using API key authentication.

HTTP endpointhttps://graph.codex.io/graphql
WebSocket endpointwss://graph.codex.io/graphql
Schema (SDL)https://graph.codex.io/schema/latest.graphql
Introspection JSONhttps://graph.codex.io/schema/latest.json
API-key authAuthorization: <key> or Authorization: Bearer <token>
Docs index for agentshttps://docs.codex.io/llms.txt

Session preflight (required)

Run once and cache:

curl -sS https://graph.codex.io/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: $CODEX_API_KEY" \
  --data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'

Use network IDs from this result before expensive requests. Networks are added and retired; never hard-code a list.

Operation selection

NeedOperation
NetworksgetNetworks, filterNetworks (ranked network stats), getNetworkStatus (indexing lag)
Token discovery/searchfilterTokens (live twin onFilterTokensUpdated)
Trending tokensfilterTokens with trendingScore24 ranking
Newest tokensfilterTokens ranked by createdAt DESC
Token categories (AI, memes, RWA, ...)categories, categoryTokens, filterTokens with categories filter
Token metadatatoken, tokens
Token pricesgetTokenPrices
Pairs for a tokenlistPairsWithMetadataForToken
Pair screenerfilterPairs
Pair metadatapairMetadata, getDetailedPairStats
Pair OHLCVgetBars
Token OHLCVgetTokenBars
SparklinestokenSparklines
Token eventsgetTokenEvents
Maker eventsgetTokenEventsForMaker
Windowed token change statsgetDetailedTokenStats
Token risk (scam, honeypot, tax)token { risk } (incl. buyTax / sellTax), filterTokens / filterPairs risk filters, simulateTokenContract + getSimulateTokenContractResults for a fresh run
Liquidity lockedliquidityMetadataByToken, liquidityMetadata; liquidityLocksV2 for holder/vesting detail
Wallet leaders for a tokenfilterTokenWallets, tokenTopTraders
Wallet screenerfilterWallets
Wallet chart/statswalletChart, detailedWalletStats
Wallet balances / portfoliobalances, refreshBalances
Holdersholders (live twin onHoldersUpdated)
Top-10 concentrationtop10HoldersPercent
Snipers / bundlers / insiderstokenWalletStats
Wallet label vocabularywalletLabelTypes
Launchpad rankingsfilterLaunchpads
Launchpad streamsonLaunchpadTokenEventBatch, onLaunchpadTokenEvent
Live single priceonPriceUpdated
Live multi-priceonPricesUpdated
Live token eventsonTokenEventsCreated, onEventsCreated (pair), onEventsCreatedByMaker
Live bars/pairsonBarsUpdated, onPairMetadataUpdated, onTokenBarsUpdated
Live balances / statsonBalanceUpdated, onDetailedTokenStatsUpdated
Short-lived keyscreateApiTokens, apiTokens, apiToken, deleteApiToken
Webhooks (server-side alerts)createWebhooks, deleteWebhooks, getWebhooks
Prediction event discoveryfilterPredictionEvents
Prediction market discoveryfilterPredictionMarkets
Prediction event detaildetailedPredictionEventStats
Prediction market chartpredictionMarketBars
Prediction multi-market chartpredictionEventTopMarketsBars
Prediction event chartpredictionEventBars
Prediction tradespredictionTrades
Prediction token holderspredictionTokenHolders
Prediction categoriespredictionCategories
Prediction trader leaderboardfilterPredictionTraders
Prediction trader profiledetailedPredictionTraderStats
Prediction trader positionsfilterPredictionTraderMarkets
Prediction trader chartpredictionTraderBars

Default discovery path: start with filterTokens. Pre-confirmation streams use the commitmentLevel argument (Preprocessed Solana only, Processed, Confirmed) on the event and bar subscriptions; the old onUnconfirmed* subscriptions are deprecated.

Rules

  • Never print raw API keys.
  • Validate networkId first.
  • Keep selection sets minimal until shape is confirmed.
  • Use onPricesUpdated instead of many single-token subscriptions.
  • Wallet, holder and balance queries need a Growth or Enterprise plan; empty results on the entry plan are plan gating, not missing data.
  • Network-wide firehose streams (BarFeed, PriceFeed, EventFeed) are enabled per API key; "tokenId required" on onTokenBarsUpdated means the key lacks the entitlement.
  • Read risk before isScam when the question is about safety, and never treat a null risk as safe.
  • Check references/gotchas.md before debugging an unexpected result.

References

FilePurpose
references/gotchas.mdCommon failure points — check here first
references/query-templates.mdQuery + websocket templates with examples
references/endpoint-playbook.mdOperation selection heuristics by intent, page data flows
references/apis.mdEndpoint/auth matrix, network ids, pagination, rate limits
references/token-risk.mdRisk verdicts, contract simulator, safety signals, liquidity locks
references/wallets-and-balances.mdWallet PnL, screener, balances, holders, labels, plan gating
references/launchpads.mdLaunchpad streams, screening, rankings, lifecycle
references/prediction-markets.mdPrediction market queries — events, markets, traders, charts
references/migrations.mdEndpoint mappings from Birdeye, Mobula, CoinGecko, Bitquery, Dune Sim, Serialized
references/tooling-and-mcp.mdCodex Docs MCP setup for coding tools

Links

Comments

Markdown supported