A Model Context Protocol (MCP) server that provides access to Microsoft Outlook email functionality, allowing LLMs and other MCP clients to read, search, and manage emails through a standardized interface.
shell
pip install mcp>=1.2.0 pywin32>=305
Add the following to your MCP_client_config.json
file:
{
"mcpServers": {
"outlook": {
"command": "python",
"args": ["Your path\\outlook_mcp_server.py"],
"env": {}
}
}
}
You can start the server directly:
python outlook_mcp_server.py
Or allow an MCP client like Claude Desktop to start it via the configuration.
The server provides the following tools:
list_folders
: Lists all available mail folders in Outlooklist_recent_emails
: Lists email titles from the specified number of dayssearch_emails
: Searches emails by contact name or keywordget_email_by_number
: Retrieves detailed content of a specific emailreply_to_email_by_number
: Replies to a specific emailcompose_email
: Creates and sends a new emaillist_folders
to see all available mail folderslist_recent_emails
to view recent emails (e.g., from last 7 days)search_emails
to find specific emails by keywordsget_email_by_number
to view a complete emailreply_to_email_by_number
to respond to an emailCould you show me my unread emails from the last 3 days?
Search for emails about "project update OR meeting notes" in the last week
Show me the details of email #2 from the list
Reply to email #3 with: "Thanks for the information. I'll review this and get back to you tomorrow."
Send an email to [email protected] with subject "Meeting Agenda" and body "Here's the agenda for our upcoming meeting..."
This server has access to your Outlook email account and can read, send, and manage emails. Use it only with trusted MCP clients and in secure environments.