npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-anvil-api

v1.2.0

Published

MCP server for the Ada Anvil Cardano API — build transactions, mint NFTs, manage smart contracts, and interact with the Cardano blockchain

Readme

mcp-anvil

MCP server for the Ada Anvil Cardano API. Build transactions, mint NFTs, manage smart contracts, and interact with the Cardano blockchain from any MCP-compatible AI assistant.

Quick Start

Claude Code

claude mcp add mcp-anvil -e ANVIL_API_KEY=your_key -e ANVIL_NETWORK=mainnet -- npx mcp-anvil-api

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-anvil": {
      "command": "npx",
      "args": ["mcp-anvil-api"],
      "env": {
        "ANVIL_API_KEY": "your_api_key",
        "ANVIL_NETWORK": "mainnet"
      }
    }
  }
}

Project-level (.mcp.json)

Add to your project root so collaborators get it automatically:

{
  "mcpServers": {
    "mcp-anvil": {
      "command": "npx",
      "args": ["mcp-anvil-api"],
      "env": {
        "ANVIL_API_KEY": "",
        "ANVIL_NETWORK": "mainnet"
      }
    }
  }
}

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | ANVIL_API_KEY | Yes | — | Your Anvil API key (get one here) | | ANVIL_NETWORK | No | preprod | Network: mainnet, preprod, or preview | | ANVIL_API_KEY_MAINNET | No | — | Mainnet-specific key (overrides ANVIL_API_KEY on mainnet) | | ANVIL_API_KEY_TESTNET | No | — | Testnet-specific key (overrides ANVIL_API_KEY on preprod/preview) |

Tools

Wallet

  • anvil_get_utxos — Fetch CBOR-encoded UTXOs for a Cardano address
  • anvil_get_balance — Get aggregated ADA and native asset balance

Transactions

  • anvil_build_tx — Build unsigned transactions (ADA sends, multi-output, native assets, metadata)
  • anvil_submit_tx — Submit signed transactions to the network

Minting

  • anvil_mint_cip25 — Mint NFTs/tokens with CIP-25 on-chain metadata
  • anvil_mint_cip68 — Mint with CIP-68 (reference + user token pair)

Native Scripts

  • anvil_create_policy — Create time-locked, signature-based, or multisig policies
  • anvil_parse_policy — Get policy ID from existing script CBOR

Smart Contracts

  • anvil_upload_blueprint — Upload CIP-57 Plutus blueprints
  • anvil_query_blueprints — Search uploaded blueprints
  • anvil_apply_blueprint_params — Parameterize Plutus validators
  • anvil_script_interaction — Lock/unlock funds at script addresses

Delegation

  • anvil_delegate — Delegate stake to pools or DReps

Utilities

  • anvil_parse_address — Extract key hashes from bech32 addresses
  • anvil_slot_to_time — Convert slot number to Unix timestamp
  • anvil_time_to_slot — Convert Unix timestamp to slot number
  • anvil_health — Check API connectivity

Resources

The server also exposes reference resources:

  • anvil://environments — API base URLs and auth info
  • anvil://fees — Fee schedule and rate limits
  • anvil://errors — Common error codes, signing errors, and troubleshooting
  • anvil://workflow — Step-by-step transaction and minting guides
  • anvil://best-practices — Production-learned patterns: signing guide, UTXO management, CIP-68 gotchas, CIP-27 royalties, and scope of the Anvil API

Example Workflows

Send ADA

"Send 5 ADA from addr1... to addr1..."

The AI will: get UTXOs → build tx → return CBOR for wallet signing → submit.

Mint an NFT

"Mint an NFT called 'My Art' with this IPFS image: ipfs://Qm..."

The AI will: parse your address → create a time-locked policy → build the mint tx → return CBOR for signing.

Delegate Stake

"Delegate my stake to pool1..."

The AI will: build a delegation tx → return CBOR for signing → submit.

Fees

| Operation | Fee | |-----------|-----| | Transaction | 0.15 ADA | | Minting | 1 ADA | | Smart contract interaction | 0.15 ADA | | Stake registration (first time) | 2 ADA deposit |

Fees are auto-deducted from the sender by the Anvil API.

Development

git clone https://github.com/jakubstefanik/mcp-anvil.git
cd mcp-anvil
npm install
npm run build

Run locally:

ANVIL_API_KEY=your_key node build/index.js

License

MIT