---
title: "Microsoft Teams Integration"
description: "Collaborate in Teams channels and chats using Microsoft Graph — teams, channels, messages, and profile."
---
The Microsoft Teams integration provides access to collaborate in Teams channels and chats using Microsoft Graph — teams, channels, messages, and profile. through the Integrate MCP server.

## Installation

The Microsoft Teams integration is included with the SDK:

```typescript
import { teamsIntegration } from "integrate-sdk/server";
```

## Setup

### 1. Create a Microsoft Teams OAuth App

1. Go to [Azure Portal — App Registrations](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps)
2. Create a new OAuth application
3. Configure your redirect URI
4. Note your Client ID and Client Secret

### 2. Configure the Integration on Your Server

Add the Microsoft Teams integration to your server configuration. The integration automatically reads `TEAMS_CLIENT_ID` and `TEAMS_CLIENT_SECRET` from your environment variables:

```typescript
import { createMCPServer, teamsIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    teamsIntegration({
      scopes: ["offline_access", "User.Read", "Team.ReadBasic.All", "Channel.ReadBasic.All", "ChannelMessage.Read.All", "ChannelMessage.Send", "Chat.Read", "Chat.ReadWrite"], // Optional
    }),
  ],
});
```

You can override the environment variables by passing explicit values:

```typescript
teamsIntegration({
  clientId: process.env.CUSTOM_TEAMS_ID,
  clientSecret: process.env.CUSTOM_TEAMS_SECRET,
      scopes: ["offline_access", "User.Read", "Team.ReadBasic.All", "Channel.ReadBasic.All", "ChannelMessage.Read.All", "ChannelMessage.Send", "Chat.Read", "Chat.ReadWrite"], // Optional
});
```

### 3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

```typescript
import { client } from "integrate-sdk";

await client.authorize("teams");
const result = await client.teams.getChannel({});

console.log(result);
```

If you're using a custom client, add the integration to the integrations array:

```typescript
import { createMCPClient, teamsIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [teamsIntegration()],
});
```

## Configuration Options

<AutoTypeTable
  path="../src/integrations/teams.ts"
  name="TeamsIntegrationConfig"
/>


## Default Scopes

These defaults are applied unless you override `scopes` in the integration config:

- `offline_access`
- `User.Read`
- `Team.ReadBasic.All`
- `Channel.ReadBasic.All`
- `ChannelMessage.Read.All`
- `ChannelMessage.Send`
- `Chat.Read`
- `Chat.ReadWrite`

## Tools

### `teams_get_channel`

Get channel

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsGetChannelParams"
/>

### `teams_get_chat`

Get chat

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsGetChatParams"
/>

### `teams_get_profile`

Get profile

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsGetProfileParams"
/>

### `teams_get_team`

Get team

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsGetTeamParams"
/>

### `teams_list_channel_messages`

List channel messages

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsListChannelMessagesParams"
/>

### `teams_list_channels`

List channels

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsListChannelsParams"
/>

### `teams_list_chat_messages`

List chat messages

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsListChatMessagesParams"
/>

### `teams_list_chats`

List chats

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsListChatsParams"
/>

### `teams_list_teams`

List teams

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsListTeamsParams"
/>

### `teams_reply_channel_message`

Reply channel message

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsReplyChannelMessageParams"
/>

### `teams_send_channel_message`

Send channel message

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsSendChannelMessageParams"
/>

### `teams_send_chat_message`

Send chat message

<AutoTypeTable
  path="generated/tool-params/teams.ts"
  name="TeamsSendChatMessageParams"
/>

## Notes

- Category: Communication
- Authentication mode: OAuth
