M

Ms 365 Admin

by okapi-ca · io.github.okapi-ca/ms-365-admin

A Model Context Protocol server for Microsoft 365 administration using Graph API application permissions, enabling security monitoring, identity audits, incident response, and service health management.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-okapi-ca-ms-365-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@okapi-ca/ms-365-admin-mcp-server"
      ],
      "env": {
        "MS365_ADMIN_MCP_TENANT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_SECRET": "<YOUR_VALUE>",
        "MS365_ADMIN_MCP_KEYVAULT_URL": "<VALUE>",
        "MS365_ADMIN_MCP_CLOUD_TYPE": "global",
        "MS365_ADMIN_MCP_MAX_TOP": "<VALUE>",
        "READ_ONLY": "<VALUE>",
        "ENABLED_TOOLS": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-okapi-ca-ms-365-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@okapi-ca/ms-365-admin-mcp-server"
      ],
      "env": {
        "MS365_ADMIN_MCP_TENANT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_SECRET": "<YOUR_VALUE>",
        "MS365_ADMIN_MCP_KEYVAULT_URL": "<VALUE>",
        "MS365_ADMIN_MCP_CLOUD_TYPE": "global",
        "MS365_ADMIN_MCP_MAX_TOP": "<VALUE>",
        "READ_ONLY": "<VALUE>",
        "ENABLED_TOOLS": "<VALUE>"
      }
    }
  }
}

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
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-okapi-ca-ms-365-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@okapi-ca/ms-365-admin-mcp-server"
      ],
      "env": {
        "MS365_ADMIN_MCP_TENANT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_SECRET": "<YOUR_VALUE>",
        "MS365_ADMIN_MCP_KEYVAULT_URL": "<VALUE>",
        "MS365_ADMIN_MCP_CLOUD_TYPE": "global",
        "MS365_ADMIN_MCP_MAX_TOP": "<VALUE>",
        "READ_ONLY": "<VALUE>",
        "ENABLED_TOOLS": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-okapi-ca-ms-365-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@okapi-ca/ms-365-admin-mcp-server"
      ],
      "env": {
        "MS365_ADMIN_MCP_TENANT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_SECRET": "<YOUR_VALUE>",
        "MS365_ADMIN_MCP_KEYVAULT_URL": "<VALUE>",
        "MS365_ADMIN_MCP_CLOUD_TYPE": "global",
        "MS365_ADMIN_MCP_MAX_TOP": "<VALUE>",
        "READ_ONLY": "<VALUE>",
        "ENABLED_TOOLS": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-okapi-ca-ms-365-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@okapi-ca/ms-365-admin-mcp-server"
      ],
      "env": {
        "MS365_ADMIN_MCP_TENANT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_SECRET": "<YOUR_VALUE>",
        "MS365_ADMIN_MCP_KEYVAULT_URL": "<VALUE>",
        "MS365_ADMIN_MCP_CLOUD_TYPE": "global",
        "MS365_ADMIN_MCP_MAX_TOP": "<VALUE>",
        "READ_ONLY": "<VALUE>",
        "ENABLED_TOOLS": "<VALUE>"
      }
    }
  }
}

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
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-okapi-ca-ms-365-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@okapi-ca/ms-365-admin-mcp-server"
      ],
      "env": {
        "MS365_ADMIN_MCP_TENANT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_ID": "<VALUE>",
        "MS365_ADMIN_MCP_CLIENT_SECRET": "<YOUR_VALUE>",
        "MS365_ADMIN_MCP_KEYVAULT_URL": "<VALUE>",
        "MS365_ADMIN_MCP_CLOUD_TYPE": "global",
        "MS365_ADMIN_MCP_MAX_TOP": "<VALUE>",
        "READ_ONLY": "<VALUE>",
        "ENABLED_TOOLS": "<VALUE>"
      }
    }
  }
}

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.

NameRequiredDescription
MS365_ADMIN_MCP_TENANT_ID Yes Azure AD tenant ID (must be specific)
MS365_ADMIN_MCP_CLIENT_ID Yes App registration client ID
MS365_ADMIN_MCP_CLIENT_SECRET secret Yes App registration client secret
MS365_ADMIN_MCP_KEYVAULT_URL No Azure Key Vault URL (overrides env vars)
MS365_ADMIN_MCP_CLOUD_TYPE No Cloud environment: global (default) or china Default: global
MS365_ADMIN_MCP_MAX_TOP No Cap $top query param to limit result size
READ_ONLY No true/1 to force read-only (default behavior)
ENABLED_TOOLS No Regex to filter available tools

Similar servers