saad-dev.com / work / Portfolio-Summarizer
Data platform · MCP · agent
Portfolio-Summarizer
Three sources, fourteen tables, three tiers — raw Parquet, a DuckDB warehouse, and derived scores in their own partition. Loads are idempotent: append dedupes on a declared primary key, so a re-run costs nothing. The agent is the last mile, not the point.
$ airflow dags trigger portfolio_daily
- [airflow] dag tick · 06:00 UTC
- [edgar] SEC filings → 4 forms 2.1s
- [prices] Yahoo Finance → 1,254 rows
- [news] Alpha Vantage → 38 headlines
- [warehouse] 14 tables written · duckdb
- [score] 5 modules blended · −100…+100
- ✓ AAPL: +37 · polars / pyarrow
What it does
An Airflow-orchestrated data platform that pulls SEC filings, prices and news every day, lands them in a 14-table DuckDB warehouse, scores each ticker from −100 to +100, and lets a Claude agent query it all through an MCP server.
How it works
- Daily Airflow DAGs extract from SEC EDGAR, Yahoo Finance and Alpha Vantage.
- Three tiers: raw Parquet, a 14-table DuckDB warehouse, and derived scores in their own partition.
- Idempotent loads: appends dedupe on a declared primary key, so a re-run costs nothing.
- A five-module scoring model: price signals, EPS prediction, financial health and qualitative signals, then a final module that blends them into one score.
- An MCP server exposes named DuckDB queries as tools; a Claude agent (LangGraph) answers questions about the portfolio.
By the numbers
- 3 data sources
- 14 tables
- 5 scoring modules
- score from −100 to +100
Stack
- Apache Airflow
- Polars
- PyArrow
- DuckDB
- MCP
- LangGraph
- Anthropic Claude
- Docker Compose
Questions
Can I run Portfolio-Summarizer myself?
Yes. It is open source at https://github.com/s-wasim/Portfolio-Summarizer, and the README walks through running it locally.
Can Saad Waseem build something like Portfolio-Summarizer for my team?
Yes. He builds production AI agents and automations like this one, remotely from Lahore for teams in the US and EU, at $40/hr for build work. Book 20 minutes from the CV, or email saad@saad-dev.com.
Source on GitHub ↗Data dictionary ↗Back to the CVWant one built for you?