Beginner5 min read
Updated May 2, 2026Edit on GitHub

Claude Code — MCP Server

Configure the NACHO API MCP server in Claude Code to give Claude direct access to 16 Cardano blockchain tools.

The nacho-api-mcp package is a Model Context Protocol server that gives Claude Code 16 tools for querying live Cardano blockchain data.

Quick setup

Add this to your .claude/settings.json (project-level) or ~/.claude/settings.json (global):

{
  "mcpServers": {
    "nacho-api": {
      "command": "npx",
      "args": ["-y", "nacho-api-mcp"],
      "env": {
        "NACHO_API_KEY": "napi_your_key_here",
        "NACHO_DEFAULT_NETWORK": "mainnet"
      }
    }
  }
}

Restart Claude Code. The 16 nacho_* tools will be available immediately.

Free account includes a free API key.

Sign up at https://app.nacho.builders — your API key is created automatically. The free tier covers all standard and explorer tools within rate limits.

Environment variables

VariableRequiredDefaultDescription
NACHO_API_KEYYesYour API key (napi_xxx). Required for all endpoints.
NACHO_DEFAULT_NETWORKNomainnetDefault network when tools don't specify one (mainnet or preprod)
NACHO_API_BASE_URLNohttps://api.nacho.buildersOverride for custom deployments

Available tools (16)

Standard tools (free tier key)

ToolDescription
nacho_get_priceCurrent ADA/USD exchange rate
nacho_get_protocol_paramsCardano network protocol parameters
nacho_get_pool_statusNACHO pool live stats (stake, blocks, delegators)
nacho_get_pool_infoAny pool's metadata and fees by pool ID
nacho_get_stake_accountStake account delegation status and rewards
nacho_get_tx_statusTransaction confirmation status and block info

Explorer tools (free tier key)

ToolDescription
nacho_get_network_statsEpoch, block height, supply, active stake
nacho_get_blocksRecent blocks with fees and output
nacho_get_blockBlock details by number or hash
nacho_get_transactionFull transaction with inputs, outputs, tokens
nacho_get_addressAddress type, balance, token and UTxO counts
nacho_get_address_utxosAddress UTxOs with token details
nacho_get_pool_detailFull pool info including relays and owners
nacho_get_drepsGovernance DRep list with voting power

Advanced tools

ToolDescription
nacho_graphql_queryRun any GraphQL query over the Cardano DB-Sync schema (all tiers)
nacho_submit_transactionSubmit a signed Cardano transaction (CBOR hex) — free: 10 tx/hr, paid: unlimited

Example prompts

Once configured, ask Claude Code:

  • "What's the current ADA price and which epoch are we in?"
  • "Look up pool NACHO and show me its current fees and active stake"
  • "Check if transaction abc123...def was confirmed"
  • "Show me the last 5 blocks on mainnet"
  • "What tokens does addr1... hold?"

Alternative: global install

If you prefer a permanent global install over npx:

npm install -g nacho-api-mcp

Then use "command": "nacho-api-mcp" without the npx args in your settings.

Testnet

Set NACHO_DEFAULT_NETWORK to preprod to work with the Cardano pre-production testnet (tADA, not real ADA). Individual tools also accept a network parameter to override the default per-call.

Was this page helpful?