Your email lives
where your code lives.

AI-native CLI email for developers who ship. IMAP/SMTP engine, BubbleTea TUI, and MCP server — so Claude Code can read your inbox while you keep coding.

$ mise install lgtm
Star on GitHub
Go
single static binary
7
MCP tools
3
permission tiers
vim
keybindings native
lgtm — inbox
$ lgtm inbox --unread
  3 unread · [email protected]
 
  [email protected]     Re: Series A — terms look good
  [email protected]      API integration follow-up
  [email protected]   RE: RE: RE: Q3 Brand Sync 🙄
 
$ lgtm reply --thread=sequoia "yes to terms, push timeline 2wks"
  → drafting via Claude...
  → draft ready. review? (y/n) y
 
  sent to [email protected] — 0.4s, 0 context switches
FEATURES

Three layers. Each works alone.
Compose via interfaces.

Built on Unix philosophy — every layer is independently useful. Use the CLI in scripts, the TUI for daily triage, and the MCP server to let AI handle the rest.

CLI Engine

IMAP sync, SQLite local cache, SMTP send, thread indexing. Pipe-friendly output for scripting. lgtm inbox | grep sequoia

BubbleTea TUI

Three-pane layout with vim keybindings. Navigate threads with j/k, compose with $EDITOR, archive with a. Email at terminal speed.

MCP Server

Your inbox becomes a tool. Claude Code sees your email like it sees your filesystem. One JSON entry in your config. That's it.

HOW IT WORKS

Email without leaving your terminal.

Stop the alt-tab loop. lgtm brings email into the workflow you already have.

1

Install in seconds

mise install lgtm — single Go binary, zero runtime dependencies. Add your IMAP credentials and you're live.

2

Triage at terminal speed

Launch the TUI or use CLI commands. j/k to navigate, enter to read, r to reply, a to archive. 20 emails in 3 minutes.

3

Let AI handle the rest

Add lgtm-mcp to your Claude Code config. Ask Claude to check your inbox, draft replies, and send — without leaving your codebase.

4

Tag the Jerrys

lgtm jerry add jerry@marketing — tag senders whose emails Claude can auto-handle. Polite replies, silent archives. You get your life back.

~/.config/lgtm/config.toml
[account.work]
imap  = "imap.gmail.com:993"
smtp  = "smtp.gmail.com:587"
auth  = "oauth2"
 
[mcp]
permission = "draft" # read | draft | full
transport  = "stdio"
claude_desktop_config.json
  "mcpServers":
    "lgtm":
      "command": "lgtm-mcp"
   
 
 
// That's it. Claude sees your inbox.

Your inbox, as a tool.
Like fs. Like git. Like your db.

The MCP server turns email into composable tools for Claude Code. Read threads, draft replies, search — all without leaving your codebase. Three permission tiers keep you in control.

list_emailsBrowse inbox with filters
read_threadFull conversation context
search_emailsFull-text search with scoring
draft_replyAI-drafted contextual reply
send_emailSend with threading headers
move_emailArchive, folder, organize
list_foldersFolder tree with unread counts
READ
List, read, search. No mutations. Safe default for most setups.
DRAFT
Read + create drafts. Human approves before send. Recommended.
FULL
Read + draft + send + move. For power users who trust their AI workflow.

Stop alt-tabbing. Start shipping.

One command. Your email is in your terminal in under a minute.

$ mise install lgtm
or: go install github.com/goteammate/lgtm/cmd/lgtm@latest
quick start
$ mise install lgtm
$ vim ~/.config/lgtm/config.toml # add account
$ lgtm # launch TUI
$ lgtm inbox # or use CLI directly