Microsoft Teams MCP Server
Connect Claude to Microsoft Teams — read/send messages, list channels, search chats.
Microsoft Teams scores 32 (Limited), licensed MIT and written in TypeScript. It installs as a local process. It declares 11 tools. Filed under Communication. GitHub shows 2 stars. Package registries report about 75 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
32 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: 3 of 11 tools barely described, short summary.
How quality is graded
Where the 32 comes from
0 + 6 + 5 + 10 + 4 + 7 = 32. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 5 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "surgeenterpriseai-teams-mcp-server": { "command": "npx", "args": [ "-y", "microsoft-teams-mcp-server@1.0.2" ] } }}
Environment variables
This server does not declare environment variables.
Tools11Tool docs quality grade C
All capabilitiesGet your Microsoft 365 profile
List channels in a team
teams_list_chatstoolList your DMs and group chats
teams_list_teamstoolList all your Teams
Read recent channel messages
Read messages from a chat
Read thread replies
Reply in a channel thread
Search messages across all Teams
Send a message to a channel
Send a direct/group chat message
About
Teams MCP Server
Let Claude read and send your Microsoft Teams messages. An open-source MCP server that connects Claude Code, Claude Desktop and Claude Cowork to Microsoft Teams: list your teams and channels, read channel and chat messages, search across Teams, and post or reply — all by asking Claude in plain English.
- What it does: gives Claude 11 Teams tools through Microsoft Graph, using your own Microsoft 365 sign-in. Claude sees only what you can already see in Teams. Messages pass through; nothing is stored except your sign-in token on your machine.
- Who it's for: people who live in Teams and use Claude — developers, team leads, support and ops people who want "summarise #standup since Monday" or "reply to Priya's question in #release" without switching windows. Also teams that want to host one shared Teams connector for everyone in their company.
- Cost: free and MIT-licensed. You need a Microsoft 365 work or school account and permission to register an app in Azure (or an admin who does it for you once).
▶ Watch the 76-second walkthrough: Teams MCP Server — how it works (captions on; transcript)
Install in 3 steps (Claude Code, on your own computer)
- Register an app in Azure (5 minutes, once). Azure Portal → App registrations → New registration → any name, Accounts in any organizational directory, redirect URI type Web =
http://localhost:3333/callback. Then add a client secret and the delegated Microsoft Graph permissions listed in Azure AD App Registration below. Copy the client ID and secret. - Add the server to Claude:
claude mcp add teams -e TEAMS_CLIENT_ID=<your-client-id> -e TEAMS_CLIENT_SECRET=<your-secret> -- npx -y microsoft-teams-mcp-server - Sign in once. Start Claude and ask "List my Teams." A browser window opens; sign in with your Microsoft work account. Done — the token is cached, so you won't be asked again.
Using Claude Desktop instead? Put the same command and env in claude_desktop_config.json (see Claude Desktop). Want one server for your whole company? See Self-host.
Using it (plain English)
You don't call the tools yourself — you just ask Claude, and Claude picks the right one. Things you can say:
| You say | What happens |
|---|---|
| "Which Teams am I in?" | Lists your teams. |
| "What channels does the Platform team have?" | Lists that team's channels. |
| "Summarise what happened in #standup today." | Reads recent channel messages and summarises them. |
| "Show me the replies to Ravi's deploy message." | Reads a thread's replies. |
| "Find every message that mentions the invoice bug." | Searches across all your Teams. |
| "What did Anita say in our chat yesterday?" | Lists your chats and reads the one with Anita. |
| "Post 'Release 4.2 is live' in #announcements." | Sends a channel message. |
| "Reply in that thread: 'Fixed in PR 812.'" | Replies in a channel thread. |
| "Send Anita a chat: 'Running 10 minutes late.'" | Sends a chat message. |
Good to know:
- Your access, nothing more. Claude uses your sign-in, so it can only see teams, channels and chats you're in. Each person who connects signs in with their own account.
- You approve what gets sent. Claude asks permission before each tool call unless you've allowed that tool. A good setup: allow the read and search tools, and keep the three send/reply tools on "ask" so you see every message before it posts.
- Sign-in lasts. The token is saved in
.data/tokens(local) and refreshed silently. Delete that folder to sign out. - Search needs a work account. Microsoft search across Teams doesn't work for personal Microsoft accounts.
- If something fails, ask Claude "what was the error?" — the server returns Microsoft's own message (for example, a missing permission or admin consent).
How It Works
┌─────────────┐ Click "Connect" ┌──────────────────────┐
│ Claude User │ ──────────────────────► │ Teams MCP Server │
│ (Cowork/ │ │ (hosted by you or │
│ Desktop/ │ SSE/MCP Protocol │ your company) │
│ Code) │ ◄─────────────────────► │ ┌────────────────┐ │
└─────────────┘ │ │ OAuth (common) │ │
│ │ Any M365 user │ │
User signs in with their │ │ can sign in │ │
own Microsoft account │ └───────┬────────┘ │
─────────────────────► │ │ │
│ ┌───────▼────────┐ │
│ │ Microsoft │ │
│ │ Graph API │ │
│ └────────────────┘ │
└──────────────────────┘
The user connects their own Microsoft 365 account. They see their own teams, their own channels, their own messages. Each user's tokens are isolated. The server is the bridge — it never stores messages, just passes them through.
Features
- One-click connect — visit
/connect, sign in with Microsoft, done - Multi-tenant — any Microsoft 365 organization, any user
- 11 tools — teams, channels, messages, chats, search, profile
- Dual transport — STDIO for Claude Code, HTTP/SSE for Cowork & remote
- Multi-user — each session gets isolated OAuth tokens
- Auto-detect — picks the right transport based on launch method
- Token caching — silent refresh, no re-login every session
- Retry logic — automatic retries on throttled Graph API calls
- TypeScript — fully typed, clean architecture, MIT licensed
For Users: Connect in 1 Click
If someone is already hosting this server for your company:
- Claude asks you to connect Microsoft Teams
- You click the auth link
- Sign in with your Microsoft work account
- Done — Claude can now read your Teams
No API keys, no Azure portal, no setup.
For Developers: Self-Host
1. Clone & Install
git clone https://github.com/SurgeEnterpriseAI/teams-mcp-server.git
cd teams-mcp-server
npm install
npm run build
2. Azure AD App Registration
- Go to Azure Portal → App registrations → New registration
- Name:
Teams MCP Server - Supported account types: "Accounts in any organizational directory (Any Azure AD directory - Multitenant)"
- Redirect URI: Web →
https://your-server.com/auth/callback(hosted) and/orhttp://localhost:3333/callback(local STDIO sign-in) - Click Register
Configure:
- Certificates & secrets → New client secret → copy the Value
- API Permissions → Add Delegated (Microsoft Graph):
ChannelMessage.Read.All,ChannelMessage.SendChat.Read,Chat.ReadWrite,ChatMessage.SendTeam.ReadBasic.All,Channel.ReadBasic.AllUser.Read
- Click Grant admin consent (for your own tenant; other tenants consent on first login)
3. Configure & Deploy
cp .env.example .env
# Set TEAMS_CLIENT_ID, TEAMS_CLIENT_SECRET
# Set BASE_URL and REDIRECT_URI to your production URL
# TEAMS_AUTHORITY=common (multi-tenant, default)
Deploy to Railway, Render, Azure App Service, or any Node.js host:
# Railway
railway login && railway init && railway up
# Or Azure
az webapp up --name teams-mcp-server --runtime "NODE:20-lts"
# Or just run directly
TRANSPORT_MODE=http node dist/index.js
4. Submit to MCP Registry
Once deployed and tested, submit your server URL to Anthropic's MCP connector registry. Users will then see "Microsoft Teams" as a connect option in Claude Cowork — just like Slack and Gmail.
For Claude Code Users: Local STDIO Mode
Quickest: claude mcp add as in Install in 3 steps. Or add to your .mcp.json from a clone:
{
"mcpServers": {
"teams": {
"command": "node",
"args": ["/path/to/teams-mcp-server/dist/index.js"],
"cwd": "/path/to/teams-mcp-server"
}
}
}
First run will open your browser for Microsoft login. After that, tokens are cached.
Claude Desktop
In claude_desktop_config.json:
{
"mcpServers": {
"teams": {
"command": "npx",
"args": ["-y", "microsoft-teams-mcp-server"],
"env": {
"TEAMS_CLIENT_ID": "<your-client-id>",
"TEAMS_CLIENT_SECRET": "<your-secret>",
"TRANSPORT_MODE": "stdio"
}
}
}
}
Available Tools
| Tool | What it does |
|---|---|
teams_list_teams | List all your Teams |
teams_list_channels | List channels in a team |
teams_read_channel_messages | Read recent channel messages |
teams_send_channel_message | Send a message to a channel |
teams_reply_to_message | Reply in a channel thread |
teams_read_message_replies | Read thread replies |
teams_list_chats | List your DMs and group chats |
teams_read_chat_messages | Read messages from a chat |
teams_send_chat_message | Send a direct/group chat message |
teams_search_messages | Search messages across all Teams |
teams_get_profile | Get your Microsoft 365 profile |
Architecture
src/
├── index.ts Main entry (auto-detects transport)
├── config.ts Central configuration
├── logger.ts Structured logging
├── types.ts TypeScript interfaces
├── sessions.ts Multi-user session manager
├── auth/
│ ├── oauth.ts MSAL OAuth (multi-tenant, per-user)
│ └── token-store.ts Persistent token cache
├── graph/
│ ├── client.ts Graph HTTP client with retries
│ ├── teams.ts Teams & channels API
│ ├── messages.ts Channel messages API
│ ├── chats.ts DM & group chat API
│ └── search.ts Search & profile API
├── mcp/
│ ├── server.ts MCP server factory
│ └── tools/ 11 tool definitions
├── transport/
│ ├── stdio.ts STDIO (Claude Code)
│ └── http.ts Express + SSE (Cowork / remote)
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
TEAMS_CLIENT_ID | Yes | — | Azure AD app client ID |
TEAMS_CLIENT_SECRET | Yes | — | Azure AD client secret |
TEAMS_AUTHORITY | No | common | common for multi-tenant, or a specific tenant ID |
TRANSPORT_MODE | No | auto | auto, stdio, or http |
PORT | No | 3000 | HTTP server port |
BASE_URL | No | http://localhost:3000 | Public URL |
REDIRECT_URI | No | {BASE_URL}/auth/callback | OAuth callback URL |
TOKEN_STORE_PATH | No | ./.data/tokens | Token cache directory |
LOG_LEVEL | No | info | Logging level |
For AI assistants
A short, structured summary for LLMs and AI search lives in docs/llms.md.
License
MIT — LICENSE
Contributing
Issues and PRs welcome. Built by SurgeEnterpriseAI — Surge Software Solutions, Bengaluru.
Frequently asked questions
What is Microsoft Teams MCP Server?
Connect Claude to Microsoft Teams — read/send messages, list channels, search chats.
How do I install Microsoft Teams MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Microsoft Teams MCP Server runs locally from the npm package microsoft-teams-mcp-server with the command npx -y microsoft-teams-mcp-server@1.0.2.
Is Microsoft Teams MCP Server free and open source?
Yes. Microsoft Teams MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Microsoft Teams MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Microsoft Teams MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Microsoft Teams MCP Server provide?
Microsoft Teams MCP Server provides 11 tools, including teams_get_profile, teams_list_channels, teams_list_chats, and teams_list_teams. See the full tool list for descriptions and parameters.
How is Microsoft Teams MCP Server's trust score calculated?
Microsoft Teams MCP Server scores 32 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
