https://www.msgvault.io
https://github.com/wesm/msgvault
msgvault syncs raw emails (including their attachments) from Gmail using the OAuth API and archives them in a SQLite database which is the system of record
The initial sync is slow: Gmail rate-limits you, and alternatives like Google Takeout are even slower. Once you finish the initial all-history sync, incremental syncs (e.g. once a day or once an hour, which you can run as cron jobs) take a matter of seconds.
It is relatively trivial to expose via MCP to systems like Claude Desktop, allowing you to search and summarize your email correspondence faster than ever.
.
.