r/OpenSourceAI • • 20d ago

I built an open-source email client your AI agent can use over MCP, with real permissions (works with local models too)

I built Regards, a free and open-source email app for Windows, Mac and Linux (Apache-2.0 / MIT). The part this sub might care about: it ships with an MCP server and a CLI, so your own agent can read, search, sort and draft your mail.

I didn't want to hand an LLM my inbox and hope for the best, so the agent side is locked down:

- Each account has a level: off (default), read, triage or send. Only you can change it, in the app.

- An agent can never send by itself. Every send waits for your approval and you see the exact draft. Or you set an undo window per account.

- Big actions wait for you too: changing more than 50 messages at once, deleting for good.

- Everything an agent did is in an activity log, and you can undo it for a day.

- Message text is passed to the agent as data, with a reminder not to follow instructions inside it (prompt injection by email is a real thing).

- One switch turns every agent off.

It works with Claude Code, Codex, Cursor, and with local models through LM Studio, Jan or Goose. Regards itself never sends anything to any AI: no built-in model, no API key, no server, no telemetry. The mail stays on your computer and the agent is whatever you plug in.

It's also just a normal email app (any IMAP provider, snooze, send later, undo everywhere), written in Rust + Tauri.

It's early, about a month old, but I use it for my own mail every day. I'd love feedback, especially on the permission model: what would you want before letting an agent near your inbox?

Site: https://regards-two.vercel.app

Code: https://github.com/lucienPochon/regards

Agent docs: https://github.com/lucienPochon/regards/blob/main/docs/agents.md

1 Upvotes

2 comments sorted by

1

u/leonbollerup 19d ago

what sets it apart from any of the other 50 solutions ?

https://github.com/search?q=imap+mcp&type=repositories

In these days.. where we can build anything in a matter of hours.. its worth to ask ourself - should.. or should we improve upon somebody elses work and maybe help a broader grouper of people.. instead of just creating something that most likely wont be maintained over time..

2

u/Otherwise_Celery_406 17d ago

fair question tbh. the short answer is it's not really an imap mcp server, it's a full desktop mail client you use yourself every day (inbox, compose, search, snooze, send later etc). the mcp is just one way in

and that's kind of the point. most of those repos put your imap password in a config file and the model can do whatever imap lets it do. in regards:

  • the agent never sees your password, it stays in the os keychain and the agent talks to a local service on your machine. no network port, no server of mine
  • you pick per account what agents can do: nothing / read / organise / ask to send
  • every send waits for you to approve it in the app (or sits in the outbox with an undo window if you want that). same for bulk changes over 50 mails and permanent deletes
  • you see everything the agent did and can undo it for a day

you can't really add that to a standalone mcp server, because the approvals and undo need a ui and have to live where the mail actually is

on the second part, honestly i mostly agree with you. in my case having that built in meant changing the core of the client, not adding a plugin. it's apache/mit, every design decision is written down in the repo, and ci runs against a real imap server, so if i drop it someone can pick it up.