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

@fetchswap/cardano-mcp

v0.1.0

Published

Model Context Protocol server for the Fetch Cardano DEX aggregator — token search, prices, swap quotes, swap building, trade history, and DeFi yield, all over the public Fetch API.

Readme

@fetchswap/cardano-mcp

A Model Context Protocol server for the Fetch Cardano DEX aggregator. It lets any MCP-capable AI client (Claude Desktop, Claude Code, Cursor, Windsurf, Zed, …) search tokens, read prices, quote and build swaps across 13+ Cardano DEXes, pull trade history, and browse DeFi yield — all through the public Fetch API.

No account is required: every tool runs on the API's public tier. Add a free partner key (FETCH_API_TOKEN) for higher rate limits and rebate attribution.

Quick start

The server speaks MCP over stdio. Point your client at it with npx — no clone or global install needed:

// Claude Desktop: claude_desktop_config.json
{
  "mcpServers": {
    "fetchswap-cardano": {
      "command": "npx",
      "args": ["-y", "@fetchswap/cardano-mcp"]
    }
  }
}

For Claude Code:

claude mcp add fetchswap-cardano -- npx -y @fetchswap/cardano-mcp

Tools

| Tool | What it does | |------|--------------| | cardano_search_tokens | Resolve a ticker/name → policyId + nameHex candidates (needed by every other tool). | | cardano_latest_price | Current exchange rate for a token pair. | | cardano_aggregate_quote | Preview the best swap route — output, splits, price impact, fees. Builds no transaction. | | cardano_build_swap | Build an unsigned swap transaction (CBOR). You sign + submit with your own wallet. | | cardano_trade_history | Recent on-chain trades for a pair. | | cardano_yield_opportunities | Lending/borrowing yields (Liqwid, Indigo, Surf) with APY/TVL/utilization. |

Cardano assets are identified by policyId + nameHex. ADA is { "policyId": "lovelace", "nameHex": "" }. Amounts are in the smallest unit (1 ADA = 1,000,000 lovelace). Tickers are only accepted by cardano_search_tokens — different tokens can share a ticker, so resolve first and confirm before trading.

Configuration

| Variable | Default | Purpose | |----------|---------|---------| | FETCH_API_URL | https://cardano.fetchswap.io | Base URL of the Fetch Cardano API. Override for local/staging. | | FETCH_API_TOKEN | (unset) | Optional partner key. Raises rate limits and attaches rebate attribution to built swaps. |

To use a partner key, add it under env:

{
  "mcpServers": {
    "fetchswap-cardano": {
      "command": "npx",
      "args": ["-y", "@fetchswap/cardano-mcp"],
      "env": { "FETCH_API_TOKEN": "your-token" }
    }
  }
}

Safety

  • This server never holds private keys and never submits transactions. cardano_build_swap returns unsigned CBOR; signing and submission stay with the user's wallet.
  • It only calls the public read/quote/build endpoints — no cancel, limit, merchant, or account-management surface.
  • Not financial advice. Always review the quote, amounts, and price impact before signing anything.

Build from source

git clone https://github.com/ADA-Markets/fetch-cardano-mcp.git
cd fetch-cardano-mcp
npm install
npm run build      # tsc → build/
npm start          # run the compiled server
npm run dev        # watch-run from source

To point a client at a local build instead of npm:

{
  "mcpServers": {
    "fetchswap-cardano": {
      "command": "node",
      "args": ["/absolute/path/to/fetchswap-cardano-mcp/build/index.js"]
    }
  }
}

License

MIT