# entrabot [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/microsoft/entrabot  
**GitHub Stars:** 12  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/entrabot

## Description
Give a device-local AI agent its own Microsoft Entra identity. Reference implementation for Microsoft Agent 365 and Entra Agent ID.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What entrabot does

entrabot gives a local AI agent a distinct identity in Microsoft Entra rather than making it operate as the person who launched it. The provisioning flow creates an Agent Identity Blueprint, Agent Identity, and Agent User, then assigns the resulting user a Microsoft 365 license and makes it available for services such as Teams and Outlook.

Actions are performed with tokens for the agent's own account. This provides separate sign-in attribution and lets administrators apply Conditional Access policies to the agent identity or user account. The server also records local audit events for operations such as sending, creating, sharing, and deleting content before those actions occur.

The server is intended for developers building Microsoft 365 agents who need an identity model that matches an autonomous architecture. It supplies the identity and service access layer; the agent's behavior and task logic remain application-specific.

## How it works

The local MCP client communicates with entrabot over stdio. FastMCP registers the Teams, Outlook, files, Word, audit, and identity tools, while the server obtains delegated Microsoft 365 access through a three-stage certificate-based flow: a Blueprint token, an Agent Identity token, and an Agent User token.

Private key material is kept in the operating system's secure storage: macOS Keychain, Windows CNG, or Linux Secret Service. The design avoids client secrets in flight and does not require a human to approve every token refresh.

Inbound Teams messages and email are polled in the background. Claude Code can receive messages through its channel-push notification extension. Hosts without that extension retain the messages in the interaction log; the agent can inspect them with `read_teams_messages`, and `send_teams_message` waits for the sponsor's reply when push delivery is unavailable. Local interaction data, summaries, and watched-chat state can remain on the device or use Azure Blob Storage scoped to the Agent User object ID.

## Setup and configuration

Entrabot requires Python 3.12 and a Microsoft 365 development tenant where an administrator can create app registrations and grant consent. The tenant needs a license that includes Teams and Outlook, such as an E3 or E5 development tenant license. Agent User accounts require Microsoft's Frontier preview program.

On Windows, `scripts\\setup-windows.cmd` provisions the identity, uploads the self-signed certificate, assigns the license, configures the local server, and tests the installation. It does not require PowerShell 7, Python, Azure CLI, `winget`, or administrator rights on the PC before setup. The resulting agent can be started with `start-entrabot.cmd`.

On macOS or Linux, run `./scripts/setup.sh`, then start the server with `./start-entrabot.sh`. The setup scripts handle the Entra objects and local configuration. Cloud memory through Azure Blob Storage is optional; device-local operational state is the default.

## Tools and capabilities

- Send and receive Teams messages through the agent's own account.
- Work with the agent's mailbox and Outlook-based activity.
- Read and manipulate Microsoft 365 files.
- Use Word-related Microsoft 365 capabilities.
- Create local audit records for supported actions.
- Inspect identity and authentication-related state.
- Deliver inbound activity through Claude Code channel notifications when supported.
- Emit Microsoft Agent 365 telemetry through Microsoft's OpenTelemetry distribution when telemetry is enabled.

## Limitations and notes

Agent User identities are limited to tenants enrolled in Microsoft's Frontier preview program. Conditional Access for agents requires Microsoft 365 E7 or Agent 365 with Entra ID P1, and agent-focused ID Protection remains in preview.

Hosts without Claude Code's channel-push extension use the polling fallback rather than immediate message delivery. In that mode, activity remains available through the interaction log and command-line catch-up tooling, but it does not stream directly into the model.

Entrabot's body prompt establishes security rules, channel discipline, and external-content boundaries. These controls reduce instruction-injection risk but are not an absolute defense against every jailbreak technique. The project is an open-source reference implementation rather than a general-purpose agent behavior framework.

_Full upstream README: https://allmcps.com/mcp/entrabot/readme_

