Skip to main content
Glama
datum-api

datum-api

by DatumLabMHQ

datum-api

Part of Atlas, Datum Labs' internal data infrastructure. Start there for how the parts fit together.

Read-only HTTP API and MCP server over the Datum data platform (DatumLabMHQ/datum-models). One registry of curated tables, one list of consensus questions, served two ways so dashboards, reports and agents get the same number.

  • GET /api/v1/products — resources and their filters

  • GET /api/v1/{product}/{resource}?day=&…&limit= — rows from a curated table (latest day by default)

  • GET /api/v1/questions and GET /api/v1/ask/{id}?date= — the datum-context eval questions, answered from the canonical SQL

  • GET /api/v1/health — latest run per job, source freshness, last build

  • POST /api/mcp — MCP streamable HTTP with tools list_products, list_questions, ask, query, health

Auth: when DATUM_API_KEYS is set, send x-api-key: <key> (or Authorization: Bearer, or ?key=). Reads use the datum_reader role only. Deployed on Cloudflare Workers (Datum Labs account) at https://datum-api.datumlabs.workers.dev via vinext (cloudflare.config.ts).

Claude Code: claude mcp add --transport http datum https://datum-api.datumlabs.workers.dev/api/mcp --header "x-api-key: <key>"

Deploy: npx cf auth login, set secrets DATABASE_URL (Neon, datum_reader role) and DATUM_API_KEYS (comma-separated) with npx cf workers secrets update <NAME> --worker datum-api, then npm run deploy. Local: npm run dev (vite, port 3000).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables read-only SQL querying and schema inspection across MSSQL, PostgreSQL, and MySQL databases via MCP tools.
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables read-only access to company data across PostgreSQL, MongoDB Atlas, and flat files through MCP tools, allowing AI assistants to query and retrieve information via natural language.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides read-only, guarded access to business databases via MCP. Enables natural language querying with built-in security barriers like table allowlists, PII masking, and audit logging.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables governed, read-only SQL analytics, hybrid RAG knowledge search, financial metric calculation, and database schema introspection through MCP, with role-based access control, audit logging, and AI observability.
      -