Microsoft 365 MCP server

Provides a bridge between Microsoft 365 services and natural language interfaces, enabling access to email, calendar, OneDrive files, and Excel operations through the Microsoft Graph API with simplified authentication and parameter handling.
Back to servers
Provider
Softeria
Release date
Apr 28, 2025
Language
TypeScript
Package
Stats
3.6K downloads
59 stars

Microsoft 365 MCP Server is a protocol server that enables interaction with Microsoft 365 services (Excel, Calendar, Mail, OneDrive, etc.) through the Graph API. It allows Claude and other AI assistants to access and manipulate your Microsoft 365 data through the Model Context Protocol.

Prerequisites

  • Node.js >= 14

Installation

You can install and run the server using npx without having to install it permanently:

npx -y @softeria/ms-365-mcp-server

Integration with AI Assistants

Claude Desktop

To add this MCP server to Claude Desktop:

  1. Go to Settings > Developer
  2. Edit the config file to include:
{
  "mcpServers": {
    "ms365": {
      "command": "npx",
      "args": [
        "-y",
        "@softeria/ms-365-mcp-server"
      ]
    }
  }
}

Claude Code CLI

To add the MCP server using Claude Code CLI:

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

Authentication

Authentication is required before using any of the tools.

Authenticating via MCP Client

  1. Call the login tool (it automatically checks for existing token)
  2. If needed, you'll receive a URL and code to enter in your browser
  3. Use the verify-login tool to confirm successful authentication

Authenticating via CLI

If you prefer to authenticate directly via the command line:

npx @softeria/ms-365-mcp-server --login

Follow the URL and code prompt that appears in your terminal.

Authentication tokens are securely cached in your operating system's credential store (with fallback to file if needed).

Available Features

The MCP server provides access to various Microsoft 365 services:

  • Excel file operations
  • Calendar event management
  • Mail operations
  • OneDrive file management
  • OneNote notebooks and pages
  • To Do tasks and task lists
  • Planner plans and tasks
  • Outlook contacts

Command Line Options

Basic CLI Options

--login           Login using device code flow
--logout          Log out and clear saved credentials
--verify-login    Verify login without starting the server

Server Options

When running as an MCP server:

-v                Enable verbose logging
--read-only       Start server in read-only mode, disabling write operations

Environment Variables

You can also control behavior via environment variables:

  • READ_ONLY=true|1: Alternative to --read-only flag
  • LOG_LEVEL: Set logging level (default: 'info')
  • SILENT=true: Disable console output

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later