{
  "$schema": "https://modelcontextprotocol.io/schemas/server-card/v1.json",
  "serverInfo": {
    "name": "dev.bitemporal/pit-parquet-catalog",
    "title": "bitemporal.dev: Point-in-Time Bitemporal Parquet Catalog",
    "version": "1.1.1",
    "description": "Zero-lookahead-bias Point-in-Time AS OF slices across 49 regulatory, SEC, energy, and AI pricing datasets (690048 rows)."
  },
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://bitemporal.dev/mcp"
  },
  "endpoints": [
    {
      "type": "streamable-http",
      "url": "https://bitemporal.dev/mcp"
    }
  ],
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false
    }
  },
  "authentication": {
    "required": false,
    "schemes": [
      "bearer",
      "x402",
      "mpp"
    ]
  },
  "x402": {
    "version": 2,
    "mode": "live",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0x9899bc4Dff61de1D2EDEEC6be696628F0E4Ca5dD",
    "manifestUrl": "https://bitemporal.dev/.well-known/x402.json"
  },
  "documentationUrl": "https://bitemporal.dev/llms.txt",
  "tools": [
    {
      "name": "list_datasets",
      "description": "List available Point-in-Time datasets, temporal bounds, row counts, and schemas (Free $0.00).",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.00",
          "atomicUnits": "0",
          "currency": "USDC",
          "free": true,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      },
      "_meta": {
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.00",
          "atomicUnits": "0",
          "currency": "USDC",
          "free": true,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      }
    },
    {
      "name": "describe_dataset",
      "description": "Return dataset Arrow schema columns, known_at/effective_at bounds, and 5-row sample preview (Free $0.00).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string",
            "description": "Dataset identifier returned by list_datasets (for example, 'sec_form4_cluster_v1' or 'epa_cems_pit_v1')."
          }
        },
        "required": [
          "dataset_id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.00",
          "atomicUnits": "0",
          "currency": "USDC",
          "free": true,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      },
      "_meta": {
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.00",
          "atomicUnits": "0",
          "currency": "USDC",
          "free": true,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      }
    },
    {
      "name": "preview_pit_rows",
      "title": "Preview Latest PIT Dataset Rows (Free Capped Sample)",
      "description": "Free capped 3-row live preview of the latest records (10 calls/day per IP; no as_of_utc or aggregations). Need AS OF time-travel, <= 1000 rows, or aggregations? Call query_pit_snapshot ($0.02-$0.08 USDC).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string",
            "description": "Dataset identifier returned by list_datasets (for example, 'state_warn_v1' or 'us_fda_drug_shortages_pit_v1')."
          },
          "entity_id": {
            "type": "string",
            "description": "Optional canonical entity identifier (LEI or bitemporal entity_id) to filter rows for a specific issuer or operator."
          },
          "ticker": {
            "type": "string",
            "description": "Optional primary equity ticker symbol (for example, 'AAPL' or 'SO') to filter mapped public-company records."
          },
          "cik": {
            "type": "string",
            "description": "Optional 10-digit zero-padded SEC Central Index Key (for example, '0000320193') to filter SEC-mapped records."
          },
          "key": {
            "type": "string",
            "description": "Optional exact natural-key lookup string to retrieve a specific record in the dataset."
          },
          "where_sql": {
            "type": "string",
            "description": "Optional read-only conjunction of column comparison predicates (col = 'val', !=, <, <=, >, >= joined by AND), validated against a strict AST allowlist."
          },
          "filters": {
            "type": "object",
            "description": "Optional map of column names to exact string or numeric equality values (for example, {\"state_code\": \"CA\"})."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 3,
            "description": "Maximum number of latest preview rows to return (integer from 1 to 3; defaults to 3)."
          }
        },
        "required": [
          "dataset_id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.00",
          "atomicUnits": "0",
          "currency": "USDC",
          "free": true,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      },
      "_meta": {
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.00",
          "atomicUnits": "0",
          "currency": "USDC",
          "free": true,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      }
    },
    {
      "name": "query_pit_snapshot",
      "description": "Execute point-in-time AS OF slice (<=1,000 rows) or analytical aggregation (<=25,000 rows). [Price: $0.02 USDC slice / $0.08 USDC aggregate via x402]",
      "inputSchema": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string",
            "description": "Dataset identifier returned by list_datasets (for example, 'sec_form4_cluster_v1' or 'epa_cems_pit_v1')."
          },
          "entity_id": {
            "type": "string",
            "description": "Optional canonical entity identifier (LEI or bitemporal entity_id) to filter rows for a specific issuer or operator."
          },
          "ticker": {
            "type": "string",
            "description": "Optional primary equity ticker symbol (for example, 'AAPL' or 'SO') to filter mapped public-company records."
          },
          "cik": {
            "type": "string",
            "description": "Optional 10-digit zero-padded SEC Central Index Key (for example, '0000320193') to filter SEC-mapped records."
          },
          "key": {
            "type": "string",
            "description": "Optional exact natural-key lookup string to retrieve a specific record as of the requested timestamp."
          },
          "as_of_utc": {
            "type": "string",
            "description": "Optional ISO-8601 UTC timestamp (for example, '2025-06-01T00:00:00Z') restricting results to records with known_time_utc <= as_of_utc for zero-lookahead AS OF queries."
          },
          "where_sql": {
            "type": "string",
            "description": "Optional read-only conjunction of column comparison predicates (col = 'val', !=, <, <=, >, >= joined by AND), validated against a strict AST allowlist."
          },
          "filters": {
            "type": "object",
            "description": "Optional map of column names to exact string or numeric equality values (for example, {\"state_code\": \"CA\"})."
          },
          "group_by": {
            "type": "string",
            "description": "Optional column name to group rows by when executing an analytical aggregation ($0.08 USDC tier)."
          },
          "aggregation": {
            "type": "string",
            "enum": [
              "COUNT",
              "SUM",
              "AVG",
              "MIN",
              "MAX"
            ],
            "description": "Optional SQL aggregate function (COUNT, SUM, AVG, MIN, or MAX) to compute over matching point-in-time rows ($0.08 USDC tier)."
          },
          "agg_column": {
            "type": "string",
            "description": "Optional numeric column name targeted by SUM, AVG, MIN, or MAX aggregations (omit for COUNT)."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25000,
            "description": "Maximum number of rows to return (1 to 1,000 for $0.02 USDC slices; up to 25,000 for $0.08 USDC aggregations or extended slices)."
          }
        },
        "required": [
          "dataset_id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.02",
          "atomicUnits": "20000",
          "aggregatePriceUsd": "0.08",
          "aggregateAtomicUnits": "80000",
          "currency": "USDC",
          "free": false,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      },
      "_meta": {
        "pricing": {
          "pricingVersion": "1.0.0",
          "priceUsd": "0.02",
          "atomicUnits": "20000",
          "aggregatePriceUsd": "0.08",
          "aggregateAtomicUnits": "80000",
          "currency": "USDC",
          "free": false,
          "protocols": [
            "x402"
          ],
          "network": "eip155:8453"
        }
      }
    }
  ]
}
