Reverse engineer anything with agents, from app behavior down to native binaries.
Exstruct
Conversion from Excel to structured JSON (tables, shapes, charts) for LLM/RAG pipelines, and autonomous Excel reading/writing by AI agents via CLI and MCP integration.
Install
git clone https://github.com/harumiWeb/exstructInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Excel Structured Extraction Engine
English
|
日本語
ExStruct — Excel Structured Extraction Engine
ExStruct reads Excel workbooks into structured data and applies patch-based editing workflows through a shared core. It provides extraction APIs, a JSON-first editing CLI, and an MCP server for host-managed integrations, with options tuned for LLM/RAG preprocessing, reviewable edit flows, and local automation.
- In COM/Excel environments (Windows), it performs rich extraction.
- In non-COM environments (Linux/macOS):
- direct OOXML parsing extracts cells, shapes, charts, table candidates, and print areas on a best-effort basis
- if the LibreOffice runtime is available, cells, table candidates, shapes, and charts are also extracted on a best-effort basis
Detection heuristics, editing workflows, and output modes are adjustable for LLM/RAG pipelines and local automation.
Main Features
- Excel -> structured JSON: outputs cells, shapes, charts, SmartArt, table candidates, merged-cell ranges, print areas, and auto page-break areas by sheet or by area.
- Output modes:
light: cells + table candidates + print areas + best-effort shapes/charts via direct OOXML for.xlsx/.xlsmlibreoffice: best-effort non-COM mode for.xlsx/.xlsm. When the LibreOffice runtime is available, it adds merged cells, shapes, connectors, and chartsstandard: Excel COM mode with texted shapes + arrows, charts, SmartArt, and merged-cell rangesverbose: outputs all shapes with width/height and also emits cell hyperlinks
- Formula extraction: emits
formulas_map(formula string -> cell coordinates) via OOXML or the selected openpyxl/COM path. It is enabled by default inverboseand can be controlled withinclude_formulas_map. - Formats: JSON (compact by default,
--prettyfor formatting), YAML, and TOON (optional dependencies). - Workbook editing interfaces: use the editing CLI for primary ExStruct edit flows, keep MCP for host-owned safety controls, and use
exstruct.editonly when you need the same patch contract from Python. - Table detection tuning: heuristics can be adjusted dynamically through the API.
- Hyperlink extraction: in
verbosemode, or withinclude_cell_links=True, cell links are emitted inlinks. - Safe fallback:
lightuses direct OOXML for.xlsx/.xlsmwithout Excel COM or LibreOffice. Unsupported OOXML orcolors_maprequests restart the complete openpyxl compatibility pipeline with anooxml_compatibilitywarning; partial results are discarded. A drawing failure isolated to one sheet remains best-effort.
Installation
pip install exstruct
Optional extras:
- Border-clustering acceleration:
pip install exstruct[fast](SciPy). Normal direct light extraction uses Python clustering. SciPy acceleration andEXSTRUCT_BORDER_CLUSTER_BACKENDselection apply to other modes and compatibility extraction; NumPy remains a core dependency. - YAML:
pip install pyyaml - TOON:
pip install python-toon - Rendering (PDF/PNG): Excel +
pip install pypdfium2 pillow(mode=libreofficeis not supported) - Install these extras at once:
pip install exstruct[yaml,toon,render,fast]
Platform note:
- On Debian/Ubuntu/WSL, install LibreOffice together with
python3-uno. ExStruct probes a compatible system Python automatically formode=libreoffice; if your environme
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)