What this thread does
Do first: pick a route that can search and read the mailbox you use (Gmail or Outlook), check which write actions it also exposes, connect it once, and ask the agent for a small search before trusting it with anything larger. Gmail connector Google connectors Help Center
Short answer
For finding booking receipts, search and read access is enough. One route is a claude.ai connector: Claude Code fetches claude.ai connectors itself in terminal, VS Code, JetBrains and Agent SDK sessions. Claude Code MCP doc Anthropic's Gmail documentation conflicts: the connector page describes Claude reading and searching email only, while the Help Center lists drafting, sending, replying, forwarding and email organization for Google connectors; inspect the available tools and block write tools before relying on a connector as read-only. Gmail connector Google connectors Help Center For Outlook, the Microsoft 365 connector lists "search email threads and archived email" as its read action for a work or school account, and its write actions (send mail, manage drafts and labels) apply when administrators turn them on, or for a personal account once connected. Microsoft 365 connector Write actions If you want a command-line route instead, Google's official gwscli can start with read-only scopes. gwscli doc
Choose / don't choose
| Route | Choose it when | Not for | Source |
|---|---|---|---|
| Gmail connector | You use Gmail in claude.ai or Claude Code | Setups where you need a guarantee of no write actions; on Team and Enterprise an Owner or Primary Owner must enable the connector first | Gmail connector Google connectors Help Center |
| Microsoft 365 connector | You use Outlook, personal or work | Work or school accounts where a Microsoft Entra Global Administrator will not grant tenant consent | Microsoft 365 connector |
gwscli (official Google Workspace CLI) | You want Gmail from a terminal agent with least-privilege scopes | Anyone who cannot supply a Google Cloud project and OAuth client for interactive setup (an existing project can be used, and an existing access token is also accepted) | gwscli doc |
gws (community CLI) | You already use it | New setups: Google's page says it is a separate community project and encourages moving to gwscli | gwscli doc gws README |
Direct Gmail API with gmail.readonly | You are building your own tool | Quick personal use: the scope is classed restricted, and apps storing such data on servers need a security assessment | Gmail scopes |
Microsoft Graph Mail.Read | You are building your own Outlook tool | Quick personal use; Graph's least-privileged delegated permission for listing messages is Mail.ReadBasic | Graph doc |
Settings that matter
| Setting | Value / behavior | Applies to | Source |
|---|---|---|---|
gwscli auth login --bundle=readonly | Authorizes OAuth scopes containing readonly, metadata or freebusy | gwscli sign-in | gwscli doc |
gwscli auth login gmail search_threads | Requests the OAuth scopes needed for the selected action; it does not establish an exclusive single-command permission boundary | Targeted scope request; inspect the resulting grants with gwscli auth status | gwscli doc |
gwscli Gmail commands | search_threads, get_thread and get_message read; send_message, reply, forward and create_draft write | Gmail | gwscli doc |
gmail.readonly | "View your email messages and settings"; listed as a restricted scope | Direct Gmail API | Gmail scopes |
| Connector tool settings | Run /mcp in Claude Code to see which setting applies to each tool on a connector | Organization-controlled connectors | Claude Code MCP doc |
Order of operations
1. Connector route: open the Connectors directory in claude.ai, connect Gmail or Microsoft 365 and sign in; then in a conversation turn the connector on from the + menu. Gmail connector 2. Claude Code route: log in to Claude Code with a claude.ai account, and connectors you added in claude.ai become available; run /mcp to see them. They are fetched only for a claude.ai subscription login, not when ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper is active. Claude Code MCP doc 3. CLI route: install gwscli, register an OAuth client with gwscli auth setup, then run gwscli auth login --bundle=readonly. gwscli doc 4. Ask for a narrow search, such as booking confirmations from one airline or hotel in one month, and check the cited messages yourself. The Gmail page says answers include citations that link back to the emails used. Gmail connector
Known failures and fixes
- Connector missing in Claude Code while it works in claude.ai: check that the active authentication method is a claude.ai login and not an API key. Claude Code MCP doc
- Gmail connector missing on Team or Enterprise: an Owner or Primary Owner must enable it for the organization first. Google connectors Help Center
- Claude cannot see images embedded in emails, so a receipt that is only an image may not be readable. Gmail connector
- With a personal Microsoft account, the connector's Outlook read action is "Search your email and calendar"; a work or school tenant needs administrator consent. Microsoft 365 connector
- Some read-only
gwsclicommands need scopes outside--bundle=readonlyand must be authorized explicitly. gwscli doc
Missing
- This comparison contains no mailbox-search results or receipt-retrieval measurements.
- Anthropic's Gmail connector page and Help Center article disagree on whether write actions exist; check your own connector's tool list before assuming it is read-only.
- This comparison does not provide prices, rate limits or Microsoft Graph search syntax.
Evidence
Claude connector pages for Gmail and Microsoft 365, the Google connectors Help Center article, the Claude Code MCP page, Google's gwscli guide (marked "Last updated 2026-11-28 UTC"), the community gws README, the Gmail API scope list and the Microsoft Graph list-messages page. 0 trials in this draft; not tried by WhatWorks.
Checked
2026-12-03; every page was read as served that day, and the gws README at the pinned commit 8e945eed02a8230af122ec6247cc218d28c1f1ce.
Started from a post by @Anthropic, packaged by the editor. Original post