M365 Copilot MCP
MCP server by chenxizhang Verified · npm:m365-copilot-mcp
Connects AI assistants such as Claude Code and GitHub Copilot to Microsoft 365 content, including SharePoint, OneDrive, email and Teams. It is aimed at users with a Microsoft 365 Copilot license who want search, retrieval and chat over their work data.
Install M365 Copilot MCP
Built from the published package, never by AI.
claude mcp add m365-copilot-mcp -- npx -y m365-copilot-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"m365-copilot-mcp": {
"args": [
"-y",
"m365-copilot-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"m365-copilot-mcp": {
"args": [
"-y",
"m365-copilot-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"m365-copilot-mcp": {
"args": [
"-y",
"m365-copilot-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add m365-copilot-mcp -- npx -y m365-copilot-mcp{
"mcpServers": {
"m365-copilot-mcp": {
"args": [
"-y",
"m365-copilot-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add m365-copilot-mcp npx -y m365-copilot-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the m365-copilot-mcp block.
About
The M365 Copilot MCP server connects an AI assistant to Microsoft 365 through the Model Context Protocol. It gives AI tools access to SharePoint documents, OneDrive files, emails and Teams conversations while respecting the access controls of the user's organization. The source describes it as an unofficial server developed by Microsoft engineers, built on the Microsoft 365 Copilot APIs.
The server provides three tools: m365copilotretrieval for pulling relevant text, m365copilotsearch for finding documents and files, and m365copilotchat for conversational queries about schedule and content. Users sign in once through a browser, and headless Linux servers use device code flow. It runs through npx and is aimed at people who use Claude Code, GitHub Copilot in VS Code, or other MCP clients with a Microsoft 365 Copilot license.
Written from the project's README and checked against it.
Tools it gives your assistant
m365copilotretrievalExtracts relevant text content from SharePoint and OneDrive to answer questions.m365copilotsearchSearches across Microsoft 365 to find specific documents and files and get their links.m365copilotchatEnables conversational interactions with Microsoft 365 Copilot, aware of calendar and tasks.m365copilotlogoutClears cached credentials so the user can switch to a different Microsoft 365 account.
What you need
- Node.js 20+
- Microsoft 365 account with a Microsoft 365 Copilot license
- MCP-compatible AI tool such as Claude Code or GitHub Copilot
- VS Code 1.99+ with GitHub Copilot extension for VS Code setup
- Windows 10/11, macOS 10.15+ or Linux (Ubuntu 20.04+)
Try asking
- What meetings do I have tomorrow?
- Find the VPN setup guide
- What does our company policy say about remote work?
Good to know
- The source describes this as an unofficial MCP server.
- The chat tool requires timezone in IANA format, such as America/New_York.
- Logging out requires restarting the MCP server to take full effect.
- A custom Azure AD app is optional and needs the redirect URI http://localhost registered.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to M365 Copilot MCP
All alternatives →LearnHouse is an open source learning platform for building courses, learning paths and communities in your own academy. Its MCP server lets AI assistants read and build courses in your organization.
Agent-Native Calendar is the Calendar agent in Agent-Native, an open-source TypeScript framework for building agents with UIs. The README describes it as a way to find time, schedule events, and manage bookings. It is aimed at developers building agent apps.
Agent-Native Clips is the Clips agent from the Agent-Native framework, an open-source TypeScript project. It records and helps people understand meetings, screens, and voice notes.
Agent-Native Slides is the Slides agent in the Agent-Native open-source framework, described as a way to create and edit on-brand presentations. It is aimed at developers who build agents with a purpose-built UI.
AIHawk is an AI job application bot. It finds recent job postings that match your resume, then fills in and sends applications on the company's own forms after you pick the jobs.
Connects AI assistants to Microsoft 365 and Office services through the Microsoft Graph API. It suits users and administrators who want an assistant to work with Outlook, calendar, OneDrive, Teams and SharePoint data.
Compare with LearnHouse, Agent-Native Calendar or Agent-Native Clips
M365 Copilot MCP: common questions
Does the M365 Copilot MCP server store my Microsoft 365 content?
The source says the server does not store, collect, or transmit M365 content. Authentication tokens are stored locally on the machine in encrypted form.
How does sign-in work on a headless Linux server?
The server switches to Device Code Flow automatically. It shows a URL and a code, which you enter on another device with a browser to sign in.
How do I switch to a different Microsoft 365 account?
Use the m365copilotlogout tool to clear cached credentials, then restart the MCP server. The next use prompts for a login with the other account.
How do I install M365 Copilot MCP?
In Claude Code run claude mcp add m365-copilot-mcp -- npx -y m365-copilot-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is M365 Copilot MCP the official server?
M365 Copilot MCP is published by npm:m365-copilot-mcp from its verified domain in the official MCP Registry.
Is M365 Copilot MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is M365 Copilot MCP safe to use?
It scores 53 of 100. Grades: maintenance D, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to M365 Copilot MCP?
Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.
Does M365 Copilot MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
