Read, send, and manage emails via Microsoft Graph API
The Outlook connector provides full access to Microsoft Outlook mailboxes via the Microsoft Graph API, enabling AI agents and automations to read, search, send, and manage emails.
Read Operations
List folders, messages, and attachments with filtering and pagination
Send Operations
Send, reply, reply-all, forward emails with HTML support
Minimal permissions: If you only need read access, Mail.Read and MailboxSettings.Read are sufficient. Add Mail.Send and/or Mail.ReadWrite only if you use write tools.
- Outlook App.sendMail: userId: user@company.com to: recipient@example.com subject: Meeting Follow-up body: "<p>Thank you for the meeting today.</p>" contentType: HTML output: result
Application permissions grant access to all mailboxes in the tenant by default. To restrict this connector to a single mailbox, use an Application Access Policy in Exchange Online:
# 1. Connect to Exchange OnlineConnect-ExchangeOnline# 2. Create a mail-enabled security group with only the target mailboxNew-DistributionGroup -Name "OutlookMCP-Allowed" -Type Security -Members user@yourdomain.com# 3. Restrict the Azure AD app to only access that group's mailboxesNew-ApplicationAccessPolicy -AppId "<your-azure-client-id>" ` -PolicyScopeGroupId "OutlookMCP-Allowed" ` -AccessRight RestrictAccess ` -Description "Restrict Outlook connector to single mailbox"# 4. Verify (may take up to 30 minutes to propagate)Test-ApplicationAccessPolicy -AppId "<your-azure-client-id>" -Identity user@yourdomain.com# Expected: Granted
The PowerShell commands above are provided as general guidance. Always refer to the official Microsoft documentation for the most up-to-date syntax.
AADSTS700016 - App not found in the directory. Check tenant ID matches the app registration.MailboxNotEnabledForRESTAPI - The user needs an Exchange Online license assigned.ErrorAccessDenied with Application Access Policy - The target mailbox is not in the allowed security group. Takes up to 30 minutes to propagate after policy changes.