HE

hieuttmmo/entraid-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

41 stars 18 forks Качество 49 Тренд 0

hieuttmmo/entraid-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/hieuttmmo/entraid-mcp-server.

Обзор

hieuttmmo/entraid-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/hieuttmmo/entraid-mcp-server.

Обзор (машинный перевод)

Этот проект предоставляет модульный, ресурсоориентированный сервер FastMCP для взаимодействия с Microsoft Graph API. Он предназначен для расширения, ремонтопригодности и безопасности, поддержки расширенных запросов для пользователей, входных журналов, статуса MFA и привилегированных пользователей.

Особенности

** Модульная структура ресурсов:** Каждый ресурс (пользователи, журналы входа в систему, MFA и т.д.) реализуется в собственном модуле под src/msgraph_mcp_server/resources/. Легко расширяться новыми ресурсами (например, группами, устройствами). ** Централизованный графический клиент: **

  • Управление аутентификацией и инициализацией клиента.
  • Общие для всех модулей ресурсов. Комплексные пользовательские операции: Поиск пользователей по имени / электронной почте.
  • Идентифицируйте пользователя. Перечислите всех привилегированных пользователей (членов директивных ролей). ** Полный жизненный цикл группы и управление членством Создавать, читать, обновлять и удалять группы. Добавить/удалить членов группы и владельцев. Поиск и список групп и членов группы. Основное управление приложениями и услугами: Перечислить, создать, обновить и удалить приложения (регистрации приложений). Перечислить, создать, обновить и удалить принципы обслуживания.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

EntraID MCP Server (Microsoft Graph FastMCP)

This project provides a modular, resource-oriented FastMCP server for interacting with Microsoft Graph API. It is designed for extensibility, maintainability, and security, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Features

  • Modular Resource Structure:
    • Each resource (users, sign-in logs, MFA, etc.) is implemented in its own module under src/msgraph_mcp_server/resources/.
    • Easy to extend with new resources (e.g., groups, devices).
  • Centralized Graph Client:
    • Handles authentication and client initialization.
    • Shared by all resource modules.
  • Comprehensive User Operations:
    • Search users by name/email.
    • Get user by ID.
    • List all privileged users (directory role members).
  • Full Group Lifecycle & Membership Management:
    • Create, read, update, and delete groups.
    • Add/remove group members and owners.
    • Search and list groups and group members.
  • Application & Service Principal Management:
    • List, create, update, and delete applications (app registrations).
    • List, create, update, and delete service principals.
    • View app role assignments and delegated permissions for both applications and service principals.
  • Sign-in Log Operations:
    • Query sign-in logs for a user for the last X days.
  • MFA Operations:
    • Get MFA status for a user.
    • Get MFA status for all members of a group.
  • Password Management:
    • Reset user passwords directly with custom or auto-generated secure passwords.
    • Option to require password change on next sign-in.
  • Permissions Helper:
    • Suggest appropriate Microsoft Graph permissions for common tasks.
    • Search and explore available Graph permissions.
    • Helps implement the principle of least privilege by recommending only necessary permissions.
  • Error Handling & Logging:
    • Consistent error handling and progress reporting via FastMCP context.
    • Detailed logging for troubleshooting.
  • Security:
    • .env and secret files are excluded from version control.
    • Uses Microsoft best practices for authentication.

Project Structure

src/msgraph_mcp_server/
├── auth/           # Authentication logic (GraphAuthManager)
├── resources/      # Resource modules (users, signin_logs, mfa, ...)
│   ├── users.py            # User operations (search, get by ID, etc.)
│   ├── signin_logs.py      # Sign-in log operations
│   ├── mfa.py              # MFA status operations
│   ├── permissions_helper.py # Graph permissions utilities and suggestions
│   ├── applications.py       # Application (app registration) operations
│   ├── service_principals.py # Service principal operations
│   └── ...                 # Other resource modules
├── utils/          # Core GraphClient and other ultilities tool, such as password generator..
├── server.py       # FastMCP server entry point (registers tools/resources)
├── __init__.py     # Package marker

Usage

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →