
pypimap
io.github.NaelAqel/pypimap
PyPIMap hosted MCP: package search, Depends on / Used by, importance score.
Documentation
PyPiMap
An interactive map of the Python package dependency ecosystem.
Site: pypimap.com
Architecture

More detail: docs/project-map.md.
What is PyPiMap?
PyPiMap shows PyPI packages on a Galaxy map. You can also open an Explorer graph for one package.
Search or select a package to see:
- what it Depends on
- what Used by it
- core vs optional links
- basic package metadata
Data updates every day. Full history is also on Kaggle (DOI 10.34740/kaggle/ds/10945692).
Credits
The Galaxy zoom and pin feel is inspired by Open Model Family Tree / Model Galaxy. PyPIMap is about package dependencies, not AI model lineage.
Features
- Galaxy map - zoom and search across many packages
- Explorer graph - Depends on / Used by, core vs optional
- Expand / recenter - keep exploring without losing place
- Package metadata - Author, Source (
source_url),importance_score, and PEP 440active_version - Daily ETL - plus public Parquet / Kaggle data
- Hosted MCP for AI agents: pypimap.com/mcp
Tech Stack
- Frontend: React, Vite, Tailwind CSS, Zustand; Galaxy map +
react-force-graph-2d(Explorer) - Backend: FastAPI, PostgreSQL
- Pipeline: DuckDB + PostgreSQL ETL; Galaxy tiles after each load
- Infra: Hetzner, Cloudflare, Caddy; Docker Compose or Podman Compose
- MCP:
mcp/athttps://mcp.pypimap.com/mcp
MCP server
Hosted URL (streamable HTTP): https://mcp.pypimap.com/mcp
Product docs: pypimap.com/mcp.
Tools
| Tool | What it does |
|---|---|
search_packages | Search active packages by name or author |
package_info | Metadata, Depends on / Used by counts, importance |
package_depends_on | What the package needs (dependencies) |
package_used_by | Who needs the package (dependents) |
last_update | Pipeline freshness |
Connect (remote URL)
Cursor (mcp.json):
{
"mcpServers": {
"pypimap": {
"url": "https://mcp.pypimap.com/mcp"
}
}
}
Claude Desktop (remote / server URL when the client allows it):
{
"mcpServers": {
"pypimap": {
"url": "https://mcp.pypimap.com/mcp"
}
}
}
If the product only supports local stdio, see mcp/README.md (plug B). Claude Desktop often rejects the hosted URL - use local install then.
Example questions
- Which packages depend on requests?
- What does fastapi depend on?
- How important is numpy in the ecosystem?
No MCP in the product? Use the public JSON API.
Data Pipeline
PyPIStats / PyPI
↓
Daily ETL
↓
Generated Parquet data
↓
PostgreSQL
↓
PyPiMap API
↓
Interactive frontend
ETL builds new Parquet files each day. The latest files are on the daily_parquet_after_etl branch. That branch is only for generated data. It is not a feature branch.
The Kaggle dataset is built from those files. It has raw Parquet and processed sets for analysis.
Active version and upload dates
The current package row in pypi.metadata sets these fields on different rules:
| Field | Meaning | How we choose it |
|---|---|---|
active_version | Version shown (like the PyPI project page) | Highest PEP 440 version; prefer a final release when one exists |
last_upload_date | Most recent upload | max(upload_date) for that package |
first_upload_date | First upload we saw | min(upload_date) |
So a new .dev or backport upload can change last_upload_date without changing active_version. Dependency edges use requires_dist from the selected active_version.
Sort details live in pipeline/sql/duckdb_to_pg.sql (and the migration SQL).
Data Sources & Attribution
PyPiMap builds on:
- PyPIStats distribution metadata from the Google BigQuery public dataset
- PyPI Simple API to check which packages are active
Note: Files in this repo may lag the latest daily set. Use
daily_parquet_after_etlor the Kaggle dataset for the newest data.Dataset DOI: 10.34740/kaggle/ds/10945692. Use this DOI when you cite the dataset.
Getting Started
git clone https://github.com/naelaqel/pypimap.git
cd pypimap
docker compose up --build
The same docker-compose.yml works with Podman: podman compose up --build (or podman-compose).
Then open http://localhost:3000.
For frontend hot-reload, see Local Frontend Development in CONTRIBUTING.md.
Full setup: CONTRIBUTING.md.
Environment Configuration
Copy the example file and edit values as you need:
cp .env.example .env
.env.example lists variables for:
- PostgreSQL
- Backend and frontend ports
- CORS origins
- Frontend API URL
- Google Cloud credentials for BigQuery
- GitHub App credentials for the ETL pipeline
For a basic local app, keep the local PostgreSQL and API/frontend defaults.
Project Structure
backend/ FastAPI backend and API
frontend/ React frontend
pipeline/ ETL pipeline and database loading
- Frontend - the web app
- Backend - API and database access
- Pipeline - extract, transform, and load
API
The backend serves search, package info, dependency links, and graph data.
When the backend runs locally, open FastAPI’s interactive docs for the full list.
Data Freshness
Data refreshes once per day through the ETL pipeline.
PyPI can change between runs. The site may lag those changes by up to one day.
Latest generated data: daily_parquet_after_etl and the Kaggle dataset.
Contributing
Contributions are welcome.
feature/fix branch
↓
dev
↓
release
↓
main
- Branch from
devfor features and fixes. - Open pull requests against
dev. mainholds stable releases.daily_parquet_after_etlis only for ETL data.
See CONTRIBUTING.md for setup and workflow.
License
This project uses the MIT License.
Author
Built and maintained by Nael Aqel.
GitHub · LinkedIn · Kaggle · Website
Support
If PyPiMap helps you, you can support hosting and development:
No installation packages available.