Outlook MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Outlook MCP Server send an email to Mike about the budget and CC my manager"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Outlook MCP Server
A Model Context Protocol (MCP) server for Microsoft Outlook integration that provides comprehensive email, contact, calendar, and folder management capabilities through the Microsoft Graph API.
๐ Quick Start
Prerequisites
Python 3.8 or higher
uv package manager
Microsoft Graph API access via Nango
Valid Outlook/Microsoft 365 account
Installation
Clone and setup:
git clone <repository-url> cd outlook-mcp uv install -e .Configure environment variables: Create a
.envfile or set these environment variables:NANGO_CONNECTION_ID=your_connection_id NANGO_INTEGRATION_ID=your_integration_id NANGO_BASE_URL=your_nango_base_url NANGO_SECRET_KEY=your_secret_keyTest the server:
uv run python outlook_mcp_server.py --help
Related MCP server: Outlook Universal MCP Server
๐ง MCP Client Configuration
Claude Desktop Configuration
Add this to your Claude Desktop MCP configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows):
{
"mcpServers": {
"outlook": {
"command": "uvx",
"args": [
"git+https://github.com/ampcome-mcps/outlook-mcp.git",
],
"env": {
"NANGO_CONNECTION_ID": "your_connection_id",
"NANGO_INTEGRATION_ID": "your_integration_id",
"NANGO_BASE_URL": "your_nango_base_url",
"NANGO_SECRET_KEY": "your_secret_key"
}
}
}
}Other MCP Clients
For other MCP clients, use:
Command:
uvArgs:
["run", "python", "outlook_mcp_server.py"]Working Directory: Path to the outlook-mcp directory
Transport: stdio
Environment: Set the required Nango variables
๐ง Available Tools (26 Total)
Email Management (6 tools)
send_email- Send emails with TO/CC/BCC, HTML/text content, attachmentscreate_draft_email- Create draft emails for later editingsend_draft_email- Send existing draft emailsget_draft_emails- Retrieve all draft emailsupdate_draft_email- Modify existing draft emailsdelete_draft_email- Remove draft emails
Contact Management (5 tools)
create_contact- Add new contacts with full detailsget_all_contacts- Retrieve all contactsget_contact_details- Get specific contact informationupdate_contact- Modify existing contact detailsdelete_contact- Remove contacts
Calendar Management (9 tools)
get_all_calendars- List all calendarsget_calendar_details- Get specific calendar informationcreate_calendar- Create new calendars with custom colorsupdate_calendar- Modify calendar propertiesdelete_calendar- Remove calendarsget_all_events- Retrieve events from calendarsget_event_details- Get specific event informationcreate_event- Schedule new events with attendeesdelete_event- Remove calendar events
Folder Management (6 tools)
get_all_folders- List all mail foldersget_folder_details- Get specific folder informationcreate_folder- Create new mail folders (with nesting)update_folder- Rename foldersdelete_folder- Remove foldersget_many_folders- Batch retrieve multiple folders
๐ก Usage Examples
Send an Email
{
"tool": "send_email",
"arguments": {
"subject": "Project Update",
"content": "<h1>Hello!</h1><p>Here's the latest update...</p>",
"to_recipients": ["colleague@company.com"],
"cc_recipients": ["manager@company.com"],
"importance": "high"
}
}Create a Contact
{
"tool": "create_contact",
"arguments": {
"given_name": "John",
"surname": "Doe",
"email_addresses": "john.doe@company.com,john@personal.com",
"company_name": "Acme Corp",
"job_title": "Software Engineer"
}
}Schedule a Meeting
{
"tool": "create_event",
"arguments": {
"subject": "Weekly Team Meeting",
"start_datetime": "2024-01-15T10:00:00",
"end_datetime": "2024-01-15T11:00:00",
"attendees": ["team@company.com"],
"location": "Conference Room A",
"body_content": "Discussing project milestones"
}
}๐๏ธ Project Structure
outlook-mcp/
โโโ src/outlook_mcp/
โ โโโ __init__.py
โ โโโ server.py # Main MCP server implementation
โ โโโ connection.py # Nango API connection handling
โ โโโ tools/
โ โโโ __init__.py
โ โโโ email.py # Email management tools
โ โโโ contacts.py # Contact management tools
โ โโโ calendar.py # Calendar and event tools
โ โโโ folders.py # Folder management tools
โโโ outlook_mcp_server.py # Standalone server entry point
โโโ main.py # Alternative entry point
โโโ pyproject.toml # Package configuration with uv
โโโ uv.lock # uv lockfile for reproducible builds
โโโ README.md # This documentation
โโโ .env # Environment variables (create this)๐ Security & Authentication
This server uses Nango for secure Microsoft Graph API authentication:
No direct credential storage - All auth handled by Nango
Token management - Automatic token refresh and management
Secure communication - HTTPS-only API communication
Environment-based config - Sensitive data in environment variables
๐ Troubleshooting
Common Issues
"Missing environment variables"
Ensure all 4 Nango variables are set in your Claude configuration
Check
.envfile exists and is properly formatted for local development
"Connection failed"
Verify Nango integration is active
Check internet connectivity
Validate Nango credentials
"Tool execution failed"
Check Microsoft Graph API permissions
Verify Outlook account has necessary access
Review error messages in Claude Desktop logs
"uv command not found"
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | shOr via pip:
pip install uv
Debug Mode
For local development, run with verbose output:
uv run python outlook_mcp_server.py 2>debug.logTesting Connection
uv run python -c "from outlook_mcp.connection import get_access_token; print('โ
Connection successful!' if get_access_token() else 'โ Connection failed')"๐งช Development & Testing
Local Development
Install in development mode:
uv install -e .Run tests:
uv run pytest tests/Check tool functionality:
uv run python -c "from outlook_mcp.tools.email import get_draft_emails; print(get_draft_emails())"
Creating Custom Tools
Add your tool function to the appropriate module in
tools/Update the server's tool list in
server.pyAdd proper input schema validation
Test with MCP client
๐ Requirements
Python 3.8+
uv >= 0.1.0 - Fast Python package installer and resolver
mcp >= 1.0.0 - Model Context Protocol library
requests >= 2.32.4 - HTTP client
python-dotenv >= 1.1.1 - Environment variable management
๐ค Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/new-toolMake your changes with tests
Submit a pull request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Related Links
๐ Support
For issues and questions:
Check the troubleshooting section above
Review the GitHub issues
Create a new issue with detailed information
Built with โค๏ธ for seamless Outlook integration via MCP
Available Tools
26 toolscreate_calendarC
Create a new calendar with specified name and color
Inputs: name (required), color.
create_contactC
Create a new contact in Outlook with personal and business information
Inputs: given_name (required), surname, email_addresses, business_phones, +5 more.
create_draft_emailC
Create a draft email that can be edited and sent later
Inputs: subject (required), content (required), to_recipients (required), cc_recipients, +3 more.
create_eventC
Create a new calendar event with attendees and location
Inputs: subject (required), start_datetime (required), end_datetime (required), start_timezone, +6 more.
create_folderC
Create a new mail folder, optionally nested under a parent folder
Inputs: display_name (required), parent_folder_id.
delete_calendarC
Delete a calendar from Outlook
Inputs: calendar_id (required).
delete_contactC
Delete a contact from Outlook
Inputs: contact_id (required).
delete_draft_emailC
Delete a draft email
Inputs: draft_id (required).
delete_eventC
Delete an event from the calendar
Inputs: event_id (required).
delete_folderC
Delete a mail folder from Outlook
Inputs: folder_id (required).
get_all_calendarsB
Retrieve all calendars from Outlook
Inputs: no named parameters.
get_all_contactsB
Retrieve all contacts from Outlook
Inputs: no named parameters.
get_all_eventsC
Retrieve all events from a calendar or the default calendar
Inputs: calendar_id.
get_all_foldersB
Retrieve all mail folders from Outlook
Inputs: no named parameters.
get_calendar_detailsC
Get detailed information about a specific calendar
Inputs: calendar_id (required).
get_contact_detailsB
Get detailed information about a specific contact
Inputs: contact_id (required).
get_draft_emailsB
Retrieve all draft emails from the drafts folder
Inputs: no named parameters.
get_event_detailsB
Get detailed information about a specific event
Inputs: event_id (required).
get_folder_detailsC
Get detailed information about a specific mail folder
Inputs: folder_id (required).
get_many_foldersC
Get detailed information for multiple folders in a single request
Inputs: folder_ids (required).
send_draft_emailC
Send an existing draft email
Inputs: draft_id (required).
send_emailB
Send an email via Outlook with support for TO/CC/BCC recipients, HTML/text content, attachments, and importance levels
Inputs: subject (required), content (required), to_recipients (required), cc_recipients, +4 more.
update_calendarC
Update an existing calendar's properties
Inputs: calendar_id (required), name, color.
update_contactC
Update an existing contact's information
Inputs: contact_id (required), given_name, surname, email_addresses, +6 more.
update_draft_emailC
Update an existing draft email
Inputs: draft_id (required), subject, content, to_recipients, +4 more.
update_folderC
Update a folder's display name
Inputs: folder_id (required), display_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 26 tools
Each tool has a clearly distinct purpose, with no ambiguity between them. Tools are organized by resource type (calendar, contact, email, folder, event) and action (create, delete, get, update), making it easy for an agent to select the correct one.
Tool names follow a consistent verb_noun pattern throughout, such as create_calendar, delete_contact, get_all_events, and update_folder. There are no deviations in naming conventions, ensuring predictability and readability.
With 26 tools, the count is on the higher side, bordering on heavy for the Outlook domain. While it covers multiple resources comprehensively, it might be slightly overwhelming compared to more streamlined servers, but it's still within a reasonable scope.
The tool set provides complete CRUD/lifecycle coverage for all major Outlook resources (calendars, contacts, emails, folders, events). There are no obvious gaps, and operations like sending emails and managing drafts are well-integrated, ensuring agents can handle full workflows without dead ends.
Related MCP Connectors
Manage Microsoft 365 email, calendar, contacts and inbox rules via the Graph API with OAuth 2.0.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Gmail, Outlook, Drive, OneDrive and calendars for AI agents. Many accounts, one endpoint, audit log.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Microsoft Outlook via the Microsoft Graph API for managing emails and calendar events. It allows users to read and send emails, list messages, and create calendar appointments with automatic Teams links.1ISC
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Microsoft Outlook through a unified API, supporting tools for email, calendar, and contacts management via natural language.MIT
- AlicenseBqualityFmaintenanceEnables interaction with Microsoft Outlook services (Tasks, Calendar, Email, Contacts, and Teams) via the Microsoft Graph API, providing 39 tools for Claude Desktop with natural language and JSON output.39MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Microsoft Outlook email and calendar through the Microsoft Graph API, including reading, sending, searching emails, and handling calendar events.4333MIT