GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aakashkh/jupyter-lineage-mcp: MCP server for static data lineage in Jupyter notebooks and Python ETL jobs

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.cursor
.cursor
 
 
docs
docs
 
 
jupyter_lineage_mcp
jupyter_lineage_mcp
 
 
samples
samples
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mcp_config.example.json
mcp_config.example.json
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

jupyter-lineage-mcp

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: .ipynb and .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   │
                              └─────────────────────┘

Quick start

git clone <repo-url>
cd jupyter-lineage-mcp
pip install -e .
export-lineage --root samples

MCP setup (Cursor, VS Code, Claude)

MCP tools

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

Project layout

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

Use with your own codebase

  1. Follow patterns in docs/SUPPORTED_PATTERNS.md
  2. Set LINEAGE_ROOT to your project folder
  3. Use cloud-agnostic read_file / write_file wrappers for object storage
  4. Run export-lineage in CI to track dependency changes

Sample jobs

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

Learning guide

docs/CURRICULUM.md — four chapters for data engineers (MCP, patterns, AST, modeling).

License

MIT — see LICENSE.

Contributing

Add patterns in jupyter_lineage_mcp/patterns.py, samples in samples/, and document in SUPPORTED_PATTERNS.md.

About

MCP server for static data lineage in Jupyter notebooks and Python ETL jobs

Topics

data-lineageetljupyterjupyter-notebookmcpmcp-servermodel-context-protocol

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.