Skip to content
dataruma

DocsMarkdown versionx402 top-up guide

Use with AI

Dataruma speaks MCP Streamable HTTP at https://api.dataruma.com/mcp. Send an API key as Authorization: Bearer. OAuth is not supported yet. initialize and tools/list work without a key. tools/call uses the same key, scopes, rate limit, and ledger as REST.

Cursor

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project. Replace the key. The key is shown once at signup and starts at a $0 balance.

mcp.json{
  "mcpServers": {
    "dataruma": {
      "type": "http",
      "url": "https://api.dataruma.com/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_YOUR_KEY"
      }
    }
  }
}

Claude Code

The same HTTP server block goes in .mcp.json at the project root, or in ~/.claude.json. Claude Code sends the Authorization header on each request.

.mcp.json{
  "mcpServers": {
    "dataruma": {
      "type": "http",
      "url": "https://api.dataruma.com/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_YOUR_KEY"
      }
    }
  }
}

Claude Desktop

  1. Settings → Connectors → Add custom connector.
  2. URL: https://api.dataruma.com/mcp
  3. In the connector’s advanced settings, add a request header named authorization with the value Bearer sk_live_YOUR_KEY (the word Bearer, a space, then the key).
  4. OAuth is not offered by Dataruma. Do not pick an OAuth client.

ChatGPT and OpenAI connectors

The documented ChatGPT “add a custom MCP server” form offers OAuth, no authentication, or mixed. It does not offer a bearer API-key field. An OpenAI plugin manifest can declare auth.type api_key with a bearer header, but the submission portal’s connection form does not support API-key declarations. Dataruma has no OAuth, so that form cannot attach a key. You can still point a no-auth client at the URL: initialize and tools/list succeed, and tools/call returns a tool error that points at signup and at x402. Use Cursor, Claude, or any client that can send Authorization for priced calls.

Any Streamable HTTP client

POST JSON-RPC 2.0 to https://api.dataruma.com/mcp. Accept must list both application/json and text/event-stream, or the server returns 406. The response is a single JSON body, not an SSE stream. There is no session id. Supported protocol versions are 2025-03-26, 2025-06-18, and 2025-11-25. A newer version in initialize is answered with 2025-11-25. GET with Accept: text/event-stream returns 405. A plain GET returns the public catalog. Notifications such as notifications/initialized return 202 and an empty body.

curlcurl -s https://api.dataruma.com/mcp \
  -H 'Accept: application/json, text/event-stream' \
  -H 'Content-Type: application/json' \
  -H 'MCP-Protocol-Version: 2025-11-25' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Install the skill

  1. Download https://v2.dataruma.com/skills/dataruma/SKILL.md or the zip at https://v2.dataruma.com/skills/dataruma.zip. The same SKILL.md is also at https://api.dataruma.com/skill.md.
  2. Claude Code: copy the folder to .claude/skills/dataruma/SKILL.md in the project, or to ~/.claude/skills/dataruma/SKILL.md.
  3. Cursor: copy it to .cursor/skills/dataruma/SKILL.md, or to ~/.cursor/skills/dataruma/SKILL.md.
  4. Other skill-aware agents: put SKILL.md where that agent loads skills. The folder also has README.md and references/.

Example prompts

  1. What is the InaRISK flood class at latitude -6.2, longitude 106.845? Say whether the result is a labelled example.
  2. What RDTR zone contains this Jakarta coordinate?
  3. Find sale comps for a house near this point. If the status is insufficient_data, say so and do not invent a price.
  4. Run an indicative AVM. Houses, shop-houses, and land need land_m2. Apartments need building_m2. Fewer than 5 usable comps returns insufficient_data and no value.

Costs

  1. Flood risk $0.01 (10000 micro-USD), scope dataruma.flood. Neighborhood $0.01 (10000 micro-USD), scope dataruma.neighborhood. Comps $0.03 (30000 micro-USD), scope dataruma.comps. Valuation and the legacy p10/p50/p90 route $0.08 (80000 micro-USD), scope dataruma.valuation. Matchmaking under /v1/market is not billed and needs dataruma.market.
  2. Public signup keys receive dataruma.flood, dataruma.neighborhood, and dataruma.valuation. Comps and market are not on that list.
  3. insufficient_data is a successful, billed response. An HTTP 4xx or 5xx from REST is refunded. A short balance is 402 INSUFFICIENT_CREDITS.
  4. Create a key at https://v2.dataruma.com/signup.

USDC on Solana

Top up with USDC on Solana only. POST /v1/topups, x402 version 2, scheme exact, network solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, asset EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. One micro-USD is one USDC atomic unit. The first call returns 402 and a base64 PAYMENT-REQUIRED header when a Solana recipient is configured. Retry with PAYMENT-SIGNATURE. The public x402.org facilitator settles testnets only. Solana mainnet needs the facilitator configured on the Worker. The recipient address is not in source.