[BUG] Gmail connector: thread search and message reading fail despite correct OAuth scopes (read works for labels/drafts, not messages
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
## Summary
The Gmail MCP connector shows partial functionality: write operations and
label retrieval work correctly, but thread/message search and reading email
content consistently fail. Claude reports this as a "scope limitation" even
though the required read scopes are fully granted.
## Environment
- Claude Code version: 2.1.101
- Platform: macOS
- Connector: Gmail (claude.ai integration)
## What's working
- Draft creation (write access)
- Label retrieval
## What's not working
- Thread/message search (
search_threads) - Reading email content (
get_thread)
## Expected behavior
All Gmail connector tools should function once the required OAuth scopes are
granted.
## Actual behavior
Read operations on threads and messages fail. Claude attributes this to
missing scopes, but the scope "View your email messages and settings" is
confirmed granted in Google Account settings.
## Troubleshooting already performed
- Removed and re-granted Google account access
- Performed a fresh OAuth reconnect
- Tested in incognito session
- Retried across multiple days and sessions
## Hypothesis
This appears to be a mismatch between the scopes granted by the user and how
the connector backend passes or validates those scopes when calling Gmail read
endpoints. The fact that write/label operations succeed but message read
operations fail suggests the issue is server-side in the connector
implementation, not a client-side configuration problem.
## Additional context
No relevant local config files found in ~/Library/Application — the issue is not caused by local configuration.
Support/Claude/claude-code
What Should Happen?
Claude should be able to read mails in Gmail.
Error Messages/Logs
Steps to Reproduce
- Connect Gmail account via Claude.ai integrations (OAuth flow)
- Confirm all requested permissions are granted, including
"View your email messages and settings" in Google Account settings
- Open Claude Code or Claude.ai and attempt to use the Gmail connector
- Try creating a draft or retrieving labels — these succeed
- Try searching threads (e.g. "search my emails for X") — this fails
- Try reading an email thread — this fails
- Note that Claude reports the failure as a scope/permission issue
despite scopes being confirmed as granted
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.107
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗