Gmail API
APIRead Gmail inboxes, manage threads and send mail as the authorized user
- Erişim
- OAuth 2.0 with Gmail scopes
Hakkında
Google's API for messages, threads, drafts, labels and mailbox changes. Its remote MCP is a Developer Preview requiring Google Workspace Developer Preview Program membership. Enable APIs and OAuth consent; restricted scopes require verification and may require a security assessment.
Neler yapabilirsin
- Read and search a user's Gmail inbox and email threads
- Send email as the authorized Gmail user and manage drafts
- Sync mailbox changes with watches or connect an agent through Google's MCP
Başlarken
- Enable Gmail API in a Google Cloud project
- Configure OAuth consent, request minimum scopes and obtain an access token
- For MCP, join Google's Workspace Developer Preview and enable Gmail MCP API
Örnek kod
curl "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=10" \
-H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN"Ayrıntılar
- Barındırma
- Hazır hizmet (bulut)
- Kullanılabildiği yerler
- Tüm dünya
- MCP sunucusu
- Uzak sunucu
- Entegrasyonlar
- Gmail