MS 365-21V MCP Server — Claude Code MCP server setup
Connects AI tools to the 21Vianet China Microsoft 365 cloud. It exposes Outlook mail, calendar events, and OneDrive files using delegated permissions.
claude mcp add ms-365-21v-mcp-server -- docker run -i --rm ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0What MS 365-21V MCP Server does
This server bridges AI tools to China-specific Entra ID and Microsoft Graph endpoints managed by 21Vianet. It uses delegated user permissions to inspect Outlook mailboxes and query OneDrive storage. The integration respects existing tenant access limits. Standard global Microsoft 365 tenants cannot use this server.
The service uses a Streamable HTTP interface with an OAuth bridge. It supports scope filtering alongside an explicit write-confirmation mode. Deployment runs on Node.js 22+ or via the container image ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0. The npm run doctor command performs offline sanity checks on environment parameters before startup.
What it helps with
- fetch unread messages from 21Vianet mailboxes
- detect scheduling conflicts across calendar entries
- locate documents stored inside corporate OneDrive folders
- compose email replies with human approval prior to delivery
Example prompts for the agent
- Retrieve my profile and verify the authenticated account.
- List the latest 5 emails showing only subject and sender.
- Check tomorrow's calendar for overlapping meetings.
How to install MS 365-21V MCP Server
Platform CLI
claude mcp add ms-365-21v-mcp-server -- docker run -i --rm ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0Platform CLI
codex mcp add ms-365-21v-mcp-server -- docker run -i --rm ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0Config file
{
"mcpServers": {
"ms-365-21v-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0"
]
}
}
}Config file
{
"servers": {
"ms-365-21v-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0"
]
}
}
}Platform CLI
gemini mcp add ms-365-21v-mcp-server docker run -i --rm ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about MS 365-21V MCP Server
How to install MS 365-21V MCP Server in Claude Code?
Run claude mcp add ms-365-21v-mcp-server -- docker run -i --rm ghcr.io/mdwsk88/ms-365-21v-mcp-server:v0.2.0 in your terminal.
What does MS 365-21V MCP Server do?
It exposes mail, calendar, and file endpoints from the 21Vianet China cloud to MCP-compatible AI clients.
Does it work with worldwide Microsoft 365 accounts?
No, it targets China Entra and Graph endpoints exclusively. Worldwide tenants and personal Outlook accounts are unsupported.