
hieuttmmo/entraid-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
hieuttmmo/entraid-mcp-serverは[https://github.com/hieuttmmo/entraid-mcp-server.からインポートされたMCPサーバー候補です
概要
hieuttmmo/entraid-mcp-serverは[https://github.com/hieuttmmo/entraid-mcp-server.からインポートされたMCPサーバー候補です
概要(AI 翻訳)
このプロジェクトは、Microsoft Graph API とのやり取りを行うための、モジュール式でリソース指向の FastMCP サーバーを提供します。 ユーザーの高度な問い合わせ、サインインログ、MFAステータス、特権ユーザーをサポートし、拡張性、保守性、セキュリティのために設計されています。
##特徴
- モジュラーリソース構造:
- 各リソース(ユーザ、サインインログ、MFAなど)は、[
src/msgraph_mcp_server/resources/]の下のモジュールで実装されます。 - 新しいリソース(グループ、デバイスなど)で拡張しやすい。 -集中グラフクライアント:
- 認証とクライアントの初期化を処理します。
- すべてのリソースモジュールによって共有されます。
- 包括的なユーザー操作:
- 名前/電子メールでユーザーを検索します。
- IDでユーザーを取得
- 特権ユーザ(ディレクトリロールメンバー)をすべてリストします。 -グループ全体ライフサイクルとメンバーシップ管理:
- グループの作成、読み込み、更新、削除
- グループメンバーと所有者の追加/削除。
- グループとグループのメンバーを検索してリストします。
- 適用及びサービス プリンシパル管理:
- アプリケーションのリスト、作成、更新、削除(アプリ登録)。
- サービスプリンシパルの一覧、作成、更新、削除.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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).
- Each resource (users, sign-in logs, MFA, etc.) is implemented in its own module under
- 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:
.envand 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
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →