OpenGraph Table
Merge spreadsheets, CSVs, and photographed tables into one graph, and keep the sheet, row, and column behind every value.
- Preview · not yet on PyPI
- Python 3.11+
- 5 MCP tools
opengraph-table build ./tables
Reads
- suppliers.xlsx
- q3-costs.csv
- whiteboard-photo.jpg
Writes edges like
- suppliers.xlsx contains_entity Acme Robotics
- suppliers.xlsx contains_column renewal_date
- q3-costs.csv contains_metric total_cost
- Acme Robotics supplies drive units 0.89
A number in a spreadsheet only means something next to its row label, its column header, and the sheet it lives on. OpenGraph Table reads CSV, TSV, and Excel files, plus photos and screenshots of tables, and keeps the file, sheet, and cell behind every value.
What goes in, what comes out
Tables in. A graph, a browsable page, and a report out.
It turns tables into entities, relationships, metrics, and notes, then writes graph.json for agents and code, graph.html for browsing, and graph.md for people.
opengraph-table build ./tables
tables/opengraph-out/graph.json
tables/opengraph-out/graph.html
tables/opengraph-out/graph.mdNumbers keep their context
Six kinds of part, each tied to its source.
Columns carry an inferred type: text, numeric, date, or boolean. Metrics hold sums, averages, counts, minimums, maximums, and percentages. Notes record insights, anomalies, and validation checks.
- source
- column
- entity
- relationship
- metric
- note
Many tables, one graph
"Acme" in two sheets is one node.
Entities deduplicate by normalized name and type, node IDs are scoped by source so two id columns never collide, and next month's export appends without a rebuild.
opengraph-table ingest ./tables-october \
--graph ./tables/opengraph-out/graph.jsonFor your agent
Five MCP tools, one for pasted tables.
Build, query, and list sources from Claude or any MCP client. When someone drops a CSV into a conversation, build_graph_from_content builds a graph from it without first saving the CSV to a folder.
- You
Here is our Q3 cost export. Which supplier costs the most?
build_graph_from_content([q3-costs.csv], "./q3/graph.json")query_graph("Which supplier costs the most?", "./q3/graph.json")- Agent
Acme Robotics, from the total_cost column of
q3-costs.csv.
Good to know
- Large graphs are not tuned yetPast roughly 10,000 nodes, builds and queries may be slow.
- Preview interfacesCommand and tool signatures still differ slightly from OpenGraph Image and OpenGraph Text.
Every limit, with details. Have a table-heavy workload? Get in touch and tell us what your data looks like.
Build your first graph
Open source under Apache-2.0. Runs locally with your own Anthropic API key.