Microsoft 365 Admin MCP Server
by okapi-caio.github.okapi-ca/ms-365-adminv0.6.3
Microsoft 365 administration via Graph API application permissions (read-only by default).
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install Microsoft 365 Admin MCP server
Install in Claude Code
claude mcp add ms-365-admin -e MS365_ADMIN_MCP_TENANT_ID='<ms365-admin-mcp-tenant-id>' -e MS365_ADMIN_MCP_CLIENT_ID='<ms365-admin-mcp-client-id>' -e MS365_ADMIN_MCP_CLIENT_SECRET='<ms365-admin-mcp-client-secret>' -- npx -y @okapi-ca/ms-365-admin-mcp-serverInstall in Cursor
{
"mcpServers": {
"ms-365-admin": {
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<ms365-admin-mcp-client-secret>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"ms-365-admin": {
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<ms365-admin-mcp-client-secret>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"ms-365-admin": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<ms365-admin-mcp-client-secret>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"ms-365-admin": {
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<ms365-admin-mcp-client-secret>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MS365_ADMIN_MCP_TENANT_ID | yes | — | Azure AD tenant ID (specific GUID, not 'common'). |
| MS365_ADMIN_MCP_CLIENT_ID | yes | — | App registration client ID with the required application permissions. |
| MS365_ADMIN_MCP_CLIENT_SECRET | yes | yes | App registration client secret. Prefer Azure Key Vault via MS365_ADMIN_MCP_KEYVAULT_URL for production. |
| MS365_ADMIN_MCP_KEYVAULT_URL | — | — | Optional Azure Key Vault URL. When set, secrets are pulled from the vault and override the env-var values above. |
| MS365_ADMIN_MCP_CLOUD_TYPE | — | — | Cloud environment: 'global' (default) or 'china' (21Vianet). |
| MS365_ADMIN_MCP_MAX_TOP | — | — | Cap on the $top query parameter to limit result size. |
| READ_ONLY | — | — | Set to 'true' or '1' to force read-only mode (default behavior; mutations require --allow-writes). |
| ENABLED_TOOLS | — | — | Regex to filter the catalog of available tools. |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-31 · 2mo ago · GitHub
Latest release
2026-07-31 · 2mo ago · GitHub · v0.15.1
Package published
no data · npm/PyPI
Registry entry updated
2026-05-21 · 5mo ago · official registry · v0.6.3
FAQ
›How do I install the Microsoft 365 Admin MCP server in Claude Code?
Run: claude mcp add ms-365-admin -e MS365_ADMIN_MCP_TENANT_ID='<ms365-admin-mcp-tenant-id>' -e MS365_ADMIN_MCP_CLIENT_ID='<ms365-admin-mcp-client-id>' -e MS365_ADMIN_MCP_CLIENT_SECRET='<ms365-admin-mcp-client-secret>' -- npx -y @okapi-ca/ms-365-admin-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Microsoft 365 Admin require an API key?
Yes. It expects MS365_ADMIN_MCP_TENANT_ID, MS365_ADMIN_MCP_CLIENT_ID, MS365_ADMIN_MCP_CLIENT_SECRET, of which 1 is a secret.
›Can I use Microsoft 365 Admin as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Microsoft 365 Admin in the official MCP registry?
Yes, as io.github.okapi-ca/ms-365-admin.