4 ms·
I made an MCP for myself that syncs all my Microsoft mail into a local sqlite db and exposes it as read-only to the agent. `query` tool can do search (FTS5 matc
by infogulch 28d ago
I made an MCP for myself that syncs all my Microsoft mail into a local sqlite db and exposes it as read-only to the agent. `query` tool can do search (FTS5 match) or browse (by date) on mailboxes/threads and returns lists of email with FTS5 snippets + paging. `get` reads multiple emails by id.
It's very fast: most queries finish in < 10ms. Agents are able to find things quickly and efficiently even with vague questions. The app does a few things to minimize token output, but there's a long tail of potential token reduction strategies that I haven't gotten to yet.