CMC Agent Toolkit
Provides tools for querying CoinMarketCap market data: latest coin quotes, coin comparisons, top gainers and losers, trending coins, global market overview, Fear & Greed index, and a composed market brief, using the CoinMarketCap Pro API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CMC Agent Toolkit
MCP server + CLI demo agent over live CoinMarketCap data — built for the Build with CMC: API Hackathon, Round 2 (track: AI Agents and Automation).
An LLM asks market questions in plain language; the agent answers from
real CoinMarketCap data through six tools — including one composed
cmc_market_brief call that returns a whole market snapshot at once
(overview + top movers + trending), instead of three separate calls.
Status: MOCK until the API key arrives
Right now the server runs on fixture data (frozen sample snapshot,
src/fixtures.ts) because no CMC_API_KEY is set yet. Every tool,
test and the demo already work in this mode — the only difference when
the key arrives is the data source. Nothing else changes.
Mode | How to run | Data |
MOCK (default, no key) |
| Fixture snapshot, deterministic |
LIVE |
| CoinMarketCap Pro API v1 |
Related MCP server: mcp-coinmarketcap
Install & run
npm install
npm run build
# MCP server (stdio) — plug into Claude Code / OpenCode / Inspector:
npm start
# CLI demo agent — answers 3 sample questions from the tools:
npm run demo
# Tests (mock-backed, no network) + MCP smoke check:
npm test
npm run smokeTools (MCP + AgentTools toolkit cmc)
Tool | What it does | CMC endpoint |
| Price, 1h/24h/7d %, market cap, 24h volume (1–10 symbols) |
|
| Compare 2–5 coins, ranked by 24h change |
|
| Top gainers & losers 24h, optional min market-cap filter |
|
| Coins trending on CoinMarketCap |
|
| Total cap, volume, BTC/ETH dominance, Fear & Greed |
|
| Composed: overview + top 5 movers + trending in one call | (the above, combined) |
Every tool accepts response_format: "markdown" | "json". Live responses
are cached 60 seconds to save API credits (one demo question = at most
2–3 API calls).
API key
Set it in the environment — never commit it:
cp .env.example .env # then fill in CMC_API_KEY (or export it directly)
CMC_API_KEY=your-key npm startFree key: https://coinmarketcap.com/api/ (Startup-tier upgrade comes from
the hackathon registration on DoraHacks). See docs/api-evidence.md
for the endpoints used and example request/response pairs.
Layout
src/
index.ts # MCP server entry (stdio)
demo-agent.ts # CLI demo agent (AgentTools SDK, tools-only mode)
config.ts # env config (key, mock/live, cache)
cmc-client.ts # live + mock clients, error mapping, 60s cache
fixtures.ts # mock data (clearly labelled, deterministic)
toolkit.ts # AgentTools toolkit "cmc" (same tools as the MCP server)
tools/
core.ts # shared tool logic (used by MCP + toolkit)
index.ts # MCP tool registration (SDK v2, Zod v4)
test/ # node:test, mock-backed
scripts/smoke.ts # MCP self-check over stdio
examples/sample-questions.md
docs/api-evidence.mdLicense
MIT. Built for the Build with CMC hackathon; the CoinMarketCap integration is new work for this event.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.
Live cryptocurrency prices and FX rates as agent tools.
Crypto market signals and portfolio telemetry. 6 tools pay-per-call in USDC, no API key.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to cryptocurrency market data, exchange information, and blockchain metrics through the CoinMarketCap API. Supports price quotes, historical data, trending tokens, global metrics, and DEX information across different subscription tiers.26MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to query cryptocurrency data including prices, market cap, rankings, categories, and global metrics from CoinMarketCap via MCP tools.71 npmMIT
- AlicenseCqualityDmaintenanceEnables access to CoinMarketCap API data, including latest cryptocurrency listings and token quotes, through natural language.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access Coinmarketcap data through real API endpoints with no authentication required, supporting crypto and DeFi queries.-