API & MCP
Everything a person can do on Data Lineage Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://datalineageexplorer.usefulweb.site/api/v1/calculate– run Data Lineage ExplorerGET https://datalineageexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Data Lineage Explorer
Paste SQL (CREATE VIEW/TABLE AS SELECT, INSERT … SELECT, MERGE, UPDATE, CTEs, JOINs, UNION) or dbt models with {{ ref() }} and {{ source() }}. A built-in tokenizer and parser derives table-level lineage and column-level lineage for direct references and aliases, marks expressions as derived or aggregated, and traces everything upstream and downstream of a chosen table or column.
| Field | Type | Default | Description |
|---|---|---|---|
sql | textarea | — | SQL / dbt models. Separate statements with ";". Mark dbt models with a line "-- model: name" (or "-- file: models/name.sql"); the model’s SELECT becomes that table. |
file | file | — | Or upload a .sql file |
focus | text | — | Focus table or column. table or table.column. Defaults to the last target in the input. |
direction | select (both, upstream, downstream) | "both" | Trace |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://datalineageexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
data_lineage_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=data-lineage-explorer
{
"mcpServers": {
"data-lineage-explorer": { "type": "http", "url": "https://datalineageexplorer.usefulweb.site/mcp" }
}
}