# Gmail MCP setup with Pear

Connect Gmail to Pear with a Google app password. Read, search and send mail from the assistant you use.

[Canonical guide](https://pearmcp.com/email-providers/gmail)

The steps below apply to Pear’s IMAP/SMTP connection. Google’s own pages remain the authority: [adding Gmail to another email client](https://support.google.com/mail/answer/7126229), [app passwords](https://support.google.com/accounts/answer/185833) and [Gmail IMAP/SMTP settings](https://developers.google.com/workspace/gmail/imap/imap-smtp).

## Before you start

- 2-Step Verification turned on for the Google Account. Google only offers app passwords with it.
- A Google app password. Your normal Google password will not work. Google does not offer app passwords with Advanced Protection or when security keys are the only second step, and a work or school organisation can block them.
- A Pear account and an AI client configured with Pear.

## Connect and check

Create an app password at myaccount.google.com/apppasswords and name it Pear. In Pear, choose a mailbox connection and the Gmail preset. Use your full Gmail address as the username and enter the app password Google shows you. Keep the preset SMTP settings if you want to send mail.

Pear’s default is imap.gmail.com on 993 with SSL/TLS. Personal Gmail keeps IMAP turned on, so there is nothing to enable; a Google Workspace administrator can turn it off for an organisation. For optional sending, Pear uses smtp.gmail.com on 587 with STARTTLS.

Enter credentials only in Pear's connection form, never in chat. Keep your app password out of prompts and messages.

Example request:

> Using Pear, list the folders in my Gmail account. Read the subjects and dates of the five newest Inbox messages. Show which account you used. Do not send, move, delete or mark any message.

Compare the account, subjects and dates with webmail. Ask for the selected account's provider status to check available tools, and list its folders if an email is missing.

## Optional sending

Leave the SMTP host blank if you do not need sending. This does not remove IMAP write permissions; your Pear key and approval policy govern mailbox changes. If you enable SMTP, review the sender, recipients and exact content through the applicable approval flow. Provider acceptance does not prove recipient delivery.

Gmail folders correspond to labels. Search all mail to include archived messages. Spam and Bin are excluded from that search. You can move or archive messages, mark them read and delete them to Bin. Read, extract or download attachments, send a new message or reply with attachments, and use your signature. You can also create and edit native Gmail drafts, attach files and send the draft when it is ready. Google sign-in for Calendar, Tasks and Contacts is coming soon.

## Troubleshooting

### Gmail rejects the password

Use an app password, not your Google password, with your full Gmail address as the username. If you changed your Google password, Google revoked the old app password; create a new one and update the connection in Pear.

### There is no app password option

Turn on 2-Step Verification first. Google does not show app passwords for accounts with Advanced Protection, for accounts that use only security keys as the second step, or where a work or school administrator has blocked them. Pear cannot work around those account rules.

### An email appears twice or a folder looks unfamiliar

Gmail shows one message under every label it has and in All Mail. Ask Pear to list the folders for the selected account, then search one named folder, such as INBOX or [Gmail]/Sent Mail, with a narrow date range.

### Gmail reports too many connections

Google limits one account to 15 connected mail clients at a time. Sign out of a mail app or device you no longer use, then try again.

## Limits and next steps

Tools depend on provider, connection, plan, AI client and enabled features. Follow your organisation's policy.

[Official Gmail guidance](https://support.google.com/mail/answer/7126229), checked 28 November 2026. Account-specific provider settings take precedence over presets.

- [Use Gmail with your assistant](https://pearmcp.com/gmail)
- [Compare email providers](https://pearmcp.com/email-providers)
- [AI client setup](https://pearmcp.com/docs)
- [Plans and limits](https://pearmcp.com/pricing)
- [Data handling](https://pearmcp.com/data-handling)
- [Support](https://pearmcp.com/support)
