Office 365
A Model Context Protocol (MCP) server for Microsoft 365 integration. Provides 24 consolidated tools for email, calendar, Teams, planner, and notifications through the Microsoft Graph API.
What is Office 365?
Office 365 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol (mcp) server for microsoft 365 integration. provides 24 consolidated tools for email, calendar, teams, planner, and notifications through the microsoft graph api.
A Model Context Protocol (MCP) server for Microsoft 365 integration. Provides 24 consolidated tools for email, calendar, Teams, planner, and notifications through the Microsoft Graph API.
This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A Model Context Protocol (MCP) server for Microsoft 365 inte
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx office-365Configuration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Office 365
The Office 365 MCP Server connects AI agents to Microsoft 365 services through the Microsoft Graph API, providing 24 consolidated tools that cover email, calendar, Teams meetings and channels, OneDrive/SharePoint files, contacts, Planner, To Do, directory lookups, and webhook notifications. It uses OAuth 2.0 delegated authentication with an Azure app registration, storing refreshed tokens locally so users only need to authenticate once. Organizations that want Claude or other AI clients to draft and send emails, schedule meetings, search files, or manage tasks across Microsoft 365 will find this server comprehensive and production-ready.
Prerequisites
- Node.js 18 or higher installed
- A Microsoft 365 account with appropriate licenses (Exchange, Teams, SharePoint, etc.)
- An Azure Active Directory app registration with a client secret and the required delegated Graph API permissions
- The following Graph API permissions granted: Mail.ReadWrite, Calendars.ReadWrite, Files.ReadWrite.All, Teams.ReadWrite.All, Contacts.ReadWrite, Tasks.ReadWrite
- An MCP-compatible client such as Claude Desktop
Clone the repository and install packages
Download the server source code and install the Node.js dependencies.
git clone https://github.com/hvkshetry/office-365-mcp-server.git
cd office-365-mcp-server
npm installRegister an Azure AD application
In the Azure Portal, go to Azure Active Directory → App registrations → New registration. Set the redirect URI to http://localhost:3000/auth/callback. Under API permissions, add delegated Microsoft Graph permissions for Mail, Calendar, Files, Teams, Contacts, and Tasks. Create a client secret under Certificates & secrets.
Create the .env configuration file
Copy the example environment file and fill in your Azure app credentials.
cp .env.example .env
# Edit .env with these values:
OFFICE_CLIENT_ID=your-azure-app-client-id
OFFICE_CLIENT_SECRET=your-azure-app-secret
OFFICE_TENANT_ID=common
OFFICE_REDIRECT_URI=http://localhost:3000/auth/callbackRun the authentication server
Start the local OAuth callback server, then open the printed URL in your browser to authorize the app. Tokens are saved to ~/.office-mcp-tokens.json and auto-refresh thereafter.
npm run auth-serverConfigure your MCP client
Add the server to your Claude Desktop configuration pointing to the index.js entry point.
{
"mcpServers": {
"office-365": {
"command": "node",
"args": ["/path/to/office-365-mcp-server/index.js"]
}
}
}Office 365 Examples
Client configuration
Claude Desktop configuration for the Office 365 MCP server.
{
"mcpServers": {
"office-365": {
"command": "node",
"args": ["/Users/yourname/office-365-mcp-server/index.js"]
}
}
}Prompts to try
Example prompts covering the major Microsoft 365 tool categories.
- "Search my email for messages from [email protected] in the last 7 days."
- "Create a Teams meeting titled 'Q3 Planning' for tomorrow at 2pm for 1 hour and invite [email protected]."
- "List my calendar events for next week."
- "Upload the file /tmp/report.pdf to my OneDrive root folder."
- "Find free time slots for a 30-minute meeting between me and [email protected] this Thursday."
- "Create a task 'Review budget proposal' in my Planner with due date Friday."Troubleshooting Office 365
Authentication fails or browser does not open during 'npm run auth-server'
Ensure the redirect URI in your Azure app registration exactly matches OFFICE_REDIRECT_URI in your .env (including http:// and port 3000). Make sure port 3000 is not in use. If running headlessly, open the printed auth URL manually in a browser on the same machine.
Tool calls fail with '403 Forbidden' from the Graph API
The Azure app is missing the required delegated permissions. In the Azure Portal, go to your app registration → API permissions and verify all needed permissions are added and granted admin consent if required by your tenant.
Tokens expire and the server stops working after a day
The server auto-refreshes tokens from ~/.office-mcp-tokens.json. If refresh fails, re-run 'npm run auth-server' to perform a fresh login. Ensure your Azure app's client secret has not expired.
Frequently Asked Questions about Office 365
What is Office 365?
Office 365 is a Model Context Protocol (MCP) server that model context protocol (mcp) server for microsoft 365 integration. provides 24 consolidated tools for email, calendar, teams, planner, and notifications through the microsoft graph api. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Office 365?
Follow the installation instructions on the Office 365 GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Office 365?
Office 365 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Office 365 free to use?
Yes, Office 365 is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Office 365 Alternatives — Similar Cloud Services Servers
Looking for alternatives to Office 365? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Open WebUI
★ 138.2kUser-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Anything LLM
★ 60.4kThe all-in-one AI productivity accelerator. On device and privacy first with no annoying setup or configuration.
LocalAI
★ 46.4kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Nacos
★ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Xiaozhi ESP32
★ 26.7k本项目为xiaozhi-esp32提供后端服务,帮助您快速搭建ESP32设备控制服务器。Backend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Gateway
★ 11.8kA blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
Browse More Cloud Services MCP Servers
Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Office 365 in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Office 365?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.