Microsoft 365 MCP Server

Microsoft 365 MCP server provides unified access to Outlook mail, calendar, Teams, and files through the Microsoft Graph API for AI-powered productivity.

May 4, 2025
MCP ServerCommunication & EmailMicrosoft 365 MCP Server
GitHub starsnpm version

Overview

The Microsoft 365 MCP Server provides AI assistants with unified access to the entire Microsoft 365 ecosystem through the Microsoft Graph API. This single server covers Outlook mail, calendar events, Teams messages and channels, and OneDrive/SharePoint files — making it the most comprehensive integration for Microsoft-centric organizations.

Community MCP Server:

Powered by the Microsoft Graph API with delegated or application permissions

Key Features

📧

Outlook Mail

Read, send, reply, and manage emails with full folder and category support

📅

Calendar

View events, check availability, schedule meetings, and manage your calendar

💬

Teams Integration

Access Teams channels, send messages, and collaborate within Microsoft Teams

📁

Files & Documents

Access OneDrive and SharePoint files, read document content, and manage storage

👥

Contacts & Directory

Search your organization's directory, find contacts, and look up user profiles

🔐

Enterprise Security

Enterprise-grade authentication via Microsoft Entra ID with admin-governed permissions

Available Tools

Quick Reference

ToolPurpose
get_emailsRead emails from your Outlook inbox
send_emailCompose and send an email via Outlook
get_calendar_eventsView upcoming calendar events
schedule_meetingCreate a calendar event and send invites
get_teams_messagesRead messages from a Teams channel
send_teams_messageSend a message to a Teams channel
search_filesSearch OneDrive and SharePoint files

Detailed Usage

get_emails

Retrieve emails from your Outlook inbox with optional filtering and search.

{
  "folder": "inbox",
  "limit": 20,
  "unread_only": true
}
schedule_meeting

Create a new calendar event with attendees, location, and details.

{
  "subject": "Q2 Review",
  "start": "2025-05-10T14:00:00",
  "end": "2025-05-10T15:00:00",
  "attendees": ["[email protected]"],
  "body": "Quarterly review meeting"
}
get_teams_messages

Read recent messages from a Microsoft Teams channel.

{
  "team_id": "123456",
  "channel_id": "789012",
  "limit": 30
}
search_files

Search for files across OneDrive and SharePoint by name or content.

{
  "query": "quarterly report",
  "source": "onedrive"
}

Installation

{
  "mcpServers": {
    "microsoft-365": {
      "command": "npx",
      "args": ["-y", "@softeria/mcp-server-ms365"],
      "env": {
        "MS365_CLIENT_ID": "your_client_id",
        "MS365_TENANT_ID": "your_tenant_id",
        "MS365_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}

Azure AD App Required:

Register an application in Microsoft Entra ID with the required Graph API permissions.

Use Cases

Meeting Coordination

Have AI check your calendar, find available slots, and schedule meetings with attendees automatically.

Email Triage

Ask AI to summarize your inbox, draft replies, and organize emails into folders.

Teams Automation

Post updates to Teams channels, monitor conversations, and automate routine team communications.

Document Research

Search across OneDrive and SharePoint to find documents, extract information, and summarize content.

Sources