Office 365

v1.0.0Cloud Servicesstable

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.

office-365mcpai-integration
Share:
14
Stars
0
Downloads
0
Weekly
0/5

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

Access email, calendar, Teams, and planner through Microsoft Graph API.
Manage 24 consolidated tools for Microsoft 365 services.
Control notifications and collaborate through integrated MCP.
hvkshetry

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx office-365

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 install
2

Register 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.

3

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/callback
4

Run 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-server
5

Configure 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.

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.

Quick Config Preview

{ "mcpServers": { "office-365": { "command": "npx", "args": ["-y", "office-365"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides