@centquery/mcp
Officialby CentQuery
README.md
# @centquery/mcp
Official **read-only** Model Context Protocol (MCP) server for [CentQuery](https://centquery.dev).
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:
```json
{
"mcpServers": {
"centquery": {
"command": "npx",
"args": ["-y", "@centquery/mcp@0.1.0"]
}
}
}
```
Or run directly:
```bash
npx -y @centquery/mcp@0.1.0
```
## Available tools (strictly read-only)
| Tool | Source | Description |
| --- | --- | --- |
| `centquery_list_direct_products` | `centquery.dev/products/index.json` | Lists CentQuery Direct x402 API releases (GDP 0.01 USDC, U.S. Treasury 0.02 USDC). |
| `centquery_list_marketplace_catalog` | `marketplace.centquery.dev/api/v1/commercial/catalog` | Lists the public CentQuery Marketplace catalog and reports `paymentSubmissionEnabled` honestly. |
| `centquery_inspect_gdp_offer` | `api.centquery.dev/functions/v1/gdp-paid/release` | Inspects the live unsigned HTTP `402` GDP terms on Base mainnet (`0.01 USDC`) or reports `SALES_PAUSED` on `404`. |
| `centquery_inspect_treasury_offer` | `api.centquery.dev/functions/v1/us-treasury-paid/release` | Inspects the live unsigned HTTP `402` U.S. Treasury terms on Base mainnet (`0.02 USDC`) or reports `SALES_PAUSED` on `404`. |
| `centquery_health` | `api.centquery.dev/health` & `marketplace.centquery.dev/health` | Checks 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`](https://centquery.dev/docs/buy-gdp/).
- **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
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues