ms-teams-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ms-teams-mcplist all teams"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@anupam365/ms-teams-mcp
MCP server for Microsoft Teams via the Graph API. Exposes 73 tools for managing teams, channels, chats, messages, meetings, planner, calendar, apps, tabs, scheduling, search, and authentication.
Prerequisites
Node.js 18+
Microsoft 365 subscription with Teams enabled
Azure AD app registration with appropriate Graph API permissions
Related MCP server: Teams Messenger MCP App
Setup
1. Create an Azure AD App
Go to Azure Portal → App Registrations → New registration
Name it (e.g.,
Teams MCP), leave redirect URI blank, click RegisterCopy the Application (client) ID and Directory (tenant) ID
2. Add API Permissions
API Permissions → Add a permission → Microsoft Graph
Application permissions (for client-credentials auth):
Permission | Type | Required for |
| Application | Creating channels |
| Application | Deleting channels |
| Application | Reading channel metadata |
| Application | Reading channel messages |
| Application | Message policy |
| Application | Creating calendar events |
| Application | Creating teams |
| Application | Listing teams |
| Application | Updating teams |
| Application | Reading hidden memberships |
| Application | Creating online meetings |
| Application | Creating teams |
| Application | Reading team metadata |
| Application | Reading user info |
| Application | Basic user info |
Click Grant admin consent → Yes
Delegated permissions (for device-code auth):
Team.ReadBasic.All,Channel.ReadBasic.All,ChannelMessage.Send,ChannelMessage.Read.All,Member.Read.All,OnlineMeetings.ReadWrite.All,Calendars.ReadWrite,User.Read.All
3. Create a Client Secret
Certificates & secrets → Client secrets → New client secret → Copy the Value
Configuration
Via environment variables
TEAMS_TENANT_ID=your-tenant-id
TEAMS_CLIENT_ID=your-client-id
TEAMS_CLIENT_SECRET=your-client-secret
TEAMS_AUTH_MODE=client-credentialsFor device-code auth (interactive):
TEAMS_AUTH_MODE=device-code
# No TEAMS_CLIENT_SECRET neededFor direct token (bypasses OAuth flows):
TEAMS_AUTH_TOKEN=eyJ...
# TEAMS_TENANT_ID and TEAMS_CLIENT_ID not requiredRead-only mode (reduced scopes):
TEAMS_READ_ONLY=trueMCP Client Config (opencode.json)
{
"mcpServers": {
"microsoft-teams": {
"command": "npx",
"args": ["-y", "@anupam365/ms-teams-mcp"],
"env": {
"TEAMS_TENANT_ID": "...",
"TEAMS_CLIENT_ID": "...",
"TEAMS_CLIENT_SECRET": "...",
"TEAMS_AUTH_MODE": "client-credentials"
}
}
}
}Run
npx -y @anupam365/ms-teams-mcpTools
Teams (8)
Tool | Description |
| List all teams |
| Get team details |
| Create a new team |
| Update team metadata |
| Delete a team |
| Archive a team |
| Restore an archived team |
| Clone an existing team |
Channels (7)
Tool | Description |
| List channels in a team |
| Get channel details |
| Create a new channel |
| Update channel settings |
| Delete a channel |
| Archive a channel |
| Restore an archived channel |
Channel Members (3)
Tool | Description |
| List channel members |
| Add a user to a channel |
| Remove a user from a channel |
Channel Messages (5)
Tool | Description |
| Send a message (supports format, importance, @mentions) |
| List recent channel messages |
| Reply to a channel message |
| Edit an existing channel message |
| Delete a channel message |
Chats (8)
Tool | Description |
| List 1-on-1 and group chats |
| Get chat details |
| Create a new 1-on-1 or group chat |
| Send a chat message (supports format, importance) |
| List chat messages |
| List chat members |
| Add a user to a group chat |
| List tabs in a chat |
Chat Messages (2)
Tool | Description |
| Edit an existing chat message |
| Delete a chat message |
Apps & Tabs (7)
Tool | Description |
| List tenant app catalog |
| List apps installed in a team |
| Install an app in a team |
| Remove an app from a team |
| List tabs in a channel |
| Add a tab to a channel |
| Remove a tab from a channel |
Planner (4)
Tool | Description |
| List plans in a team |
| List buckets in a plan |
| List tasks in a plan |
| Create a new task |
Calendar & Meetings (7)
Tool | Description |
| List team calendar events |
| Create a team calendar event |
| Create event on a user's calendar |
| Get event details |
| Create a Teams meeting |
| Get meeting details |
| List upcoming meetings |
Presence & Settings (4)
Tool | Description |
| Get user presence status |
| Get team settings |
| Update team settings |
| List all team members |
Tags (3)
Tool | Description |
| List tags in a team |
| Create a new tag |
| Delete a tag |
Scheduling (6)
Tool | Description |
| List scheduling groups |
| List shifts |
| Create a shift |
| List time-off reasons |
| List time-off entries |
| List time-off requests |
Subscriptions (3)
Tool | Description |
| Create a webhook subscription |
| List active subscriptions |
| Delete a subscription |
Search & Users (3)
Tool | Description |
| Search users in the organization |
| Search across all Teams messages |
| Get messages where you are @mentioned |
Files (1)
Tool | Description |
| List files in a channel's folder |
Auth Management (2)
Tool | Description |
| Check authentication status and mode |
| Clear cached tokens and log out |
Auth Modes
Mode | Description | Best for |
| Direct AUTH_TOKEN env var | Testing, CI |
| App-only, no user interaction | Automated/headless use |
| Interactive browser login with persistent token cache | Personal/local use |
Token Persistence
In device-code mode, the auth record is saved to ~/.microsoft-teams-mcp/auth-record.json. On subsequent starts, the token is silently refreshed without re-prompting. If the refresh fails, the device-code prompt appears again.
Read-Only Mode
Set TEAMS_READ_ONLY=true to restrict Graph scopes to User.Read.All and Group.Read.All only. Write operations will fail.
Development
git clone <repo>
cd ms-teams-mcp
npm install
npm run dev # watch mode
npm run build # compileLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Anupam890/ms-teams-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server