mcp-m365-mgmt


Namemcp-m365-mgmt JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/thiagogbeier/mcp-m365-mgmt
SummaryMCP server for Microsoft 365 and Intune management with 33 tools for Entra ID, devices, Autopilot, and more
upload_time2025-11-04 15:28:58
maintainerNone
docs_urlNone
authorThiago Beier
requires_python>=3.9
licenseMIT
keywords mcp microsoft-365 intune entra-id azure-ad autopilot device-management sharepoint graph-api model-context-protocol
VCS
bugtrack_url
requirements fastmcp azure-identity requests python-docx openpyxl python-pptx odfpy python-dotenv
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Microsoft 365 / Intune MCP Server

A comprehensive Model Context Protocol (MCP) server for managing Microsoft 365, Microsoft Entra ID, and Microsoft Intune resources. This server provides 32 tools for automating user management, device management, file operations, and infrastructure monitoring.

## 🎯 Overview

This MCP server enables AI assistants and automation tools to interact with:

- **Microsoft Entra ID** - User and group management
- **Microsoft Intune** - Device, policy, and application management
- **SharePoint & OneDrive** - Document creation and management
- **Windows Autopilot** - Device provisioning
- **Microsoft Tunnel** - Gateway monitoring
- **Mobile Device Management** - Android and iOS policies
- **App Protection Policies** - MAM policies

## 🚀 Quick Start

### Prerequisites

- Python 3.8 or higher
- Azure subscription with appropriate licenses (Intune, Microsoft 365)
- Azure AD application registration with required permissions

### Installation

1. **Clone or download this repository**

   ```bash
   git clone <repository-url>
   cd mcp-entra-server
   ```

2. **Create virtual environment**

   ```bash
   python -m venv .venv

   # Windows
   .venv\Scripts\activate

   # macOS/Linux
   source .venv/bin/activate
   ```

3. **Install dependencies**

   ```bash
   pip install fastmcp azure-identity requests python-docx openpyxl python-pptx odfpy python-dotenv
   ```

4. **Configure environment variables**

   Create a `.env` file in the project root:

   ```env
   # Authentication Mode: "app" or "user"
   AUTH_MODE=app

   # Azure Service Principal Credentials (for app mode)
   AZURE_CLIENT_ID=your-client-id
   AZURE_TENANT_ID=your-tenant-id
   AZURE_CLIENT_SECRET=your-client-secret
   ```

5. **Run the server**
   ```bash
   python entra_server.py
   ```

## 🔐 Azure App Registration Setup

### Step 1: Create App Registration

1. Go to [Azure Portal](https://portal.azure.com) → **Azure Active Directory** → **App registrations**
2. Click **New registration**
3. Enter a name (e.g., "MCP Entra Server")
4. Set **Supported account types** to "Single tenant"
5. Click **Register**

### Step 2: Create Client Secret

1. In your app registration, go to **Certificates & secrets**
2. Click **New client secret**
3. Add a description and select expiration period
4. Click **Add**
5. **Copy the secret value immediately** (you won't see it again)

### Step 3: Configure API Permissions

Go to **API permissions** and add the following **Application permissions**:

#### Microsoft Graph Permissions

**User & Group Management:**

- `User.ReadWrite.All` - Create and manage users
- `Group.Read.All` - Read groups and memberships
- `Directory.Read.All` - Read directory data

**Device Management:**

- `DeviceManagementManagedDevices.Read.All` - Read managed devices
- `DeviceManagementServiceConfig.Read.All` - Read device management configuration
- `DeviceManagementApps.Read.All` - Read Intune apps
- `DeviceManagementConfiguration.Read.All` - Read device configuration

**File Operations:**

- `Sites.ReadWrite.All` - Read and write SharePoint sites
- `Files.ReadWrite.All` - Read and write files

After adding permissions, click **Grant admin consent** for your tenant.

### Step 4: Copy Credentials

From your app registration **Overview** page, copy:

- **Application (client) ID** → `AZURE_CLIENT_ID`
- **Directory (tenant) ID** → `AZURE_TENANT_ID`
- Client secret (from step 2) → `AZURE_CLIENT_SECRET`

## 📋 Complete Tool List (32 Tools)

### 👥 User & Group Management (4 tools)

- `create_user` - Create new users in Microsoft Entra ID
- `get_user_info` - Get user details by ID
- `list_users` - List all users in tenant
- `list_groups` - List all groups
- `get_group_members` - Get group membership

### 📱 Intune Device Management (6 tools)

- `list_intune_devices` - List managed devices
- `list_intune_compliance_policies` - List compliance policies
- `list_intune_configuration_policies` - List configuration policies
- `list_intune_filters` - List assignment filters
- `list_intune_scripts` - List PowerShell and Shell scripts
- `list_intune_applications` - List mobile applications

### 🚗 Windows Autopilot (3 tools)

- `list_autopilot_profiles` - List Autopilot deployment profiles
- `list_autopilot_devices` - List registered Autopilot devices
- `list_enrollment_status_page_profiles` - List ESP profiles

### 📱 Mobile Management (3 tools)

- `list_android_management_profiles` - List Android policies and enrollment
- `list_ios_management_profiles` - List iOS/iPadOS policies and enrollment
- `list_app_protection_policies` - List MAM policies

### 🌐 Infrastructure & Connectivity (4 tools)

- `list_microsoft_tunnel_sites` - List Microsoft Tunnel Gateway sites
- `list_microsoft_tunnel_servers` - List tunnel servers and health
- `list_intune_ad_connectors` - List AD connectors for Hybrid Join
- `list_intune_certificate_connectors` - List NDES certificate connectors

### 📄 File & Document Management (12 tools)

- `create_file_in_onedrive` - Create text files in OneDrive
- `create_file_in_sharepoint` - Create text files in SharePoint
- `list_sharepoint_sites` - List SharePoint sites
- `create_word_document` - Create Word (.docx) documents
- `create_excel_workbook` - Create Excel (.xlsx) workbooks
- `create_powerpoint_presentation` - Create PowerPoint (.pptx) files
- `convert_file_to_pdf` - Convert Office files to PDF
- `create_csv_file` - Create CSV files
- `read_csv_file` - Read CSV files
- `export_powerpoint_slide_as_image` - Export slides as images
- `create_odf_document` - Create OpenDocument format files

## 🔧 Configuration Options

### Authentication Modes

**App Mode (Default)** - Service principal authentication

```env
AUTH_MODE=app
```

- Best for: Automation, unattended scenarios
- Files show as modified by "SharePoint app"

**User Mode** - Interactive browser authentication

```env
AUTH_MODE=user
```

- Best for: Interactive use, user context required
- Files show as modified by signed-in user
- Requires user to sign in via browser

### MCP Client Integration

#### Claude Desktop

Add to your Claude Desktop configuration (`claude_desktop_config.json`):

```json
{
	"mcpServers": {
		"entra-server": {
			"command": "python",
			"args": ["C:/path/to/mcp-entra-server/entra_server.py"],
			"env": {
				"AZURE_CLIENT_ID": "your-client-id",
				"AZURE_TENANT_ID": "your-tenant-id",
				"AZURE_CLIENT_SECRET": "your-client-secret",
				"AUTH_MODE": "app"
			}
		}
	}
}
```

#### Other MCP Clients

Use the `mcp.json` configuration file included in the `mcp/` directory.

## 📖 Usage Examples

### List Intune Devices

```python
from entra_server import list_intune_devices
import json

result = list_intune_devices()
print(json.dumps(result, indent=2))
```

### Create User

```python
from entra_server import create_user

result = create_user(
    user_principal_name="john.doe@yourtenant.com",
    display_name="John Doe",
    mail_nickname="john.doe",
    password="TempPassword123!",
    force_change_password=True
)
```

### Create Word Document in SharePoint

```python
from entra_server import create_word_document, list_sharepoint_sites

# First, get your SharePoint site ID
sites = list_sharepoint_sites()
site_id = sites['sites'][0]['id']  # Use first site

# Create document
result = create_word_document(
    location='sharepoint',
    location_id=site_id,
    file_name='Report.docx',
    content='# Project Status\n\nAll systems operational.',
    folder_path='Shared Documents'
)
```

### List Microsoft Tunnel Sites

```python
from entra_server import list_microsoft_tunnel_sites

result = list_microsoft_tunnel_sites()
for site in result['tunnel_sites']:
    print(f"{site['displayName']}: {site['publicAddress']}")
```

## 🔍 Troubleshooting

### Permission Errors (403 Forbidden)

**Error:** `Application is not authorized to perform this operation`

**Solution:**

1. Check that all required API permissions are added in Azure Portal
2. Ensure **admin consent** has been granted
3. Wait 5-10 minutes for permissions to propagate

### Authentication Errors

**Error:** `AADSTS700016: Application with identifier was not found`

**Solution:**

- Verify `AZURE_CLIENT_ID` and `AZURE_TENANT_ID` are correct
- Check that the app registration exists in your tenant

**Error:** `AADSTS7000215: Invalid client secret`

**Solution:**

- Generate a new client secret in Azure Portal
- Update `AZURE_CLIENT_SECRET` in `.env` file

### File Operation Errors

**Error:** `Resource not found for the segment`

**Solution:**

- Verify the SharePoint site ID or OneDrive user ID is correct
- Use `list_sharepoint_sites()` to get valid site IDs
- Ensure the folder path exists (e.g., "Shared Documents")

## 🛡️ Security Best Practices

1. **Protect credentials**: Never commit `.env` file to version control
2. **Use least privilege**: Only grant necessary API permissions
3. **Rotate secrets**: Regularly rotate client secrets (recommended: every 6 months)
4. **Monitor access**: Review Azure AD sign-in logs for suspicious activity
5. **Use managed identities**: Consider Azure Managed Identities for production deployments

## 📦 Deployment Options

### Local Development

```bash
python entra_server.py
```

### Docker Container

```dockerfile
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["python", "entra_server.py"]
```

### Azure Container Instance

Deploy as containerized MCP server for cloud-based access.

### GitHub Actions / Azure DevOps

Use as automation tool in CI/CD pipelines for tenant management.

## 📚 Additional Documentation

- [TOOLS-SUMMARY.md](TOOLS-SUMMARY.md) - Complete tool reference with examples
- [AUTHENTICATION.md](AUTHENTICATION.md) - Authentication mode details
- [Microsoft Graph API Documentation](https://learn.microsoft.com/en-us/graph/)
- [FastMCP Documentation](https://github.com/jlowin/fastmcp)

## 🤝 Contributing

Contributions are welcome! Areas for enhancement:

- Additional Intune policy types
- Bulk operations for users and devices
- Advanced SharePoint operations
- Reporting and analytics capabilities
- Exchange Online integration
- Teams management

## 📄 License

This project is provided as-is for educational and automation purposes. Ensure compliance with Microsoft licensing terms when using with production tenants.

## 🆘 Support

For issues and questions:

1. Check the troubleshooting section above
2. Review Microsoft Graph API documentation
3. Verify API permissions and admin consent
4. Check Azure AD sign-in logs for detailed errors

## 🔄 Updates

**Version 1.0** (November 2025)

- Initial release with 32 tools
- Support for Entra ID, Intune, SharePoint, OneDrive
- Windows Autopilot integration
- Microsoft Tunnel monitoring
- Mobile device management (Android/iOS)
- App protection policies
- Document creation (Office, CSV, ODF formats)
- File conversion and image export

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thiagogbeier/mcp-m365-mgmt",
    "name": "mcp-m365-mgmt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Thiago Beier <thiago.beier@gmail.com>",
    "keywords": "mcp, microsoft-365, intune, entra-id, azure-ad, autopilot, device-management, sharepoint, graph-api, model-context-protocol",
    "author": "Thiago Beier",
    "author_email": "Thiago Beier <thiago.beier@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f0/e5/87d93ed0e9b27f69d42375c0a020199fc0c8e154594f21569b92c76f22c2/mcp_m365_mgmt-1.0.2.tar.gz",
    "platform": null,
    "description": "# Microsoft 365 / Intune MCP Server\r\n\r\nA comprehensive Model Context Protocol (MCP) server for managing Microsoft 365, Microsoft Entra ID, and Microsoft Intune resources. This server provides 32 tools for automating user management, device management, file operations, and infrastructure monitoring.\r\n\r\n## \ud83c\udfaf Overview\r\n\r\nThis MCP server enables AI assistants and automation tools to interact with:\r\n\r\n- **Microsoft Entra ID** - User and group management\r\n- **Microsoft Intune** - Device, policy, and application management\r\n- **SharePoint & OneDrive** - Document creation and management\r\n- **Windows Autopilot** - Device provisioning\r\n- **Microsoft Tunnel** - Gateway monitoring\r\n- **Mobile Device Management** - Android and iOS policies\r\n- **App Protection Policies** - MAM policies\r\n\r\n## \ud83d\ude80 Quick Start\r\n\r\n### Prerequisites\r\n\r\n- Python 3.8 or higher\r\n- Azure subscription with appropriate licenses (Intune, Microsoft 365)\r\n- Azure AD application registration with required permissions\r\n\r\n### Installation\r\n\r\n1. **Clone or download this repository**\r\n\r\n   ```bash\r\n   git clone <repository-url>\r\n   cd mcp-entra-server\r\n   ```\r\n\r\n2. **Create virtual environment**\r\n\r\n   ```bash\r\n   python -m venv .venv\r\n\r\n   # Windows\r\n   .venv\\Scripts\\activate\r\n\r\n   # macOS/Linux\r\n   source .venv/bin/activate\r\n   ```\r\n\r\n3. **Install dependencies**\r\n\r\n   ```bash\r\n   pip install fastmcp azure-identity requests python-docx openpyxl python-pptx odfpy python-dotenv\r\n   ```\r\n\r\n4. **Configure environment variables**\r\n\r\n   Create a `.env` file in the project root:\r\n\r\n   ```env\r\n   # Authentication Mode: \"app\" or \"user\"\r\n   AUTH_MODE=app\r\n\r\n   # Azure Service Principal Credentials (for app mode)\r\n   AZURE_CLIENT_ID=your-client-id\r\n   AZURE_TENANT_ID=your-tenant-id\r\n   AZURE_CLIENT_SECRET=your-client-secret\r\n   ```\r\n\r\n5. **Run the server**\r\n   ```bash\r\n   python entra_server.py\r\n   ```\r\n\r\n## \ud83d\udd10 Azure App Registration Setup\r\n\r\n### Step 1: Create App Registration\r\n\r\n1. Go to [Azure Portal](https://portal.azure.com) \u2192 **Azure Active Directory** \u2192 **App registrations**\r\n2. Click **New registration**\r\n3. Enter a name (e.g., \"MCP Entra Server\")\r\n4. Set **Supported account types** to \"Single tenant\"\r\n5. Click **Register**\r\n\r\n### Step 2: Create Client Secret\r\n\r\n1. In your app registration, go to **Certificates & secrets**\r\n2. Click **New client secret**\r\n3. Add a description and select expiration period\r\n4. Click **Add**\r\n5. **Copy the secret value immediately** (you won't see it again)\r\n\r\n### Step 3: Configure API Permissions\r\n\r\nGo to **API permissions** and add the following **Application permissions**:\r\n\r\n#### Microsoft Graph Permissions\r\n\r\n**User & Group Management:**\r\n\r\n- `User.ReadWrite.All` - Create and manage users\r\n- `Group.Read.All` - Read groups and memberships\r\n- `Directory.Read.All` - Read directory data\r\n\r\n**Device Management:**\r\n\r\n- `DeviceManagementManagedDevices.Read.All` - Read managed devices\r\n- `DeviceManagementServiceConfig.Read.All` - Read device management configuration\r\n- `DeviceManagementApps.Read.All` - Read Intune apps\r\n- `DeviceManagementConfiguration.Read.All` - Read device configuration\r\n\r\n**File Operations:**\r\n\r\n- `Sites.ReadWrite.All` - Read and write SharePoint sites\r\n- `Files.ReadWrite.All` - Read and write files\r\n\r\nAfter adding permissions, click **Grant admin consent** for your tenant.\r\n\r\n### Step 4: Copy Credentials\r\n\r\nFrom your app registration **Overview** page, copy:\r\n\r\n- **Application (client) ID** \u2192 `AZURE_CLIENT_ID`\r\n- **Directory (tenant) ID** \u2192 `AZURE_TENANT_ID`\r\n- Client secret (from step 2) \u2192 `AZURE_CLIENT_SECRET`\r\n\r\n## \ud83d\udccb Complete Tool List (32 Tools)\r\n\r\n### \ud83d\udc65 User & Group Management (4 tools)\r\n\r\n- `create_user` - Create new users in Microsoft Entra ID\r\n- `get_user_info` - Get user details by ID\r\n- `list_users` - List all users in tenant\r\n- `list_groups` - List all groups\r\n- `get_group_members` - Get group membership\r\n\r\n### \ud83d\udcf1 Intune Device Management (6 tools)\r\n\r\n- `list_intune_devices` - List managed devices\r\n- `list_intune_compliance_policies` - List compliance policies\r\n- `list_intune_configuration_policies` - List configuration policies\r\n- `list_intune_filters` - List assignment filters\r\n- `list_intune_scripts` - List PowerShell and Shell scripts\r\n- `list_intune_applications` - List mobile applications\r\n\r\n### \ud83d\ude97 Windows Autopilot (3 tools)\r\n\r\n- `list_autopilot_profiles` - List Autopilot deployment profiles\r\n- `list_autopilot_devices` - List registered Autopilot devices\r\n- `list_enrollment_status_page_profiles` - List ESP profiles\r\n\r\n### \ud83d\udcf1 Mobile Management (3 tools)\r\n\r\n- `list_android_management_profiles` - List Android policies and enrollment\r\n- `list_ios_management_profiles` - List iOS/iPadOS policies and enrollment\r\n- `list_app_protection_policies` - List MAM policies\r\n\r\n### \ud83c\udf10 Infrastructure & Connectivity (4 tools)\r\n\r\n- `list_microsoft_tunnel_sites` - List Microsoft Tunnel Gateway sites\r\n- `list_microsoft_tunnel_servers` - List tunnel servers and health\r\n- `list_intune_ad_connectors` - List AD connectors for Hybrid Join\r\n- `list_intune_certificate_connectors` - List NDES certificate connectors\r\n\r\n### \ud83d\udcc4 File & Document Management (12 tools)\r\n\r\n- `create_file_in_onedrive` - Create text files in OneDrive\r\n- `create_file_in_sharepoint` - Create text files in SharePoint\r\n- `list_sharepoint_sites` - List SharePoint sites\r\n- `create_word_document` - Create Word (.docx) documents\r\n- `create_excel_workbook` - Create Excel (.xlsx) workbooks\r\n- `create_powerpoint_presentation` - Create PowerPoint (.pptx) files\r\n- `convert_file_to_pdf` - Convert Office files to PDF\r\n- `create_csv_file` - Create CSV files\r\n- `read_csv_file` - Read CSV files\r\n- `export_powerpoint_slide_as_image` - Export slides as images\r\n- `create_odf_document` - Create OpenDocument format files\r\n\r\n## \ud83d\udd27 Configuration Options\r\n\r\n### Authentication Modes\r\n\r\n**App Mode (Default)** - Service principal authentication\r\n\r\n```env\r\nAUTH_MODE=app\r\n```\r\n\r\n- Best for: Automation, unattended scenarios\r\n- Files show as modified by \"SharePoint app\"\r\n\r\n**User Mode** - Interactive browser authentication\r\n\r\n```env\r\nAUTH_MODE=user\r\n```\r\n\r\n- Best for: Interactive use, user context required\r\n- Files show as modified by signed-in user\r\n- Requires user to sign in via browser\r\n\r\n### MCP Client Integration\r\n\r\n#### Claude Desktop\r\n\r\nAdd to your Claude Desktop configuration (`claude_desktop_config.json`):\r\n\r\n```json\r\n{\r\n\t\"mcpServers\": {\r\n\t\t\"entra-server\": {\r\n\t\t\t\"command\": \"python\",\r\n\t\t\t\"args\": [\"C:/path/to/mcp-entra-server/entra_server.py\"],\r\n\t\t\t\"env\": {\r\n\t\t\t\t\"AZURE_CLIENT_ID\": \"your-client-id\",\r\n\t\t\t\t\"AZURE_TENANT_ID\": \"your-tenant-id\",\r\n\t\t\t\t\"AZURE_CLIENT_SECRET\": \"your-client-secret\",\r\n\t\t\t\t\"AUTH_MODE\": \"app\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\n#### Other MCP Clients\r\n\r\nUse the `mcp.json` configuration file included in the `mcp/` directory.\r\n\r\n## \ud83d\udcd6 Usage Examples\r\n\r\n### List Intune Devices\r\n\r\n```python\r\nfrom entra_server import list_intune_devices\r\nimport json\r\n\r\nresult = list_intune_devices()\r\nprint(json.dumps(result, indent=2))\r\n```\r\n\r\n### Create User\r\n\r\n```python\r\nfrom entra_server import create_user\r\n\r\nresult = create_user(\r\n    user_principal_name=\"john.doe@yourtenant.com\",\r\n    display_name=\"John Doe\",\r\n    mail_nickname=\"john.doe\",\r\n    password=\"TempPassword123!\",\r\n    force_change_password=True\r\n)\r\n```\r\n\r\n### Create Word Document in SharePoint\r\n\r\n```python\r\nfrom entra_server import create_word_document, list_sharepoint_sites\r\n\r\n# First, get your SharePoint site ID\r\nsites = list_sharepoint_sites()\r\nsite_id = sites['sites'][0]['id']  # Use first site\r\n\r\n# Create document\r\nresult = create_word_document(\r\n    location='sharepoint',\r\n    location_id=site_id,\r\n    file_name='Report.docx',\r\n    content='# Project Status\\n\\nAll systems operational.',\r\n    folder_path='Shared Documents'\r\n)\r\n```\r\n\r\n### List Microsoft Tunnel Sites\r\n\r\n```python\r\nfrom entra_server import list_microsoft_tunnel_sites\r\n\r\nresult = list_microsoft_tunnel_sites()\r\nfor site in result['tunnel_sites']:\r\n    print(f\"{site['displayName']}: {site['publicAddress']}\")\r\n```\r\n\r\n## \ud83d\udd0d Troubleshooting\r\n\r\n### Permission Errors (403 Forbidden)\r\n\r\n**Error:** `Application is not authorized to perform this operation`\r\n\r\n**Solution:**\r\n\r\n1. Check that all required API permissions are added in Azure Portal\r\n2. Ensure **admin consent** has been granted\r\n3. Wait 5-10 minutes for permissions to propagate\r\n\r\n### Authentication Errors\r\n\r\n**Error:** `AADSTS700016: Application with identifier was not found`\r\n\r\n**Solution:**\r\n\r\n- Verify `AZURE_CLIENT_ID` and `AZURE_TENANT_ID` are correct\r\n- Check that the app registration exists in your tenant\r\n\r\n**Error:** `AADSTS7000215: Invalid client secret`\r\n\r\n**Solution:**\r\n\r\n- Generate a new client secret in Azure Portal\r\n- Update `AZURE_CLIENT_SECRET` in `.env` file\r\n\r\n### File Operation Errors\r\n\r\n**Error:** `Resource not found for the segment`\r\n\r\n**Solution:**\r\n\r\n- Verify the SharePoint site ID or OneDrive user ID is correct\r\n- Use `list_sharepoint_sites()` to get valid site IDs\r\n- Ensure the folder path exists (e.g., \"Shared Documents\")\r\n\r\n## \ud83d\udee1\ufe0f Security Best Practices\r\n\r\n1. **Protect credentials**: Never commit `.env` file to version control\r\n2. **Use least privilege**: Only grant necessary API permissions\r\n3. **Rotate secrets**: Regularly rotate client secrets (recommended: every 6 months)\r\n4. **Monitor access**: Review Azure AD sign-in logs for suspicious activity\r\n5. **Use managed identities**: Consider Azure Managed Identities for production deployments\r\n\r\n## \ud83d\udce6 Deployment Options\r\n\r\n### Local Development\r\n\r\n```bash\r\npython entra_server.py\r\n```\r\n\r\n### Docker Container\r\n\r\n```dockerfile\r\nFROM python:3.11-slim\r\nWORKDIR /app\r\nCOPY requirements.txt .\r\nRUN pip install -r requirements.txt\r\nCOPY . .\r\nCMD [\"python\", \"entra_server.py\"]\r\n```\r\n\r\n### Azure Container Instance\r\n\r\nDeploy as containerized MCP server for cloud-based access.\r\n\r\n### GitHub Actions / Azure DevOps\r\n\r\nUse as automation tool in CI/CD pipelines for tenant management.\r\n\r\n## \ud83d\udcda Additional Documentation\r\n\r\n- [TOOLS-SUMMARY.md](TOOLS-SUMMARY.md) - Complete tool reference with examples\r\n- [AUTHENTICATION.md](AUTHENTICATION.md) - Authentication mode details\r\n- [Microsoft Graph API Documentation](https://learn.microsoft.com/en-us/graph/)\r\n- [FastMCP Documentation](https://github.com/jlowin/fastmcp)\r\n\r\n## \ud83e\udd1d Contributing\r\n\r\nContributions are welcome! Areas for enhancement:\r\n\r\n- Additional Intune policy types\r\n- Bulk operations for users and devices\r\n- Advanced SharePoint operations\r\n- Reporting and analytics capabilities\r\n- Exchange Online integration\r\n- Teams management\r\n\r\n## \ud83d\udcc4 License\r\n\r\nThis project is provided as-is for educational and automation purposes. Ensure compliance with Microsoft licensing terms when using with production tenants.\r\n\r\n## \ud83c\udd98 Support\r\n\r\nFor issues and questions:\r\n\r\n1. Check the troubleshooting section above\r\n2. Review Microsoft Graph API documentation\r\n3. Verify API permissions and admin consent\r\n4. Check Azure AD sign-in logs for detailed errors\r\n\r\n## \ud83d\udd04 Updates\r\n\r\n**Version 1.0** (November 2025)\r\n\r\n- Initial release with 32 tools\r\n- Support for Entra ID, Intune, SharePoint, OneDrive\r\n- Windows Autopilot integration\r\n- Microsoft Tunnel monitoring\r\n- Mobile device management (Android/iOS)\r\n- App protection policies\r\n- Document creation (Office, CSV, ODF formats)\r\n- File conversion and image export\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "MCP server for Microsoft 365 and Intune management with 33 tools for Entra ID, devices, Autopilot, and more",
    "version": "1.0.2",
    "project_urls": {
        "Changelog": "https://github.com/thiagogbeier/mcp-m365-mgmt/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/thiagogbeier/mcp-m365-mgmt#readme",
        "Homepage": "https://github.com/thiagogbeier/mcp-m365-mgmt",
        "Issues": "https://github.com/thiagogbeier/mcp-m365-mgmt/issues",
        "Repository": "https://github.com/thiagogbeier/mcp-m365-mgmt"
    },
    "split_keywords": [
        "mcp",
        " microsoft-365",
        " intune",
        " entra-id",
        " azure-ad",
        " autopilot",
        " device-management",
        " sharepoint",
        " graph-api",
        " model-context-protocol"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3c43260c8eb9e9800d4c5e0e882f0413a2f080fffde5d964579852f14e101ccc",
                "md5": "908ee6e19e8e44d311843059496bec62",
                "sha256": "c98737da87e3ef69459b0ca88eb6f9ab02f350c4e73bad4652a176c3390a76a9"
            },
            "downloads": -1,
            "filename": "mcp_m365_mgmt-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "908ee6e19e8e44d311843059496bec62",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 19727,
            "upload_time": "2025-11-04T15:28:56",
            "upload_time_iso_8601": "2025-11-04T15:28:56.930434Z",
            "url": "https://files.pythonhosted.org/packages/3c/43/260c8eb9e9800d4c5e0e882f0413a2f080fffde5d964579852f14e101ccc/mcp_m365_mgmt-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f0e587d93ed0e9b27f69d42375c0a020199fc0c8e154594f21569b92c76f22c2",
                "md5": "21a64fdc69bc5937bdae4f7b8b6ca1f7",
                "sha256": "20e9eea92c516b554ac8002fc2d7c1d72619e5604082935be857c7ab492d88df"
            },
            "downloads": -1,
            "filename": "mcp_m365_mgmt-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "21a64fdc69bc5937bdae4f7b8b6ca1f7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 35418,
            "upload_time": "2025-11-04T15:28:58",
            "upload_time_iso_8601": "2025-11-04T15:28:58.181999Z",
            "url": "https://files.pythonhosted.org/packages/f0/e5/87d93ed0e9b27f69d42375c0a020199fc0c8e154594f21569b92c76f22c2/mcp_m365_mgmt-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-11-04 15:28:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thiagogbeier",
    "github_project": "mcp-m365-mgmt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "fastmcp",
            "specs": [
                [
                    ">=",
                    "0.1.0"
                ]
            ]
        },
        {
            "name": "azure-identity",
            "specs": [
                [
                    ">=",
                    "1.25.0"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "python-docx",
            "specs": [
                [
                    ">=",
                    "1.1.0"
                ]
            ]
        },
        {
            "name": "openpyxl",
            "specs": [
                [
                    ">=",
                    "3.1.0"
                ]
            ]
        },
        {
            "name": "python-pptx",
            "specs": [
                [
                    ">=",
                    "0.6.23"
                ]
            ]
        },
        {
            "name": "odfpy",
            "specs": [
                [
                    ">=",
                    "1.4.1"
                ]
            ]
        },
        {
            "name": "python-dotenv",
            "specs": [
                [
                    ">=",
                    "1.0.0"
                ]
            ]
        }
    ],
    "lcname": "mcp-m365-mgmt"
}
        
Elapsed time: 2.26683s