{"_id":"@agnthub/mcp-market-data","name":"@agnthub/mcp-market-data","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agnthub/mcp-market-data","version":"0.1.0","description":"Production crypto market data MCP — prices, candles, pools, trending, categories, global stats. Multi-provider with graceful degradation.","license":"MIT","type":"module","main":"./dist/index.js","bin":{"mcp-market-data":"dist/index.js"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc","dev":"tsx watch src/index.ts","start":"node dist/index.js","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","prepack":"tsc"},"dependencies":{"@modelcontextprotocol/sdk":"^1.29.0","undici":"^7.1.1","zod":"^3.23.8","zod-to-json-schema":"^3.24.1"},"devDependencies":{"@types/node":"^22.10.0","tsx":"^4.19.2","typescript":"^5.6.3","vitest":"^2.1.8"},"engines":{"node":">=20"},"keywords":["mcp","crypto","market-data","coingecko","agnthub"],"_id":"@agnthub/mcp-market-data@0.1.0","gitHead":"de2a4fd01785f983e5ff53f7ab7113c5f87c964b","types":"./dist/index.d.ts","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9cOrZtHY6li+BNGf97iqR4ufn0k5Qeo6Ty4CGmzmGvwI3tMgaQJtDbiZ+qRu02JTUQrYO11dLTOx/YuRad0JNA==","shasum":"39aee7d7488529efb820ca4d3a13907b1d4bc1aa","tarball":"https://registry.npmjs.org/@agnthub/mcp-market-data/-/mcp-market-data-0.1.0.tgz","fileCount":146,"unpackedSize":334772,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCTFY/XnfTwpw7B5R8XVhPCMX3UuGPlzakqM3THPG+XJgIgA45f0ZqVmic/O9Gs8Fd79/v7PHUqoGecVCr8Dlrz/tA="}]},"_npmUser":{"name":"onchainmichael","email":"mykhailo.adzhoiev@cowchain.io"},"directories":{},"maintainers":[{"name":"onchainmichael","email":"mykhailo.adzhoiev@cowchain.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-market-data_0.1.0_1776725406547_0.021322225494137204"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-20T22:50:06.476Z","0.1.0":"2026-04-20T22:50:06.706Z","modified":"2026-04-20T22:50:06.873Z"},"maintainers":[{"name":"onchainmichael","email":"mykhailo.adzhoiev@cowchain.io"}],"description":"Production crypto market data MCP — prices, candles, pools, trending, categories, global stats. Multi-provider with graceful degradation.","keywords":["mcp","crypto","market-data","coingecko","agnthub"],"license":"MIT","readme":"# @agnthub/mcp-market-data\n\nProduction crypto market-data MCP server. Covers spot prices, OHLCV\ncandles, historical prices, trending, categories, global stats, DEX\npool data, and cross-chain tokens. Works with zero keys (degraded) and\nscales up to full coverage with one or more provider API keys.\n\nDesigned for the [agnthub](https://agnthub.ai) platform but speaks the\nstock Model Context Protocol so it runs under any MCP client.\n\n## Providers\n\n| Provider | Key required | Gives you |\n|---|---|---|\n| CoinGecko | Free demo key, optional Pro | price, snapshot, ohlcv, historical, search, trending, list, categories, token-by-address |\n| GeckoTerminal | Optional (CG key unlocks higher rate) | pools, pool-ohlcv, DEX tokens |\n| CoinMarketCap | Optional | redundant price/snapshot/list_top fallback |\n| CryptoCompare | Optional | minute-level OHLCV, historical |\n| Binance (public) | None | realtime-fresh prices + ohlcv for top ~450 assets |\n| DeFiLlama | None | DeFi + stablecoin market stats |\n| Alternative.me | None | fear & greed index |\n\nEvery provider is optional. Install with nothing and you still get DEX\npool data, DeFi stats, fear & greed, and prices for top-450 assets.\nAdd a free CoinGecko key and you unlock the full coin universe.\n\n## Env\n\n```\nCOINGECKO_API_KEY=          # recommended; free at coingecko.com/en/api/pricing\nCOINGECKO_TIER=             # optional; pro|demo (auto-detected from base URL probe)\nCOINMARKETCAP_API_KEY=      # optional\nCRYPTOCOMPARE_API_KEY=      # optional\nGECKOTERMINAL_API_KEY=      # optional; falls back to COINGECKO_API_KEY\nENABLE_BINANCE=true         # default true, no key needed\nENABLE_DEFILLAMA=true       # default true, no key needed\nENABLE_GECKOTERMINAL=true\nENABLE_ALTERNATIVE=true\nCACHE_MAX_ITEMS=50000\nCACHE_DISABLED=false        # set true in tests for deterministic calls\nGLOBAL_INFLIGHT_CAP=32\nLOG_LEVEL=info\n```\n\n## Modes\n\n```\nmcp-market-data                 # start stdio MCP server\nmcp-market-data --validate-keys # probe each provider with current env, print JSON\nmcp-market-data --dump-tool-list# list registered tools as JSON\nmcp-market-data --version       # print version\n```\n\n## Install inside an agnthub agent\n\nThe skill catalog entry for `market-data` points at this package; users\ndon't spawn the binary themselves. On install the agent runner pulls\n`@agnthub/mcp-market-data` via `npx`, wires the user's encrypted keys\nfrom the vault into env, and registers the tools with the agent's\nClaude SDK session.\n\n## Development\n\n```\npnpm --filter @agnthub/mcp-market-data build\npnpm --filter @agnthub/mcp-market-data dev       # tsx watch\npnpm --filter @agnthub/mcp-market-data test\n```\n\n## Publishing\n\nOnce per release:\n\n```\npnpm --filter @agnthub/mcp-market-data build\ncd apps/mcp-market-data\nnpm publish --access public    # honors \"publishConfig\" in package.json\n```\n\nThe agent runner invokes `npx --yes @agnthub/mcp-market-data` on install,\nso any published version reachable from the agent VM works without\nfurther coordination. Pre-publish you can point the install spec at a\nlocal tarball: `npm pack` in the package dir → reference the tarball\npath in `skill_catalog.install.package` for smoke testing.\n","readmeFilename":"README.md","_rev":"1-e7b219e18c3a6ffdbeacb0ba8966b139"}