Static data lineage for Jupyter notebooks and Python jobs — exposed as an MCP server for AI-assisted discovery in your IDE.
Clone → install → point MCP at your jobs → ask what reads/writes what.
- Jobs:
.ipynband.py - Libraries: pandas, polars, PySpark, DuckDB, SQL, cloud wrappers, local files
- Cloud-agnostic: no Azure/AWS/GCP lock-in in naming or design
- Export: JSON for Python and Power BI
┌────────────┐ MCP ┌─────────────────────┐
│ Cursor / │ ◄──────────► │ jupyter_lineage_mcp │
│ VS Code │ └──────────┬──────────┘
└────────────┘ │ AST scan
┌──────────▼──────────┐
│ your .ipynb / .py │
└─────────────────────┘
git clone <repo-url> cd jupyter-lineage-mcp pip install -e . export-lineage --root samples
MCP setup (Cursor, VS Code, Claude)
| Tool | Description |
|---|---|
scan_lineage |
Re-scan jobs |
list_jobs |
List .py / .ipynb with I/O counts |
get_job_lineage |
Full lineage for one job |
find_upstream / find_downstream |
Cross-job dependencies |
search_lineage |
Search datasets |
export_lineage |
Write JSON export |
get_lineage_graph / get_lineage_mermaid |
Visualize |
get_triggers |
Optional schedule metadata |
jupyter-lineage-mcp/
├── jupyter_lineage_mcp/ # MCP server + parser
├── samples/ # Demo jobs (default LINEAGE_ROOT)
│ ├── notebooks/
│ ├── scripts/
│ └── config/ # Stub read_file / write_file wrappers
├── docs/
│ ├── MCP_SETUP.md
│ ├── SUPPORTED_PATTERNS.md
│ └── CURRICULUM.md
├── mcp_config.example.json
└── LICENSE # MIT
- Follow patterns in docs/SUPPORTED_PATTERNS.md
- Set
LINEAGE_ROOTto your project folder - Use cloud-agnostic
read_file/write_filewrappers for object storage - Run
export-lineagein CI to track dependency changes
| Job | Type | Demonstrates |
|---|---|---|
01_ingest_cloud_and_sql.ipynb |
notebook | SQL + cloud wrapper + write |
02_transform_pyspark.ipynb |
notebook | PySpark read/write + upstream link |
pipeline_ingest.py |
script | pandas + SQL + cloud |
pipeline_transform_polars.py |
script | polars |
pipeline_publish.py |
script | DuckDB + pandas downstream |
docs/CURRICULUM.md — four chapters for data engineers (MCP, patterns, AST, modeling).
MIT — see LICENSE.
Add patterns in jupyter_lineage_mcp/patterns.py, samples in samples/, and document in SUPPORTED_PATTERNS.md.