Back to Home
ry-ops icon

microsoft-graph-mcp-server

Verified Safe

by ry-ops

Overview

Manages Microsoft 365 users, licenses, and groups via Microsoft Graph API, enabling automated M365 administration through AI agents.

Installation

Run Command
uv run mcp_graph_server.py

Environment Variables

  • MICROSOFT_TENANT_ID
  • MICROSOFT_CLIENT_ID
  • MICROSOFT_CLIENT_SECRET

Security Notes

The server uses `msal` for authentication and `httpx` for API calls, which are standard and secure libraries. Environment variables are correctly used for storing credentials, preventing hardcoding. Broad Azure AD application permissions (User.ReadWrite.All, Group.ReadWrite.All, Directory.ReadWrite.All) are required, which is a significant privilege and necessitates careful management of the client secret and adherence to the principle of least privilege. The `install.sh` script uses `curl | sh` for `uv` installation, a common but potentially risky practice. Overall, the code itself follows good security practices, but the security of the deployment relies heavily on proper Azure AD configuration and secret management by the user.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens15000
Stars0
Forks0
Last Update2025-12-08

Tags

microsoft-graphmicrosoft-365azure-aduser-managementautomation