Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dvlpjrs/guMCP/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Outlook server enables AI agents to read and send emails through Microsoft Outlook using the Microsoft Graph API.Prerequisites
- Python 3.11+
- A Microsoft Entra ID (formerly Azure AD) application registration
- OAuth 2.0 credentials with the following Microsoft Graph API scopes:
https://graph.microsoft.com/Mail.ReadWritehttps://graph.microsoft.com/Mail.Sendoffline_access
Authentication
Register Microsoft App
- Register a new application in Microsoft Entra ID
- Add required Microsoft Graph API permissions:
Mail.ReadWriteMail.Send
- Configure a redirect URI (e.g.,
http://localhost:8080) - Create a client secret
Setup OAuth Configuration
Createlocal_auth/oauth_configs/outlook/oauth.json:
Authenticate
Available Tools
read_emails
read_emails
Description: Read emails from Outlook with optional filteringParameters:Returns: List of emails with subject, sender, date, and preview
folder(string, optional): Folder to search in (default: “inbox”)count(integer, optional): Number of emails to retrieve (default: 10)filter(string, optional): OData filter query (e.g., “isRead eq false”)search(string, optional): Search query for email content
send_email
send_email
Description: Send an email using OutlookParameters:Returns: Confirmation of successful send
to(string, required): Recipient email addresses (comma-separated)subject(string, required): Email subjectbody(string, required): Email body contentcc(string, optional): CC email addresses (comma-separated)bcc(string, optional): BCC email addresses (comma-separated)
Resources
The Outlook server provides email resources:List Resources
Lists recent emails from your mailbox (10 at a time, ordered by received date). URI Format:outlook:///{email_id}
Read Resource
Reads full email content including:- Subject
- From/To recipients
- Received date
- Email body (HTML converted to plain text)
Usage Examples
Reading Emails
Sending Emails
OData Filters
Thefilter parameter supports OData query syntax:
Common Filters
| Filter | Description | Example |
|---|---|---|
isRead eq false | Unread emails | Inbox monitoring |
isRead eq true | Read emails | Processed emails |
hasAttachments eq true | Has attachments | Find attachments |
importance eq 'high' | High importance | Priority emails |
receivedDateTime ge {date} | Received after date | Date range |
Example Filters
Mail Folders
Common folder names:inbox- Inboxsentitems- Sent Itemsdrafts- Draftsdeleteditems- Deleted Items
Search Syntax
Thesearch parameter searches email content:
Running the Server
Local Development
Best Practices
- Use filters: Narrow down results with OData filters
- Pagination: Retrieve emails in batches with
countparameter - Search wisely: Combine
filterandsearchfor precise results - Plain text: Email bodies are converted from HTML to plain text
API Reference
| Tool | Purpose | Common Use Cases |
|---|---|---|
read_emails | Read emails | Monitor inbox, search emails |
send_email | Send emails | Automated responses, notifications |
Email IDs
Email IDs are returned in the response fromread_emails:
Limitations
- Plain text emails only (HTML is converted)
- No attachment support in current version
- Search may have slight delays due to indexing