O

Oauth Mail MCP

by jmengit · jmengit/oauth-mail-mcp

Enables authenticated MCP clients to list, search, read, flag, draft, and optionally send mail from one Gmail or Microsoft 365 mailbox using OAuth without app registration.

Unknown transport Glama Low confidence
Note

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MAIL_ACCOUNT Yes `gmail` or `m365` — selects endpoints, grant and folder aliases
MAIL_ADDRESS Yes Mailbox address, used as the SASL username and `From`
MAIL_MCP_TOKEN Yes Bearer token the MCP client must present (`openssl rand -hex 32`)
MAIL_ALLOW_SEND No `true` enables `mail_send`; default `false` Default: false
MAIL_MAX_BODY_CHARS No Body truncation for `mail_read`, default 20000 Default: 20000
GOOGLE_CLIENT_SECRET No Required when MAIL_ACCOUNT is `gmail`. Mozilla's public Thunderbird client secret
MAIL_HEALTH_CACHE_SECS No Health probe cache, default 60 Default: 60

Similar servers