Interact with Microsoft 365 and Office services through the Microsoft Graph API.
Microsoft 365 Admin MCP Server
Published by okapi-caMicrosoft 365 administration via Graph API application permissions (read-only by default).
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 0.6.3
- SOURCE CHECKED
- Nov 30, 2026
Quick answers
How do I add Microsoft 365 Admin MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'MS365_ADMIN_MCP_TENANT_ID=<your-ms365-admin-mcp-tenant-id>' --env 'MS365_ADMIN_MCP_CLIENT_ID=<your-ms365-admin-mcp-client-id>' --env 'MS365_ADMIN_MCP_CLIENT_SECRET=<your-ms365-admin-mcp-client-secret>' --transport stdio microsoft-365-admin -- npx -y @okapi-ca/ms-365-admin-mcp-serverReplace the <your-…> placeholder with your own MS365_ADMIN_MCP_TENANT_ID and MS365_ADMIN_MCP_CLIENT_ID and MS365_ADMIN_MCP_CLIENT_SECRET.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"microsoft-365-admin": {
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<your-ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<your-ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<your-ms365-admin-mcp-client-secret>"
}
}
}
}Replace the <your-…> placeholder with your own MS365_ADMIN_MCP_TENANT_ID and MS365_ADMIN_MCP_CLIENT_ID and MS365_ADMIN_MCP_CLIENT_SECRET.
CodexCommand
Run this in your terminal:
codex mcp add microsoft-365-admin --env 'MS365_ADMIN_MCP_TENANT_ID=<your-ms365-admin-mcp-tenant-id>' --env 'MS365_ADMIN_MCP_CLIENT_ID=<your-ms365-admin-mcp-client-id>' --env 'MS365_ADMIN_MCP_CLIENT_SECRET=<your-ms365-admin-mcp-client-secret>' -- npx -y @okapi-ca/ms-365-admin-mcp-serverReplace the <your-…> placeholder with your own MS365_ADMIN_MCP_TENANT_ID and MS365_ADMIN_MCP_CLIENT_ID and MS365_ADMIN_MCP_CLIENT_SECRET.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"microsoft-365-admin": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<your-ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<your-ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<your-ms365-admin-mcp-client-secret>"
}
}
}
}Replace the <your-…> placeholder with your own MS365_ADMIN_MCP_TENANT_ID and MS365_ADMIN_MCP_CLIENT_ID and MS365_ADMIN_MCP_CLIENT_SECRET.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"microsoft-365-admin": {
"command": "npx",
"args": [
"-y",
"@okapi-ca/ms-365-admin-mcp-server"
],
"env": {
"MS365_ADMIN_MCP_TENANT_ID": "<your-ms365-admin-mcp-tenant-id>",
"MS365_ADMIN_MCP_CLIENT_ID": "<your-ms365-admin-mcp-client-id>",
"MS365_ADMIN_MCP_CLIENT_SECRET": "<your-ms365-admin-mcp-client-secret>"
}
}
}
}Replace the <your-…> placeholder with your own MS365_ADMIN_MCP_TENANT_ID and MS365_ADMIN_MCP_CLIENT_ID and MS365_ADMIN_MCP_CLIENT_SECRET.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use Microsoft 365 Admin MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does Microsoft 365 Admin MCP Server need an API key?
To run it on your computer, set MS365_ADMIN_MCP_TENANT_ID, MS365_ADMIN_MCP_CLIENT_ID and MS365_ADMIN_MCP_CLIENT_SECRET first, with values from the publisher.
Is Microsoft 365 Admin MCP Server official?
It's published by okapi-ca. The Official MCP Registry accepts names under io.github.okapi-ca only from the GitHub account or organisation okapi-ca. We last checked its listing on Nov 30, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · @okapi-ca/ms-365-admin-mcp-server@0.6.3