M365 Copilot
M365 Copilot MCP Server - Model Context Protocol server for Microsoft 365 Copilot integration
What is M365 Copilot?
M365 Copilot is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to m365 copilot mcp server - model context protocol server for microsoft 365 copilot integration
M365 Copilot MCP Server - Model Context Protocol server for Microsoft 365 Copilot integration
This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- M365 Copilot MCP Server - Model Context Protocol server for
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx m365copilotConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use M365 Copilot
The M365 Copilot MCP Server exposes Microsoft 365 Copilot's indexed organizational data — emails, Teams chats, meeting transcripts, SharePoint documents, and people records — to any MCP-compatible AI client via three focused tools: retrieval, search, and conversational chat. It uses OAuth 2.0 browser authentication on first run, falling back to Device Code Flow on headless systems, so setup requires no manual token management. Developers and knowledge workers who want to query their M365 corpus through Claude Desktop, GitHub Copilot, or other MCP clients will benefit from this server.
Prerequisites
- Node.js 20 or higher installed
- A Microsoft 365 account with an active Microsoft 365 Copilot license
- Microsoft Graph delegated permissions: Sites.Read.All, Files.Read.All, Mail.Read, Chat.Read, ChannelMessage.Read.All, OnlineMeetingTranscript.Read.All, People.Read.All, ExternalItem.Read.All
- An MCP-compatible client: Claude Desktop, Claude Code, or GitHub Copilot (VS Code)
Add the server to Claude Code via CLI
The easiest setup uses the Claude Code CLI to register the npx-based server directly. On Windows, use the cmd wrapper instead.
# macOS / Linux:
claude mcp add --scope user --transport stdio m365-copilot -- npx -y m365-copilot-mcp
# Windows:
claude mcp add --scope user --transport stdio m365-copilot -- cmd /c "npx -y m365-copilot-mcp"Or configure Claude Desktop manually
If you prefer Claude Desktop, add the server entry directly to the configuration file.
{
"mcpServers": {
"m365-copilot": {
"command": "npx",
"args": ["-y", "m365-copilot-mcp"]
}
}
}Authenticate with Microsoft 365 on first run
The server automatically opens a browser window for Microsoft 365 OAuth login the first time it runs. On headless systems it prints a Device Code Flow URL and code — open that URL in any browser and enter the code.
Optionally configure a custom Azure AD app
If your organization requires a custom app registration instead of the built-in credentials, set these optional environment variables.
{
"mcpServers": {
"m365-copilot": {
"command": "npx",
"args": ["-y", "m365-copilot-mcp"],
"env": {
"AZURE_CLIENT_ID": "your-custom-app-client-id",
"AZURE_TENANT_ID": "your-tenant-id",
"REDIRECT_URI": "http://localhost"
}
}
}
}M365 Copilot Examples
Client configuration
Claude Desktop configuration for the M365 Copilot MCP server using npx.
{
"mcpServers": {
"m365-copilot": {
"command": "npx",
"args": ["-y", "m365-copilot-mcp"]
}
}
}Prompts to try
Example prompts using the three M365 Copilot tools: retrieval, search, and chat.
- "Search my Microsoft 365 for documents about the 2025 budget proposal."
- "Retrieve the transcript from my last Teams meeting with the engineering team."
- "Find emails from last week about the product launch."
- "What did my colleague mention about project timelines in our recent chat?" (uses m365copilotchat with timezone "America/New_York")Troubleshooting M365 Copilot
Browser does not open for authentication on macOS
Ensure your terminal has permission to open URLs. Try running 'npx -y m365-copilot-mcp' directly in your terminal first — it will print the auth URL you can open manually. On headless systems it automatically falls back to Device Code Flow.
Permission errors or empty search results
The signed-in Microsoft 365 account must have an active Copilot license and the required Graph API permissions. Confirm with your IT admin that the account has access to Chat.Read, ChannelMessage.Read.All, and Files.Read.All.
m365copilotchat tool fails with timezone errors
The m365copilotchat tool requires an IANA timezone string (e.g., 'America/New_York', 'Europe/London'). Make sure your prompt or the tool call includes a valid IANA timezone identifier, not an abbreviation like 'EST'.
Frequently Asked Questions about M365 Copilot
What is M365 Copilot?
M365 Copilot is a Model Context Protocol (MCP) server that m365 copilot mcp server - model context protocol server for microsoft 365 copilot integration It connects AI assistants to external tools and data sources through a standardized interface.
How do I install M365 Copilot?
Follow the installation instructions on the M365 Copilot GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with M365 Copilot?
M365 Copilot works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is M365 Copilot free to use?
Yes, M365 Copilot is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
M365 Copilot Alternatives — Similar Cloud Services Servers
Looking for alternatives to M365 Copilot? 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 M365 Copilot 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 M365 Copilot?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.