← Back to directory
M

MS 365-21V MCP Server

Community
Connect AI clients to 21Vianet Microsoft 365 as the signed-in user.
Category
Collaboration #25 of 83
Stars
★ 91 Popular
Transport
Streamable HTTP
Runtime
Node.js 22+ · Hosted (no local runtime)
Credentials
API key / credential required
License
Apache-2.0
Last commit
55FMRS · C

This is a third-party MCP gateway for Microsoft 365 operated by 21Vianet, not an official Microsoft or 21Vianet product. It requires a 21V tenant and administrator authorization. Enable only the needed modules and Graph permissions, and assess the AI client's data flows before deployment.

Strongest · Security and permissions 14/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
14/20
Maintenance
8/20
Documentation
13/20
Setup experience
12/20
Why each score
Reliability 8/20
The README describes Streamable HTTP, OAuth, Graph calls, and doctor checks, and gives auth_status and graph_get_me as connection checks. However, no manifest, source, CI workflow contents, or test evidence was provided to verify startup, handshake, tool declarations, or error handling, so the score is limited.
Security and permissions 14/20
The README explicitly describes delegated permissions, App Roles, module and scope filtering, confirmation for write operations, redacted audit logs, HTTPS, and Secret Manager. It also warns that tool results go to the selected AI client or model service. Points are deducted because these controls cannot be verified from source and the supplied material does not detail the actual data flows or permission configuration; nothing provided indicates a red-line issue.
Maintenance 8/20
The supplied metadata says the project is not archived and uses Apache-2.0; the README links to releases, a changelog, and security policy. It provides no concrete evidence of release dates, commit activity, dependency updates, issue response, or a security response channel, so sustained maintenance cannot be established.
Documentation 13/20
The README links to quick start, deployment, user guide, tool catalog, threat model, and troubleshooting materials, and explains cloud-client constraints, permission prerequisites, and data-boundary limits. Points are deducted because the linked document contents were not supplied, leaving tool parameters, full limitations, and troubleshooting coverage unreviewable.
Setup experience 12/20
The README gives Node.js 22+, setup wizard, doctor, build, and start steps, plus a Claude Code remote MCP example and a Docker image path. Points are deducted because these steps and compatibility claims were not executed or checked against source, and administrator configuration, Entra authorization, and HTTPS deployment still require manual work.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkChanges third-party account data

Best for

  • Users of 21Vianet Microsoft 365 tenants who want to access work data through an MCP-capable AI client.
  • Organizations that want administrators to control modules, scopes, roles, write confirmations, and audit boundaries.

Not for

  • Global Microsoft 365 or personal Outlook accounts.
  • Users without a 21Vianet tenant or administrator authorization.

Required permissions

  • Requires a 21Vianet tenant and administrator setup and authorization of an Entra application.
  • Uses the current user's delegated permissions; the required Graph permissions, modules, and App Roles depend on enabled features.
  • The email-reading example requires Mail.Read and mcp.mail; calendar reading requires Calendars.Read and mcp.calendar; OneDrive search requires Files.Read and mcp.drive.
  • Email writing requires additional write permissions; MCP_SEND_MODE=confirm is the recommended setting.

Risks and side effects

  • The service does not expand the user's existing data permissions, but data returned by tools is sent to the selected AI client or model service.
  • Using Graph China does not by itself guarantee that data stays within China end to end; review client data flows, log retention, model providers, and organizational compliance requirements.
  • For remote production deployments, use HTTPS and a Secret Manager, and grant only needed permissions. Do not disable authentication or expose every module to troubleshoot.

Setup

Before you start

Runtime:Node.js 22+ · Hosted (no local runtime)

MS_CLIENT_SECRET requiredsecret The Entra application's client secret value. Set it in `.env`; use the secret Value, not the Secret ID.
Other optional settings (2)
MCP_SEND_MODE optional Controls the email sending mode; set it to `confirm` to require confirmation before sending.
MCP_IMAGE_TAG optional The Docker image tag to set when using the older Compose file, for example `v0.2.0`.

After an administrator deploys the service and grants access, add the administrator-provided HTTPS MCP address to a client that supports Streamable HTTP and OAuth, then sign in. Claude Code can use a remote address in the project .mcp.json; Claude Desktop uses a custom connector. Self-hosting requires Node.js 22+, Entra administrator setup and consent; follow the quick-start guide to configure the service, run its doctor check, install dependencies, build, and start the HTTP service. The initial configuration exposes personal profile lookup only.

.mcp.json
{"mcpServers":{"ms365-21v":{"type":"http","url":"https://your-mcp-host.example.cn/mcp"}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "ms365-21v": {
      "type": "http",
      "url": "https://your-mcp-host.example.cn/mcp"
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.ms365-21v]
url = "https://your-mcp-host.example.cn/mcp"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add --transport http ms365-21v https://your-mcp-host.example.cn/mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After completing OAuth sign-in in the client, call `auth_status`, then run `graph_get_me`. A successful profile response confirms the connection and Graph call are working.

Troubleshooting

  1. Run npm run doctor to check placeholder credentials, cloud endpoints, addresses, ports, and single- or dual-app credential mismatches. This offline check does not verify administrator consent or live OAuth/Graph calls.
  2. After signing in through the client, call auth_status and then graph_get_me to verify the connection.
  3. Confirm service access is assigned and check tenant MFA, device compliance, and user assignment policies.
  4. Cloud clients need a reachable HTTPS address; remote Claude Desktop connections cannot use the computer's localhost.

Things to try

Once connected, you can ask your AI assistant things like:

  • Show my profile and confirm which account is signed in.
  • List my 5 most recent emails, showing only the subject and sender.
  • Check tomorrow's meetings for scheduling conflicts.
  • Find the project plan in my OneDrive.

Use cases

Retrieve the signed-in user's profile to check the OAuth and Graph connection.
Read email subjects and senders after enabling the Mail module and Mail.Read permission.
Query the calendar and check for meeting conflicts.
Search for files in OneDrive or SharePoint.
Prepare an email and require confirmation before sending, with additional write permissions and confirmation mode enabled.

Supported clients

Claude Code
Claude DesktopPartial support
WorkBuddyPartial support
Qoder WorkPartial support
CodexPartial support
DifyPartial support

Listed from the project's documentation, not tested by this site.

Overview

MS 365-21V MCP Server is an MCP gateway for Microsoft 365 operated by 21Vianet. It connects through Microsoft Graph China and provides capabilities for email, calendar, OneDrive, SharePoint, Teams, contacts, organizational users, and Microsoft Search. It uses the current user's delegated permissions and supports controls by module, scope, and App Role. Implemented tools do not mean a tenant has granted access or that every global-cloud API is available in 21Vianet.

Similar servers

Source revision f5b846363453 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/ms-365-21v-mcp-server.svg)](https://followmcp.com/en/servers/ms-365-21v-mcp-server)