Repository avatar
Search & Data Extraction
v0.1.0
active

mcp

dev.centquery/mcp

Read-only MCP server for CentQuery Direct APIs and Marketplace catalog discovery (x402 / Base).

Documentation

@centquery/mcp

Official read-only Model Context Protocol (MCP) server for CentQuery.

Lets AI agents and developer tools discover CentQuery datasets and inspect live HTTP 402 x402 terms on Base mainnet — without wallets, private keys, signing, or executing payments.

Quick start (30 seconds)

Requires Node.js >= 20. Zero runtime dependencies.

Add to Claude Desktop, Cursor, or any MCP client using the pinned version:

{
  "mcpServers": {
    "centquery": {
      "command": "npx",
      "args": ["-y", "@centquery/mcp@0.1.0"]
    }
  }
}

Or run directly:

npx -y @centquery/mcp@0.1.0

Available tools (strictly read-only)

ToolSourceDescription
centquery_list_direct_productscentquery.dev/products/index.jsonLists CentQuery Direct x402 API releases (GDP 0.01 USDC, U.S. Treasury 0.02 USDC).
centquery_list_marketplace_catalogmarketplace.centquery.dev/api/v1/commercial/catalogLists the public CentQuery Marketplace catalog and reports paymentSubmissionEnabled honestly.
centquery_inspect_gdp_offerapi.centquery.dev/functions/v1/gdp-paid/releaseInspects the live unsigned HTTP 402 GDP terms on Base mainnet (0.01 USDC) or reports SALES_PAUSED on 404.
centquery_inspect_treasury_offerapi.centquery.dev/functions/v1/us-treasury-paid/releaseInspects the live unsigned HTTP 402 U.S. Treasury terms on Base mainnet (0.02 USDC) or reports SALES_PAUSED on 404.
centquery_healthapi.centquery.dev/health & marketplace.centquery.dev/healthChecks readiness of both CentQuery hosts.

Direct APIs vs. Marketplace

  • Direct APIs (api.centquery.dev): Pay-per-query x402 v2 endpoints on Base mainnet (eip155:8453). To execute a buyer-approved purchase, use an external buyer client such as gdp-buyer.mjs.
  • CentQuery Marketplace (marketplace.centquery.dev): Curated dataset catalog. Currently published as a public read-only catalog while the commercial beta is in preparation (paymentSubmissionEnabled: false until activated).

Security boundary

  • Zero runtime dependencies and no preinstall / postinstall scripts.
  • Zero private keys, wallets, signatures, or payment headers (PAYMENT-SIGNATURE is never sent).
  • Strict allowlist of official *.centquery.dev GET endpoints with redirect: 'error', 15s timeouts, and 64 KiB response size bounds.
  • Offer inspection fails closed if network, asset, payTo, amount, or resource.url does not match the pinned Base mainnet parameters.

License

MIT

NPM
@centquery/mcp
Install Command
npm install @centquery/mcp