> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Microsoft Agent 365 (Work IQ) MCP servers

> Connect Microsoft 365 services (Teams, Outlook, SharePoint, etc.) through Agent 365 Work IQ MCP servers

<Info>
  **Hosted by a third party.** This MCP server is built and hosted by the
  vendor, not Runlayer. This guide covers connecting it through Runlayer for
  governance, policies, and audit.
</Info>

<Note>
  **Microsoft Agent 365 vs. Microsoft 365** — This page covers Microsoft's hosted **Agent 365 ("Work IQ")** MCP servers: near-zero setup (no Entra app registration) and the broadest coverage, including **Word and Copilot Search**. If you'd rather run Runlayer's first-party **Microsoft Graph** servers with your own Entra app and granular scope control, use [Microsoft 365](/servers/microsoft-365) instead.
</Note>

## Prerequisites

* Microsoft 365 admin access to enable Agent 365
* Access to your Runlayer instance

## Setup Steps

<Steps>
  <Step title="Enable Agent 365 Access">
    1. Navigate to [Microsoft Admin Center > Copilot Settings](https://admin.cloud.microsoft/?#/copilot/settings/UserAccess/:/CopilotSettings/Frontier)
    2. Under **Web apps**, enable access for all users or specific users
  </Step>

  <Step title="Find Your Environment ID">
    The Agent 365 servers require your Power Platform environment ID.

    1. Find your environment ID using [Microsoft's guide](https://learn.microsoft.com/en-us/power-platform/admin/determine-org-id-name?tabs=new)
    2. Save this for the next step
  </Step>

  <Step title="Add Server in Runlayer">
    1. In Runlayer, go to **My connectors** and click **Add connector**
    2. Find a Microsoft Agent 365 (Work IQ) server (e.g., Microsoft Teams (Work IQ), Microsoft Outlook Mail (Work IQ))
    3. Replace the placeholder environment ID in the URL with your actual environment ID
    4. Click **Create Hosted MCP**
    5. When prompted, sign in with your Microsoft 365 account to authorize access
  </Step>
</Steps>

<Note>
  No Azure AD app registration is required. Runlayer handles OAuth automatically using a shared multitenant application. Users just need to consent during the sign-in flow.
</Note>

## Available Servers

All Microsoft Agent 365 (Work IQ) servers share the same OAuth authorization:

| Server                                      | Tools |
| ------------------------------------------- | ----- |
| Microsoft Teams (Work IQ)                   | 25    |
| Microsoft Outlook Mail (Work IQ)            | 20    |
| Microsoft SharePoint and OneDrive (Work IQ) | 15    |
| Microsoft SharePoint Lists (Work IQ)        | 13    |
| Microsoft Outlook Calendar (Work IQ)        | 12    |
| Microsoft 365 User Profile (Work IQ)        | 6     |
| Microsoft Word (Work IQ)                    | 4     |
| Microsoft 365 Copilot Search (Work IQ)      | 1     |
| Microsoft 365 Admin Center (Work IQ)        | 1     |

## Troubleshooting

<Accordion title="'Approval required' or consent error during sign-in">
  Your Azure AD tenant may require admin consent for third-party apps:

  * Ask your Azure AD admin to grant tenant-wide consent for the Runlayer application
  * Alternatively, the admin can pre-approve the app in **Azure Portal > Enterprise Applications**
</Accordion>

<Accordion title="Agent 365 access not available">
  If Agent 365 servers return errors after setup:

  * Verify Agent 365 access is enabled in the Microsoft Admin Center (Step 1)
  * The API may take a few minutes to propagate after enabling access
</Accordion>

<Accordion title="Wrong environment ID">
  If you see connection errors:

  * Double-check your Power Platform environment ID
  * Ensure you're using the environment ID, not the tenant ID
  * See [Microsoft's guide](https://learn.microsoft.com/en-us/power-platform/admin/determine-org-id-name?tabs=new) for finding the correct ID
</Accordion>

## Next Steps

<CardGroup cols={2}>
  <Card title="OAuth Broker Guide" icon="key" href="/oauth-broker">
    Learn more about OAuth Broker
  </Card>

  <Card title="MCP Custom Servers" icon="server" href="/mcp-custom-servers">
    Create other custom MCP servers
  </Card>
</CardGroup>
