@dm2233/agent-data-mcp
Provides on-chain data for Ethereum, including current gas price and latest block information.
Allows verifying GitHub repository information and real repository stats.
Enables performing Google web searches to find information and results.
Allows checking an npm package's version and download statistics.
Allows checking facts by retrieving Wikipedia topic summaries.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@dm2233/agent-data-mcp what's the current price of bitcoin in USD?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@dm2233/agent-data-mcp
A verification and market-data companion for AI agents, over MCP. Give it a claim to check, a price to look up, or a page to read — it answers. No API key, pay-per-call in USDC on Base via x402, and safe to install with zero setup: until you fund a wallet, every call just tells you what it would have cost.
Where most tool servers hand an agent a long list of narrow endpoints and expect it to pick the right one, this one exposes five things an agent actually reaches for:
verify_fact— is this claim checkable? A Wikipedia topic, a GitHub repo's real stats, an npm package's version and downloads, a domain's DNS records, or whether a domain is actually registered.check_market— what's the number? A token's price, DeFi TVL, the best yield right now, stablecoin supply, an FX rate.check_chain— what's happening on-chain? Current gas price, the latest block, on Base or Ethereum.search_web— go find out. Google results, semantic search with an AI answer, a clean read of any page, structured extraction from a page, or what's trending on Hacker News.ai_task— do something with this text. Summarize, translate, classify, or extract structured fields.
Each tool decides internally which of the underlying paid endpoints to call based on the arguments you give it — you never need to know there are 33 of them under the hood, and you never pick a tool by memorizing a route name.
This is an independent, from-scratch MCP server: it calls the existing
x402-seller API over plain HTTP,
the same way any other client would. It shares no code with that project's
own x402-seller-mcp package (which instead exposes one tool per endpoint,
generated live from the server's discovery document) — this one is a
different, opinionated shape over the same underlying API.
Two modes
No wallet configured (default) — calling a tool fetches the endpoint it routed to, gets back the real
402 Payment Requiredchallenge, and returns a plain-language explanation (price, network, how to enable payment) instead of the actual data. Safe to try with zero setup.Wallet configured (
BUYER_PRIVATE_KEYset) — calls are paid automatically over x402 (via@x402/fetch) and return the real result plus the settlement receipt (payer address, transaction hash).
Related MCP server: x402farm-mcp
Install
npx @dm2233/agent-data-mcpThat's the whole install — nothing to clone, build, or configure to try it in explain-only mode.
Claude Desktop
Add this to your claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"agent-data": {
"command": "npx",
"args": ["-y", "@dm2233/agent-data-mcp"]
}
}
}To enable automatic payments, add an env block (see Enabling payments below):
{
"mcpServers": {
"agent-data": {
"command": "npx",
"args": ["-y", "@dm2233/agent-data-mcp"],
"env": {
"BUYER_PRIVATE_KEY": "0x..."
}
}
}
}Restart Claude Desktop after editing the config.
Cursor
Cursor uses the same mcpServers shape — add the same block to
~/.cursor/mcp.json (or your project's .cursor/mcp.json), then reload the
MCP servers from Settings → MCP.
Enabling payments
⚠️ Use a throwaway wallet, never a wallet holding significant funds. The private key you set here can sign USDC transfers on Base up to whatever price each call costs (every tool here costs between $0.005 and $0.05 per call) — but any process with the key in its environment can, in principle, use it. Generate a fresh wallet dedicated to this MCP server and fund it with a few dollars of USDC on Base, nothing more.
Generate a wallet (any EVM wallet works — e.g. with viem:
node -e "const {generatePrivateKey,privateKeyToAccount}=require('viem/accounts');const k=generatePrivateKey();console.log(k, privateKeyToAccount(k).address)", or MetaMask/any wallet app export).Send a small amount of USDC on Base (the network this server settles on) to that wallet's address — a few dollars covers hundreds of calls at these prices.
Set
BUYER_PRIVATE_KEYto that wallet's private key (the0x...-prefixed hex string) in your MCP client's config (see examples above) or in your shell environment if running the server directly.Restart the MCP server (or your MCP client). Tool calls will now pay automatically and return real results.
Configuration
Env var | Required | Default | Purpose |
| No | (unset) | EVM private key used to pay for tool calls. Unset = explain-only mode. |
| No |
| Which x402 server backs these tools — point this at a different x402-compatible server (or a local dev instance) if needed. |
The five tools, and what each one routes to
Every tool takes a small discriminant field (source, metric, mode, or
task) that picks the underlying endpoint, plus whatever arguments that
branch needs. Run tools/list against the server for the exact input schema
of each — this table is the map from "what you ask for" to "what actually
gets called":
verify_fact — $0.005 per check
| Underlying endpoint |
|
|
|
|
|
|
|
|
|
|
check_market — $0.005 per check, $0.05 for any yields metric
| Underlying endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check_chain — $0.005 per check
| Underlying endpoint |
|
|
|
|
GET /api/chain/gas is a documented, unwired alias: its schema only ever
accepts chain=base\|ethereum, so it returns exactly the same data as the
two dedicated gas routes above and adds no reachable coverage of its own.
search_web — $0.005 (search_google, read_page, trending_hn), $0.01 (search_semantic), $0.02 (extract_from_page)
| Underlying endpoint |
|
|
|
|
|
|
|
|
|
|
ai_task — $0.01 (summarize, translate, classify), $0.02 (extract)
| Underlying endpoint |
|
|
|
|
|
|
|
|
That's all 33 endpoints of the underlying catalog, reached through 5 tools.
Related
This server wraps the same 33 x402-seller endpoints as
x402-seller-mcp (npm), but
groups them into 5 general-purpose tools instead of one tool per endpoint. If
you want the full endpoint-by-endpoint catalog — every route as its own MCP
tool, generated live from the origin's discovery document — use
x402-seller-mcp instead.
Development
git clone <this repo>
cd agent-data-mcp
npm install
node server.js # runs on stdio, waits for a clientTwo test scripts, both run by npm test:
test/routing-test.mjs— pure unit test, no network: calls every tool's internal router directly and asserts the exact URL/method/body it builds, for one case per underlying endpoint. This is the definitive proof of the tool → endpoint mapping above.test/manual-test.mjs— spawns the real server over stdio (exactly like an MCP client would) and calls each tool for real, in unpaid mode, against the live origin — free, since no wallet is configured. SetRUN_PAID_TEST=1withBUYER_PRIVATE_KEYset to also run one real paid call (~$0.005 on Base).
License
MIT
Available Tools
5 toolsai_taskA
Run a Claude-powered text task on a piece of text: summarize into N sentences (summarize), translate to a target language (translate), classify into your own labels with a confidence score (classify), or extract structured JSON fields per a JSON Schema you provide (extract). Prices: $0.01 (summarize, translate, classify), $0.02 (extract).
Inputs: task (required), text (required), labels, schema, +2 more.
check_chainA
Check live on-chain data for Base or Ethereum: current gas price (gas_price) or the latest known block — number, timestamp, hash (latest_block). Read live via a public RPC endpoint, no API key, no aggregator. $0.005 per check.
Inputs: chain (required), metric (required).
check_marketA
Check a crypto/DeFi/FX market data point: a token's USD price (crypto_price), total USDC circulating supply (usdc_supply), a ranked list of top stablecoins (top_stablecoins) or top DeFi protocols by TVL (top_protocols), one protocol's TVL (protocol_tvl) or one chain's total TVL (chain_tvl), DeFi yields — top overall (top_yields), filtered (yields), by chain (yields_by_chain), by token (yields_by_token), or one specific pool (yield_pool_detail) — or FX reference rates for a base currency (fx_rate). Give metric and whichever of coins/protocol/chain/symbol/pool/base/limit/min_tvl that metric needs. $0.005 per check for prices/TVL/stablecoins/FX, $0.05 for any yields metric (live DeFiLlama yield data).
Inputs: metric (required), base, pool, chain, +5 more.
search_webA
Search or read the live web: structured Google results (search_google), semantic/intent search with an AI-generated answer (search_semantic), a public page's main content as clean Markdown (read_page), structured data extracted from a page per a JSON Schema you provide (extract_from_page), or current top Hacker News stories (trending_hn). Prices: $0.005 (search_google, read_page, trending_hn), $0.01 (search_semantic), $0.02 (extract_from_page).
Inputs: mode (required), url, limit, query, +3 more.
verify_factA
Verify or look up one specific, named fact: a Wikipedia topic's summary, a public GitHub repository's stats (stars, forks, last push), an npm package's version/license/downloads, a domain's DNS records, or a domain's registration status (RDAP). Give source (which kind of fact) and subject (the exact name to check). $0.005 per check via x402 (USDC on Base) — free to try: without a wallet configured, every call just explains the payment challenge instead of paying.
Inputs: source (required), subject (required), lang.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each top-level tool targets a distinct data domain: facts, market data, on-chain data, web search, and AI text tasks. Minor overlap exists between search_web's extract_from_page and ai_task's extract, and between verify_fact and search_web for fact lookup, but the descriptions clarify the intended boundaries.
All names use snake_case consistently, and four of five follow a verb_noun pattern (verify_fact, check_market, check_chain, search_web). ai_task breaks the verb-first convention, but the overall style remains predictable.
Five tools is a well-scoped count for a multi-domain data toolkit, avoiding a sprawl of dozens of narrow endpoints. Each tool encapsulates a coherent category of operations and earns its place.
The set covers several common data needs (facts, crypto/DeFi/FX, basic chain data, web search, AI text tasks), but coverage within each area is shallow. Notable gaps include broader chain/transaction data, more fact sources, and richer web/API integrations, which could cause dead ends for some agent workflows.
Maintenance
Related MCP Connectors
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Pay-per-call x402 MCP for AI agents: 35 tools, USDC on Base, from $0.001/call, no API keys.
MCP server for X420's pay-per-call agent services (x402, USDC on Base, paid from your own wallet).
5 pay-per-call SEO tools over MCP. Free discovery, tool calls settle in USDC on Base via x402.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server providing 22 pay-per-call utility tools for AI agents (scrape, validate, embed, store, moderate, notify, convert, prevent loops) without accounts or API keys, using USDC payments via the x402 protocol.1756 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server exposing 10 curated tools for AI agents, providing crypto trading signals, on-chain analysis, and web utilities via pay-per-call x402 endpoints on the Base network.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing 11 pay-per-call web intelligence tools (page reading, PDF extraction, RSS parsing, screenshots, summarization, structured data extraction) for AI agents, paid automatically in USDC via the x402 protocol on Base mainnet with no API keys required.39 npmMIT