msgvault is an offline email archive tool that exports and stores email data locally with full-text search capabilities.
This is free and open source software.
Key Features
- Full Gmail backup: raw MIME, attachments, labels, and metadata.
- MBOX / Apple Mail import: import email from MBOX exports or Apple Mail (.emlx) directories.
Interactive TUI: drill-down analytics over your entire message history, powered by DuckDB over Parquet. - Full-text search: FTS5 with Gmail-like query syntax (from:, has:attachment, date ranges).
- MCP server: access your full archive at the speed of thought in Claude Desktop and other MCP-capable AI agents.
- DuckDB analytics: millisecond aggregate queries across hundreds of thousands of messages in the TUI, CLI, and MCP server.
- Incremental sync: History API picks up only new and changed messages.
- Multi-account: archive several Gmail accounts in a single database.
- Resumable: interrupted syncs resume from the last checkpoint.
- Content-addressed attachments: deduplicated by SHA-256.
Website: github.com/wesm/msgvault
Support:
Developer: Wes McKinney
License: MIT License

msgvault is written in Go. Learn Go with our recommended free books and free tutorials.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.