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

@agnthub/mcp-market-data

v0.1.0

Published

Production crypto market data MCP — prices, candles, pools, trending, categories, global stats. Multi-provider with graceful degradation.

Downloads

167

Readme

@agnthub/mcp-market-data

Production crypto market-data MCP server. Covers spot prices, OHLCV candles, historical prices, trending, categories, global stats, DEX pool data, and cross-chain tokens. Works with zero keys (degraded) and scales up to full coverage with one or more provider API keys.

Designed for the agnthub platform but speaks the stock Model Context Protocol so it runs under any MCP client.

Providers

| Provider | Key required | Gives you | |---|---|---| | CoinGecko | Free demo key, optional Pro | price, snapshot, ohlcv, historical, search, trending, list, categories, token-by-address | | GeckoTerminal | Optional (CG key unlocks higher rate) | pools, pool-ohlcv, DEX tokens | | CoinMarketCap | Optional | redundant price/snapshot/list_top fallback | | CryptoCompare | Optional | minute-level OHLCV, historical | | Binance (public) | None | realtime-fresh prices + ohlcv for top ~450 assets | | DeFiLlama | None | DeFi + stablecoin market stats | | Alternative.me | None | fear & greed index |

Every provider is optional. Install with nothing and you still get DEX pool data, DeFi stats, fear & greed, and prices for top-450 assets. Add a free CoinGecko key and you unlock the full coin universe.

Env

COINGECKO_API_KEY=          # recommended; free at coingecko.com/en/api/pricing
COINGECKO_TIER=             # optional; pro|demo (auto-detected from base URL probe)
COINMARKETCAP_API_KEY=      # optional
CRYPTOCOMPARE_API_KEY=      # optional
GECKOTERMINAL_API_KEY=      # optional; falls back to COINGECKO_API_KEY
ENABLE_BINANCE=true         # default true, no key needed
ENABLE_DEFILLAMA=true       # default true, no key needed
ENABLE_GECKOTERMINAL=true
ENABLE_ALTERNATIVE=true
CACHE_MAX_ITEMS=50000
CACHE_DISABLED=false        # set true in tests for deterministic calls
GLOBAL_INFLIGHT_CAP=32
LOG_LEVEL=info

Modes

mcp-market-data                 # start stdio MCP server
mcp-market-data --validate-keys # probe each provider with current env, print JSON
mcp-market-data --dump-tool-list# list registered tools as JSON
mcp-market-data --version       # print version

Install inside an agnthub agent

The skill catalog entry for market-data points at this package; users don't spawn the binary themselves. On install the agent runner pulls @agnthub/mcp-market-data via npx, wires the user's encrypted keys from the vault into env, and registers the tools with the agent's Claude SDK session.

Development

pnpm --filter @agnthub/mcp-market-data build
pnpm --filter @agnthub/mcp-market-data dev       # tsx watch
pnpm --filter @agnthub/mcp-market-data test

Publishing

Once per release:

pnpm --filter @agnthub/mcp-market-data build
cd apps/mcp-market-data
npm publish --access public    # honors "publishConfig" in package.json

The agent runner invokes npx --yes @agnthub/mcp-market-data on install, so any published version reachable from the agent VM works without further coordination. Pre-publish you can point the install spec at a local tarball: npm pack in the package dir → reference the tarball path in skill_catalog.install.package for smoke testing.