Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-nitin27may-ms-graph-mcp": {
"command": "uvx",
"args": [
"ms-graph-mcp"
],
"env": {
"GRAPH_MCP_PORT": "8094",
"AZURE_AD_CLIENT_ID": "",
"AZURE_AD_TENANT_ID": "",
"GRAPH_MCP_AUDIENCE": "",
"GRAPH_MCP_DOES_OBO": "false",
"GRAPH_MCP_CLIENT_ID": "",
"GRAPH_MCP_READ_ONLY": "false",
"GRAPH_MCP_TENANT_ID": "",
"GRAPH_MCP_JWT_VERIFY": "true",
"GRAPH_MCP_OBO_SCOPES": "https://graph.microsoft.com/.default",
"GRAPH_MCP_USER_EMAIL": "<VALUE>",
"GRAPH_MCP_WRITE_SCOPE": "false",
"AZURE_AD_CLIENT_SECRET": "",
"GRAPH_MCP_ACCESS_TOKEN": "<VALUE>",
"GRAPH_MCP_CLIENT_SECRET": "",
"GRAPH_MCP_SHARED_SECRET": "",
"GRAPH_MCP_BROWSE_MAX_FILES": "500",
"GRAPH_MCP_DISABLE_SSL_VERIFY": "false",
"GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS": ""
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-nitin27may-ms-graph-mcp": {
"command": "uvx",
"args": [
"ms-graph-mcp"
],
"env": {
"GRAPH_MCP_PORT": "8094",
"AZURE_AD_CLIENT_ID": "",
"AZURE_AD_TENANT_ID": "",
"GRAPH_MCP_AUDIENCE": "",
"GRAPH_MCP_DOES_OBO": "false",
"GRAPH_MCP_CLIENT_ID": "",
"GRAPH_MCP_READ_ONLY": "false",
"GRAPH_MCP_TENANT_ID": "",
"GRAPH_MCP_JWT_VERIFY": "true",
"GRAPH_MCP_OBO_SCOPES": "https://graph.microsoft.com/.default",
"GRAPH_MCP_USER_EMAIL": "<VALUE>",
"GRAPH_MCP_WRITE_SCOPE": "false",
"AZURE_AD_CLIENT_SECRET": "",
"GRAPH_MCP_ACCESS_TOKEN": "<VALUE>",
"GRAPH_MCP_CLIENT_SECRET": "",
"GRAPH_MCP_SHARED_SECRET": "",
"GRAPH_MCP_BROWSE_MAX_FILES": "500",
"GRAPH_MCP_DISABLE_SSL_VERIFY": "false",
"GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS": ""
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-nitin27may-ms-graph-mcp": {
"command": "uvx",
"args": [
"ms-graph-mcp"
],
"env": {
"GRAPH_MCP_PORT": "8094",
"AZURE_AD_CLIENT_ID": "",
"AZURE_AD_TENANT_ID": "",
"GRAPH_MCP_AUDIENCE": "",
"GRAPH_MCP_DOES_OBO": "false",
"GRAPH_MCP_CLIENT_ID": "",
"GRAPH_MCP_READ_ONLY": "false",
"GRAPH_MCP_TENANT_ID": "",
"GRAPH_MCP_JWT_VERIFY": "true",
"GRAPH_MCP_OBO_SCOPES": "https://graph.microsoft.com/.default",
"GRAPH_MCP_USER_EMAIL": "<VALUE>",
"GRAPH_MCP_WRITE_SCOPE": "false",
"AZURE_AD_CLIENT_SECRET": "",
"GRAPH_MCP_ACCESS_TOKEN": "<VALUE>",
"GRAPH_MCP_CLIENT_SECRET": "",
"GRAPH_MCP_SHARED_SECRET": "",
"GRAPH_MCP_BROWSE_MAX_FILES": "500",
"GRAPH_MCP_DISABLE_SSL_VERIFY": "false",
"GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS": ""
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-nitin27may-ms-graph-mcp": {
"command": "uvx",
"args": [
"ms-graph-mcp"
],
"env": {
"GRAPH_MCP_PORT": "8094",
"AZURE_AD_CLIENT_ID": "",
"AZURE_AD_TENANT_ID": "",
"GRAPH_MCP_AUDIENCE": "",
"GRAPH_MCP_DOES_OBO": "false",
"GRAPH_MCP_CLIENT_ID": "",
"GRAPH_MCP_READ_ONLY": "false",
"GRAPH_MCP_TENANT_ID": "",
"GRAPH_MCP_JWT_VERIFY": "true",
"GRAPH_MCP_OBO_SCOPES": "https://graph.microsoft.com/.default",
"GRAPH_MCP_USER_EMAIL": "<VALUE>",
"GRAPH_MCP_WRITE_SCOPE": "false",
"AZURE_AD_CLIENT_SECRET": "",
"GRAPH_MCP_ACCESS_TOKEN": "<VALUE>",
"GRAPH_MCP_CLIENT_SECRET": "",
"GRAPH_MCP_SHARED_SECRET": "",
"GRAPH_MCP_BROWSE_MAX_FILES": "500",
"GRAPH_MCP_DISABLE_SSL_VERIFY": "false",
"GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS": ""
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-nitin27may-ms-graph-mcp": {
"command": "uvx",
"args": [
"ms-graph-mcp"
],
"env": {
"GRAPH_MCP_PORT": "8094",
"AZURE_AD_CLIENT_ID": "",
"AZURE_AD_TENANT_ID": "",
"GRAPH_MCP_AUDIENCE": "",
"GRAPH_MCP_DOES_OBO": "false",
"GRAPH_MCP_CLIENT_ID": "",
"GRAPH_MCP_READ_ONLY": "false",
"GRAPH_MCP_TENANT_ID": "",
"GRAPH_MCP_JWT_VERIFY": "true",
"GRAPH_MCP_OBO_SCOPES": "https://graph.microsoft.com/.default",
"GRAPH_MCP_USER_EMAIL": "<VALUE>",
"GRAPH_MCP_WRITE_SCOPE": "false",
"AZURE_AD_CLIENT_SECRET": "",
"GRAPH_MCP_ACCESS_TOKEN": "<VALUE>",
"GRAPH_MCP_CLIENT_SECRET": "",
"GRAPH_MCP_SHARED_SECRET": "",
"GRAPH_MCP_BROWSE_MAX_FILES": "500",
"GRAPH_MCP_DISABLE_SSL_VERIFY": "false",
"GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS": ""
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-nitin27may-ms-graph-mcp": {
"command": "uvx",
"args": [
"ms-graph-mcp"
],
"env": {
"GRAPH_MCP_PORT": "8094",
"AZURE_AD_CLIENT_ID": "",
"AZURE_AD_TENANT_ID": "",
"GRAPH_MCP_AUDIENCE": "",
"GRAPH_MCP_DOES_OBO": "false",
"GRAPH_MCP_CLIENT_ID": "",
"GRAPH_MCP_READ_ONLY": "false",
"GRAPH_MCP_TENANT_ID": "",
"GRAPH_MCP_JWT_VERIFY": "true",
"GRAPH_MCP_OBO_SCOPES": "https://graph.microsoft.com/.default",
"GRAPH_MCP_USER_EMAIL": "<VALUE>",
"GRAPH_MCP_WRITE_SCOPE": "false",
"AZURE_AD_CLIENT_SECRET": "",
"GRAPH_MCP_ACCESS_TOKEN": "<VALUE>",
"GRAPH_MCP_CLIENT_SECRET": "",
"GRAPH_MCP_SHARED_SECRET": "",
"GRAPH_MCP_BROWSE_MAX_FILES": "500",
"GRAPH_MCP_DISABLE_SSL_VERIFY": "false",
"GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS": ""
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GRAPH_MCP_PORT | No | HTTP port for Streamable HTTP server. Default: 8094 |
| AZURE_AD_CLIENT_ID | No | Client ID (alias for GRAPH_MCP_CLIENT_ID). |
| AZURE_AD_TENANT_ID | No | Tenant ID (alias for GRAPH_MCP_TENANT_ID). |
| GRAPH_MCP_AUDIENCE | No | Audience to validate in OBO mode. Derived from client id if not set. |
| GRAPH_MCP_DOES_OBO | No | Server performs its own on-behalf-of exchange. Default: false |
| GRAPH_MCP_CLIENT_ID | No | Client ID. |
| GRAPH_MCP_READ_ONLY | No | Remove the write tier entirely. Default: false |
| GRAPH_MCP_TENANT_ID | No | Tenant ID. |
| GRAPH_MCP_JWT_VERIFY | No | Verify JWT signatures (JWKS). Default: true |
| GRAPH_MCP_OBO_SCOPES | No | Graph scopes requested during OBO exchange. Default: https://graph.microsoft.com/.default |
| GRAPH_MCP_USER_EMAIL | No | Caller identity, used for tenant-scoping in some tools. |
| GRAPH_MCP_WRITE_SCOPE | No | Set to true to expose the 8 write tools. Default off. Default: false |
| AZURE_AD_CLIENT_SECRET | No | Client secret (alias for GRAPH_MCP_CLIENT_SECRET). |
| GRAPH_MCP_ACCESS_TOKEN | No | The delegated Graph token every tool call uses. |
| GRAPH_MCP_CLIENT_SECRET | No | Client secret. |
| GRAPH_MCP_SHARED_SECRET | No | Shared secret for machine callers. |
| GRAPH_MCP_BROWSE_MAX_FILES | No | Max files per browse operation. Default: 500 |
| GRAPH_MCP_DISABLE_SSL_VERIFY | No | Disable TLS verification (e.g. for corporate proxy). Default: false |
| GRAPH_MCP_SEND_EMAIL_ALLOWED_DOMAINS | No | Recipient-domain allowlist for send/propose email. |