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.
You can install and run the server using npx without having to install it permanently:
npx -y @softeria/ms-365-mcp-server
To add this MCP server to Claude Desktop:
{
"mcpServers": {
"ms365": {
"command": "npx",
"args": [
"-y",
"@softeria/ms-365-mcp-server"
]
}
}
}
To add the MCP server using Claude Code CLI:
claude mcp add ms365 -- npx -y @softeria/ms-365-mcp-server
Authentication is required before using any of the tools.
login
tool (it automatically checks for existing token)verify-login
tool to confirm successful authenticationIf 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).
The MCP server provides access to various Microsoft 365 services:
--login Login using device code flow
--logout Log out and clear saved credentials
--verify-login Verify login without starting the server
When running as an MCP server:
-v Enable verbose logging
--read-only Start server in read-only mode, disabling write operations
You can also control behavior via environment variables:
READ_ONLY=true|1
: Alternative to --read-only flagLOG_LEVEL
: Set logging level (default: 'info')SILENT=true
: Disable console outputThere 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.
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"
]
}
}
}
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.
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.