Ms 365

•
1.2k
•

Enables interaction with Microsoft 365 services through the Graph API using a Model Context Protocol.

The Ms 365 MCP server provides a powerful interface for interacting with Microsoft 365 services. It utilizes the Model Context Protocol (MCP) and Microsoft Graph API to enable a wide range of functionalities, including managing Excel files, calendar events, mail operations, OneDrive files, Teams integrations, OneNote notebooks, To Do tasks, Planner plans, SharePoint sites, Outlook contacts, and user/group management. It supports authentication via the Microsoft Authentication Library (MSAL) and can be integrated with tools like Claude Desktop and Claude Code CLI.

주요 기능

01Excel file operations
02Calendar event management
03Microsoft Teams integration
0420 GitHub stars
05Authentication via Microsoft Authentication Library (MSAL)
06OneDrive file management

사용 사례

01Automating Microsoft 365 tasks within an MCP-compatible environment
02Integrating Microsoft 365 data with other applications and services
03Programmatically managing Microsoft 365 resources via an MCP interface

ms-365-mcp-server

npm version build status license

Microsoft 365 MCP Server

A Model Context Protocol (MCP) server for interacting with Microsoft 365 services through the Graph API.

Prerequisites

  • Node.js >= 14

Features

  • Authentication via Microsoft Authentication Library (MSAL)
  • Excel file operations
  • Calendar event management
  • Mail operations
  • OneDrive file management
  • Microsoft Teams integration
  • OneNote notebooks and pages
  • To Do tasks and task lists
  • Planner plans and tasks
  • SharePoint sites and lists
  • Outlook contacts
  • User and group management
  • Dynamic tools powered by Microsoft Graph OpenAPI spec
  • Built on the Model Context Protocol

Quick Start Example

Test login in Claude Desktop:

![Login example](Image

Examples

Image

Integration

Claude Desktop

To add this MCP server to Claude Desktop:

Edit the config file under Settings > Developer:

{
  "mcpServers": {
    "ms365": {
      "command": "npx",
      "args": [
        "-y",
        "@softeria/ms-365-mcp-server"
      ]
    }
  }
}

Claude Code CLI

claude mcp add ms365 -- npx -y @softeria/ms-365-mcp-server

For other interfaces that support MCPs, please refer to their respective documentation for the correct integration method.

Authentication

⚠️ You must authenticate before using tools.

  1. MCP client login:
    • Call the login tool (auto-checks existing token)
    • If needed, get URL+code, visit in browser
    • Use verify-login tool to confirm
  2. Optional CLI login:
    npx @softeria/ms-365-mcp-server --login
    Follow the URL and code prompt in terminal.

Tokens are cached securely in your OS credential store (fallback to file).

Tools

  • Authentication: login, logout, verify-login
  • Excel: list worksheets, get/set ranges, format, sort, chart
  • Calendar: list/create/update/delete events
  • Mail: send, read, delete messages
  • OneDrive: upload, download, list files

License

MIT © 2025 Softeria