Ms Graph MCP
MCP server by devyhan Verified · npm:@devyhan
Ms Graph MCP gives AI assistants access to a user's own Microsoft 365 data, including Outlook, OneDrive, SharePoint, Teams and Intune, through Microsoft Graph. It runs locally and signs in with delegated permissions. It is for Microsoft 365 users who want an assistant to work with their own mail, files and calendar.
Install Ms Graph MCP
Built from the published package, never by AI.
claude mcp add ms-graph-mcp -- npx -y @devyhan/ms-graph-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ms-graph-mcp": {
"args": [
"-y",
"@devyhan/ms-graph-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ms-graph-mcp": {
"args": [
"-y",
"@devyhan/ms-graph-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ms-graph-mcp": {
"args": [
"-y",
"@devyhan/ms-graph-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ms-graph-mcp -- npx -y @devyhan/ms-graph-mcp{
"mcpServers": {
"ms-graph-mcp": {
"args": [
"-y",
"@devyhan/ms-graph-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add ms-graph-mcp npx -y @devyhan/ms-graph-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 ms-graph-mcp block.
About
Ms Graph MCP is a Model Context Protocol server that gives an AI assistant access to a user's own Microsoft 365 data through the Microsoft Graph API. It covers Outlook mail and calendar, OneDrive, SharePoint, Microsoft To Do, Planner, Teams chat, Entra ID and Intune. The server runs locally over stdio and signs in as the user with delegated permissions, and its token cache is stored encrypted on the user's machine.
The source describes 112 tools across 14 groups, and each group can be enabled separately. A read-only mode removes write tools, and a discovery mode reduces the catalogue to a few tools. Responses are projected down to readable fields such as sender, timestamp and plain text. The project suits Microsoft 365 users who want an AI assistant to work with their own data. It is an independent community project and is not affiliated with Microsoft.
Written from the project's README and checked against it.
Tools it gives your assistant
mail_get_messageReads a single Outlook mail message, as named in the source's mail examples.graph_requestSends a request to a Graph path, host-pinned and opt-in for writes, for everything else.session_statusChecks the session once at the start, as the agent instructions advise.auth_begin_loginStarts a sign-in flow for the user when login is needed.auth_login_statusChecks the progress of a sign-in started with auth_begin_login.discover_toolsLists available tools in discovery mode so the client loads schemas only when used.call_toolRuns a tool found through discover_tools when discovery mode is on.
What you need
- Node.js 22.23.4+, 24.22.1+, or 26.12.1+
- A Microsoft 365 account
- An Entra app registration with its Application (client) ID and Directory (tenant) ID
- Admin consent for the teams, directory and intune groups
Try asking
- Summarize the reply chain about the Q3 invoice.
- Find a 30-minute slot with Ana and Ben next week.
- Show my open Microsoft To Do tasks.
Good to know
- The shared Entra application is not published yet, so users must register their own.
- --read-only removes every write tool, leaving 81 of 112.
- The teams, directory and intune groups need --org-mode and tenant admin consent.
- Generic writes need --allow-generic-write on top of normal settings.
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 Ms Graph 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
Ms Graph MCP: common questions
Is this the same as Microsoft Agent 365?
No. The source says Agent 365 is a remote Microsoft product that uses application permissions and needs a Microsoft 365 Copilot licence. This project is a local server that acts as the signed-in user.
Where is the sign-in token stored?
The refresh token is stored AES-256-GCM encrypted in the user's config directory. The --cache-dir flag overrides that location.
Is this project made by Microsoft?
No. The source states it is an independent community project and not affiliated with Microsoft.
How do I install Ms Graph MCP?
In Claude Code run claude mcp add ms-graph-mcp -- npx -y @devyhan/ms-graph-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Ms Graph MCP the official server?
Ms Graph MCP is published by npm:@devyhan from its verified domain in the official MCP Registry.
Is Ms Graph MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Ms Graph MCP safe to use?
It scores 65 of 100. Grades: maintenance B, 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 Ms Graph MCP?
Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.
Does Ms Graph 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.
