Skip to content
DataMint

MCP server for AI agents

The same catalogue as the REST API, as tools an agent can call over the Model Context Protocol. Read-only, no account and no key.

Connect

Address: https://datamint.cloud/mcp (streamable HTTP, stateless, no authentication). The server is a thin layer over the public REST API, so its limits, prices and errors are the API's.

Claude Code
claude mcp add --transport http datamint https://datamint.cloud/mcp
Remote client, JSON configuration (field names differ a little between clients)
{
  "mcpServers": {
    "datamint": {
      "type": "http",
      "url": "https://datamint.cloud/mcp"
    }
  }
}
Local server over stdio (from a checkout of the repository)
MCP_API_BASE_URL=https://datamint.cloud MCP_PUBLIC_API_URL=https://datamint.cloud \
  node apps/mcp/src/main.ts --stdio
Check the connection: list the tools
curl -s -X POST https://datamint.cloud/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Browsers are not supported: a request that carries an Origin header is refused. Agents send none.

Tools

All seven are read-only. Inputs are strict: unknown fields are refused.

search_datasets
Find datasets by keywords, country and category, best match first.
Limits: 1 to 50 results
list_categories
The categories and countries of the catalogue with the number of datasets in each.
Limits: Use the values as search filters
get_dataset_info
Metadata of one dataset: licence and attribution, freshness, quality, price, current version and, on request, the record schema and the filters a query accepts.
Limits: Free
preview_dataset
The first records of the current version, to see the data before querying.
Limits: 1 to 25 records
query_dataset
Filtered, paginated records using the filters from get_dataset_info.
Limits: 1 to 100 records per page, cursor for the next page; may be paid
get_dataset_versions
Published versions, newest first, with change summaries and whether a version is archived.
Limits: Free
download_dataset
A whole version as json, csv or geojson.
Limits: Inline up to 256 KiB, larger files come back as a REST download address; may be paid

Example

An agent looks for banks in Bulgaria, then reads the dataset with get_dataset_info, which lists the filters, and queries it. A result is { status: "ok", data, meta }; the same JSON is also returned as text.

Tool call: search_datasets
{
  "name": "search_datasets",
  "arguments": {
    "query": "banks",
    "country": "BG",
    "limit": 5
  }
}
Answer, shape only
{
  "status": "ok",
  "data": [ { "id": "<dataset id>", "name": "...", "...": "..." } ],
  "meta": { "...": "..." }
}

Paid datasets

The server never holds a wallet and never pays. When the API prices a query_dataset or download_dataset request, the tool answers with status: "payment_required" (not an error): the price, the options in accepts, the raw x402 header and a retry request on the public REST address. Nothing is charged by that answer. A payment can only be made by the caller's own x402 client, if its operator allows it, as described in Paying for requests; the retry object describes the request that client would repeat. Price and access are also in get_dataset_info, so an agent can decide first. The operator of an agent is responsible for what it pays; see the Terms of Use and the Acceptable use policy.

A paid query_dataset or download_dataset, shape only
{
  "status": "payment_required",
  "price": { "amount": "<amount>", "currency": "USDC" },
  "accepts": [ { "scheme": "...", "network": "...", "asset": "...", "amount_atomic": "...", "pay_to": "...", "max_timeout_seconds": 0 } ],
  "payment_required_header": "<raw x402 header>",
  "retry": { "method": "POST", "url": "https://datamint.cloud/v1/datasets/<dataset id>/query", "body": { "...": "..." } }
}

Limits and errors

No authentication. The MCP server allows 60 requests per minute per client; the REST API's own limits apply on top. A failed call is a tool error with the API's code, message, any details, retry_after_seconds and a short hint:

DATASET_NOT_FOUND
Use search_datasets to find a valid dataset id.
VERSION_NOT_FOUND
Use get_dataset_versions to list the available versions.
VERSION_ARCHIVED
The records of that version were archived; query or download the current version. details.still_available says what remains.
QUERY_TOO_BROAD
Add an exact or date filter, or a smaller area.
INVALID_REQUEST
Check filter names and kinds with get_dataset_info, then fix the input.
FORMAT_NOT_AVAILABLE
Choose another format; get_dataset_info lists what is offered.
RATE_LIMITED
Wait for retry_after_seconds (or a minute) and try again.