Allows cloning the Microsoft MCP server repository for installation and setup purposes.
Provides access to the Microsoft MCP repository for installation and configuration of the server.
Provides testing capabilities for the Microsoft MCP server development.
Used for running the Microsoft MCP server implementation and authentication scripts.
Enables code formatting and linting for the Microsoft MCP server codebase.
Microsoft MCP
Powerful MCP server for Microsoft Graph API - a complete AI assistant toolkit for Outlook, Calendar, OneDrive, and Contacts.
Features
- Email Management: Read, send, reply, manage attachments, organize folders
- Calendar Intelligence: Create, update, check availability, respond to invitations
- OneDrive Files: Upload, download, browse with pagination
- Contacts: Search and list contacts from your address book
- Multi-Account: Support for multiple Microsoft accounts (personal, work, school)
- Unified Search: Search across emails, files, events, and people
Quick Start with Claude Desktop
Usage Examples
Available Tools
Email Tools
read_emails
- Read emails with full body contentget_email
- Get specific email with attachmentsreply_to_email
- Reply maintaining thread contextsend_email
- Send with CC/BCC and attachmentsmark_email_read
- Mark emails as read/unreadmove_email
- Move between foldersdownload_attachment
- Download email attachments
Calendar Tools
get_calendar_events
- List events with full detailscheck_availability
- Check free/busy timescreate_event
- Create with location and attendeesupdate_event
- Reschedule or modify eventsdelete_event
- Cancel eventsrespond_to_event
- Accept/decline invitations
Contact & File Tools
get_contacts
- Search or list contactslist_files
- Browse OneDrive with paginationupload_file
- Upload files to OneDrivedownload_file
- Download file contentdelete_file
- Delete files or folders
Utility Tools
search
- Universal search across all serviceslist_accounts
- Show authenticated accounts
Manual Setup
1. Azure App Registration
- Go to Azure Portal → Microsoft Entra ID → App registrations
- New registration → Name:
microsoft-mcp
- Supported account types: Personal + Work/School
- Authentication → Allow public client flows: Yes
- API permissions → Add these delegated permissions:
- Mail.ReadWrite
- Calendars.ReadWrite
- Files.ReadWrite
- Contacts.Read
- People.Read
- User.Read
- Copy Application ID
2. Installation
3. Authentication
4. Claude Desktop Configuration
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Or for local development:
Multi-Account Support
All tools support an optional account_id
parameter:
Development
Example: AI Assistant Scenarios
Smart Email Management
Intelligent Scheduling
Security Notes
- Tokens are cached locally in
~/.microsoft_mcp_token_cache.json
- Use app-specific passwords if you have 2FA enabled
- Only request permissions your app actually needs
- Consider using a dedicated app registration for production
Troubleshooting
- Authentication fails: Check your CLIENT_ID is correct
- "Need admin approval": Use
MICROSOFT_MCP_TENANT_ID=consumers
for personal accounts - Missing permissions: Ensure all required API permissions are granted in Azure
- Token errors: Delete
~/.microsoft_mcp_token_cache.json
and re-authenticate
License
MIT
You must be authenticated.
Tools
A powerful MCP server that enables AI assistants to interact with Microsoft Graph API for managing Outlook emails, Calendar events, OneDrive files, and Contacts through natural language commands.
Related MCP Servers
- AsecurityAlicenseAqualityProvides tools for interacting with Gmail and Calendar APIs. This server enables you to manage your emails and calendar events programmatically through the MCP interface.Last updated -813JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.Last updated -32805TypeScriptMIT License
- -securityFlicense-qualityAn MCP server that enables AI assistants to access and interact with Google Classroom data, allowing users to view courses, course details, and assignments through natural language commands.Last updated -5081JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables interaction with Microsoft 365 services (Excel, Calendar, Mail, OneDrive, Teams, etc.) through the Graph API, allowing AI assistants to manage Microsoft 365 resources via natural language.Last updated -1,04974TypeScriptMIT License