Microsoft Graph MCP server for AI agents — 85 tools across Outlook mail & calendar, Teams, OneDrive, SharePoint, OneNote, Planner and Entra ID. Delegated OAuth, stdio or Streamable HTTP.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add ms-graph -- uvx ms-graph-mcp~/.codex/config.toml
[mcp_servers.ms-graph]
command = "uvx"
args = ["ms-graph-mcp"]
# codex mcp add ms-graph -- uvx ms-graph-mcp~/.cursor/mcp.json
{
"mcpServers": {
"ms-graph": {
"command": "uvx",
"args": [
"ms-graph-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"ms-graph": {
"type": "stdio",
"command": "uvx",
"args": [
"ms-graph-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ms-graph": {
"command": "uvx",
"args": [
"ms-graph-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ms-graph": {
"command": "uvx",
"args": [
"ms-graph-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ms-graph": {
"command": "uvx",
"args": [
"ms-graph-mcp"
]
}
}
}