cmc-dd
Provides token due diligence and market intelligence using CoinMarketCap APIs, including DEX security, liquidity, holder counts, market data, risk levels, token search, and market pulse. It returns green/yellow/red safety verdicts with sourced reasons so agents can assess whether a token is safe to buy or accept.
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-dd β token due diligence for AI agents, powered by CoinMarketCap
Before an AI agent buys a token, accepts one as payment, or tells a human to ape in, it should ask one question: is this token safe to touch?
cmc-agent-dd answers it in one call. Give it a chain and a contract address; it pulls CoinMarketCap market, DEX-security, liquidity and holder data and returns a π’ GREEN / π‘ YELLOW / π΄ RED verdict with plain-language reasons β and every number names the CMC endpoint it came from.
Built for Build with CMC: API Hackathon (Round 2) Β· Track: AI Agents and Automation Β· #BuildwithCMC
A real run β an excerpt (some rows and reasons omitted) of docs/evidence/report-red-catme-bsc.md; every line shown is verbatim:
$ cmc-dd dd bsc 0xb71b42f7f0513b3f49a0a42ffdcf90509a888888
## π΄ RED β avoid CATME (ELON'S CAT): Security scan: A scam address may be associated with fraud, Ponzi schemes, or other malicious activities. Users should conduct extra verification before transactions.
- **Token:** CATME β ELON'S CAT
- **Chain / contract:** BSC Β· `0xb71b42f7f0513b3f49a0a42ffdcf90509a888888`
- **Liquidity:** $16
- **Holders:** 164.9K
- **Taxes:** buy 0% / sell 0.56%
### Why
- π΄ Security scan: A scam address may be associated with fraud, Ponzi schemes, or other malicious activities. Users should conduct extra verification before transactions.
- π΄ CoinMarketCap marks this token's risk level as "highRisk".
- π΄ Only $16 of DEX liquidity β a small trade moves the price a lot and exits may be impossible.
- π‘ Security scan: The token was deployed by a high-risk address, which may be associated with fraud, exploits, or other malicious activities.
- π‘ Security scan: Low liquidity means that there is no or a small liquidity pool, resulting in failure to swap or large slippage.
### Data sources (CoinMarketCap API, 8 credits)
- `/v1/dex/holders/count` β HTTP 200 @ 2026-11-22T12:16:11.776Z
- `/v1/dex/liquidity-change/list` β HTTP 200 @ 2026-11-22T12:16:11.775Z
- `/v1/dex/security/detail` β HTTP 200 @ 2026-11-22T12:16:11.409Z
- `/v1/dex/token` β HTTP 200 @ 2026-11-22T12:16:11.788Z
- `/v1/global-metrics/quotes/latest` β HTTP 200 @ 2026-11-22T12:16:11.252Z
- β¦All real outputs, captured from the live API (npx tsx scripts/capture-evidence.ts regenerates them):
Verdict | Token | Why |
π’ GREEN | $11M liquidity, 1.89M holders, 120 exchanges, CMC rank #74 | |
π’ GREEN | Solana blue chip | |
π‘ YELLOW | honest YELLOW: the contract can blacklist, pause, mint and be upgraded | |
π‘ YELLOW | CoinMarketCap's AERO now lives at a different contract; this one has a long history, so it's flagged as a likely legacy version, not a fake | |
π΄ RED | scam-flagged by the security scan, CMC "highRisk", $16 liquidity | |
π΄ RED | reported by users / researchers, $4.6K liquidity |
Plus the raw CMC responses behind a report, a market pulse, and a real pay-per-request x402 call (402 β signed USDC authorization β 200).
Three ways to use it
For | How | |
MCP server | Claude Desktop, Cursor, OpenClaw, any MCP client | tools |
CLI | humans, scripts, CI |
|
Paid agent on BotHire | other AI agents | hire it on BotHire, pay into on-chain escrow, send |
This ran for real (docs/evidence/bothire-agent-hire.json): a human-backed buyer agent hired the CMC Due Diligence Desk on BotHire, deposited 1 USDC into escrow on Arc mainnet (deposit), asked about a BSC token; this repo's src/provider.ts built the CoinMarketCap report (π΄ RED β scam-flagged) and delivered it; the escrow settled for one report (settle); and the buyer recomputed the report's result_hash and got the same value.
The third one is the point: CMC data becomes a service one agent sells to another. A buyer agent pays a small USDC fee into escrow on BotHire; src/provider.ts runs the due diligence on CoinMarketCap data and delivers the report; the escrow pays out. No human in the loop on either side.
Related MCP server: rugradar
CMC API endpoints used
Endpoint | Used for |
| price, liquidity, age, 24h trades, owner, CMC risk level ( |
| honeypot / rug / fake-token status, buy & sell tax, verification, vendor flags, user reports, scan items |
| holder count |
| liquidity add/remove events (rug-pull signal) |
| CMC listing & rank, CMC market cap, look-alike / impersonation check |
| market context and |
| chain names β CMC platforms |
|
|
| pay-per-request mode (quotes, listings, DEX search) |
What it checks
Signal | Red π΄ | Yellow π‘ |
Security scan: honeypot / rug-pull / fake token (EVM and Solana), vendor flag, user reports | any hit | β |
Security scan items (CMC risk level |
|
|
Buy / sell tax | β₯ 10% | 3β10% |
Contract source | β | not verified |
DEX liquidity | < $10K | < $100K |
Liquidity pulled (add/remove events, last 24h) | one tx removed β₯ 50% of what's left | net outflow β₯ 30% |
CoinMarketCap risk level ( | high | other non-"safe" levels |
Look-alike / impersonation β this contract is not a CMC asset, but a ranked CMC asset uses its symbol (symbols normalized, so | that asset is in the top 500 and this contract is young / little-held | ranked lower, or this contract is long-established (legacy / migrated) |
Holders Β· age Β· 24h move Β· volume vs liquidity | β | < 500 Β· < 7 days Β· Β±50% Β· β₯ 10Γ |
Market cap β« liquidity | β | market cap > 100,000Γ liquidity is flagged as meaningless |
No security scan and no CMC listing | β | "unchecked" |
Contract owner, no scan on a listed asset, low CMC rank | info | |
Deep liquidity, many holders, CMC top-1000, CEX listings, age, CMC "safe" (CMC's label is shown only when nothing is red) | good signs β never override a flag |
Rules that keep it honest:
If CoinMarketCap can't be reached for the core token data (rate limit, auth, outage), no verdict is issued β an error is returned instead of a misleading GREEN.
A contract CMC knows nothing about is YELLOW ("check the address and chain"), never GREEN; if the look-alike lookup or the liquidity-events lookup fails, that is a YELLOW too.
Token names and symbols come from whoever deployed the contract, so they are stripped of Markdown/control characters before they appear in a report.
Thresholds live in one object (RULES in src/dd.ts). The scoring step (assess) is a pure function; 34 tests cover it, the client and the x402 payer. Every report carries sources (endpoint, HTTP status, CMC timestamp, credits), credits_used and a result_hash (sha256 of the canonical report) so a buyer can prove what it was sold.
Quick start
git clone https://github.com/BotHireAgent/cmc-agent-dd && cd cmc-agent-dd
npm install # also builds dist/ (prepare script)
npm run dd -- bsc 0x0E09FaBB73Bd3Ade0a17ECc321fD13a19e81cE82 # works with no key (keyless API, low rate limit)
export CMC_API_KEY=your-own-key # recommended: https://coinmarketcap.com/api (never commit it)
npm run pulse
npm testThree ways to call CMC
src/cmc.ts picks the mode automatically:
CMC_API_KEYset β the Pro API with your key. Recommended.No key β CMC's keyless public API β the whole pipeline runs, at a low anonymous rate limit. Good for trying it.
No key +
CMC_X402_PRIVATE_KEYβ pay per request with x402 for the endpoints CMC sells that way (quotes, listings, DEX search, DEX pair quotes), keyless for the rest. CMC answers402 Payment Required; the client signs an EIP-3009 USDC authorization on Base with the agent's own wallet and retries β $0.01 per call, no account. Guard rails: Base USDC only, fixed EIP-712 domain, per-call ceiling (CMC_X402_MAX_USDC, default 0.05), per-process cap (CMC_X402_MAX_TOTAL_USDC, default 1), optional payee pin (CMC_X402_PAYTO), redirects refused. Seesrc/x402.tsand the captured call.
MCP (Claude Desktop / Cursor / OpenClaw)
{
"mcpServers": {
"cmc-dd": { "command": "node", "args": ["/path/to/cmc-agent-dd/dist/mcp.js"], "env": { "CMC_API_KEY": "your-key" } }
}
}Then ask: "Is 0xβ¦ on BSC safe to buy?" β the agent calls token_due_diligence. Ask "find the real PEPE on Ethereum" and it uses search_token first.
Sell it on BotHire
export CMC_API_KEY=... BOTHIRE_API_KEY=bh_... BOTHIRE_BOT_ID=...
npm run provider # polls paid hires, answers each {chain, address} request with a reportRegister the agent and list the skill per bothire.io/skill.md. The worker is built for paid work: each request is written (fsync'd) to a local queue before anything else, a report is built once and stored so retries never pay CMC twice, deliveries BotHire permanently refuses are not retried forever, metered-escrow hires are settled once with the number of reports actually delivered, and a damaged state file stops the worker instead of silently dropping paid jobs.
Project layout
src/cmc.ts CMC client: key / keyless / x402 modes, per-call provenance (the key is never recorded)
src/x402.ts x402 v2 payer (EIP-3009 on Base USDC) with price ceiling, spend cap and optional payee pin
src/chains.ts chain alias β CMC DEX platform (via /v1/dex/platform/list)
src/dd.ts due-diligence pipeline + pure scoring (assess) + canonical hash
src/pulse.ts market pulse
src/format.ts Markdown report
src/mcp.ts MCP server (stdio)
src/cli.ts CLI
src/provider.ts BotHire seller agent
scripts/ evidence capture (reports, raw responses, x402 call)
docs/API_FEEDBACK.md what the CMC API made possible, and where it got in the way
docs/evidence/ real CMC responses and reports (no keys)Disclaimer
An automated screen of CoinMarketCap data, not financial advice. GREEN means no flags were found, not that a token is safe.
MIT Β© BotHire
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
Token rug-risk scans, Know Your Agent wallet checks and deployer reputation for AI agents.
Instant rug-check for any EVM or Solana token, distilled to one clear 0-10 risk verdict.
Checks on crypto tokens: live code, source gaps, real cap, owner powers, unlocks, signals.
Rug check any token by address: verdict, reasons, next step. Venue picks, fees, referrals, swaps
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query CoinMarketCap data and receive trust-scored verdictsβACT, CAUTION, or DO_NOT_ACTβwith cross-checked evidence, RWA token assessments, trade preflight depth checks, and explanations of each check.MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to check whether a crypto token, link, or forwarded "gem" message is a scam by running contract rules, live test trades, creator history, and market data across 64 networks, returning plain-English or Pidgin verdicts. Also supports scanning messages, reviewing a token's past checks, and explaining individual findings.5MIT
- AlicenseNot gradedqualityAmaintenanceEnables deep cryptocurrency token research by aggregating live market, exchange, and DeFi protocol data from sources like CoinGecko, CoinMarketCap, and DeFiLlama alongside web search, producing structured reports and saved resources without requiring an API key.136 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables deep crypto token due diligence by pulling live market data, exchange listings, TVL and protocol metrics, and web search results across CoinGecko, CoinMarketCap, DeFiLlama and more. Assembles findings into structured reports covering technical fundamentals, market data and social sentiment, requiring no API key and keeping everything local.136 npmMIT