Is the Microsoft Teams MCP server safe? What it can reach
What the Microsoft Teams MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Microsoft offers a Teams MCP server through Agent 365 and Copilot Studio, now in preview, with a tenant-specific URL and the McpServers.Teams.All scope. It can read and post chats and channel messages, create channels and change members, as the signed-in user. Microsoft says to use Work IQ for new projects. The popular community option is teams-mcp.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Microsoft Teams MCP server (mcp_TeamsServer, Agent 365 and Copilot Studio, preview) | Official | active |
| teams-mcp (community, floriscornel) | Community | active |
It runs as a hosted remote server. The documented endpoint is https://agent365.svc.cloud.microsoft/agents/tenants/{tenantId}/servers/mcp_TeamsServer.
How it signs in
Microsoft’s page lists the McpServers.Teams.All scope and tool endpoints that map to Microsoft Graph calls, but does not describe the sign-in flow. Expect it to act with the rights of the signed-in user, and confirm that in your tenant. The community teams-mcp uses a Microsoft Graph device code sign-in and requests its own delegated scopes.
| Scope or permission | Access |
|---|---|
McpServers.Teams.All | write |
What its tools can do
| Kind | Tools |
|---|---|
| Read | mcp_graph_chat_getChat, mcp_graph_chat_getChatMessage, mcp_graph_chat_listChatMembers, mcp_graph_chat_listChatMessages, mcp_graph_chat_listChats, mcp_graph_teams_getChannel, mcp_graph_teams_getTeam, mcp_graph_teams_listChannelMembers, mcp_graph_teams_listChannelMessages, mcp_graph_teams_listChannels, mcp_graph_teams_listTeams |
| Write | mcp_graph_chat_addChatMember, mcp_graph_chat_createChat, mcp_graph_chat_updateChat, mcp_graph_chat_updateChatMessage, mcp_graph_teams_addChannelMember, mcp_graph_teams_createChannel, mcp_graph_teams_createPrivateChannel, mcp_graph_teams_updateChannel, mcp_graph_teams_updateChannelMember |
| Can’t be undone | mcp_graph_chat_deleteChat, mcp_graph_chat_deleteChatMessage, mcp_graph_chat_postMessage, mcp_graph_teams_postChannelMessage, mcp_graph_teams_replyToChannelMessage |
These are the Microsoft preview tool names, which Microsoft says may change. Microsoft limits the application-specific Microsoft 365 MCP tools to backward compatibility and points new projects to Work IQ MCP. Posting messages is listed as destructive because a sent message reaches other people and the docs say not to retry it blindly. Deletes are soft deletes, and tenant retention rules may keep the content.
Built-in limits
| Option | What it does |
|---|---|
TEAMS_MCP_READ_ONLY=true (community teams-mcp) | The community server starts read-only, requests fewer Graph scopes and turns off 15 write tools. |
TEAMS_MCP_SCOPES (community teams-mcp) | Overrides the Graph scopes the community server requests. |
The risks
- Chat and channel messages come from coworkers and outsiders, so an injected instruction in a message could make the model post, reply or add members under your name.
- mcp_graph_chat_postMessage and mcp_graph_teams_postChannelMessage send real messages that other people read immediately, and the docs warn against blind retries.
- The server can add members to chats and private channels and change channel roles, which can widen who sees sensitive conversations.
- Microsoft marks this server as preview and backward compatibility only, and may change tool names and parameters without notice.
Limit it in Claude Code
Claude Code names MCP tools mcp__microsoft-teams__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__microsoft-teams__mcp_graph_chat_deleteChat",
"mcp__microsoft-teams__mcp_graph_chat_deleteChatMessage",
"mcp__microsoft-teams__mcp_graph_chat_addChatMember",
"mcp__microsoft-teams__mcp_graph_teams_addChannelMember",
"mcp__microsoft-teams__mcp_graph_teams_updateChannelMember"
],
"ask": [
"mcp__microsoft-teams__mcp_graph_chat_postMessage",
"mcp__microsoft-teams__mcp_graph_teams_postChannelMessage",
"mcp__microsoft-teams__mcp_graph_teams_replyToChannelMessage",
"mcp__microsoft-teams__mcp_graph_chat_createChat",
"mcp__microsoft-teams__mcp_graph_teams_createChannel",
"mcp__microsoft-teams__mcp_graph_teams_createPrivateChannel",
"mcp__microsoft-teams__mcp_graph_chat_updateChatMessage",
"mcp__microsoft-teams__mcp_graph_teams_updateChannel"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml under [mcp_servers.<name>]. Use enabled_tools to keep only the tools you need, or disabled_tools to remove the risky ones.
Checklist
- Ask your Teams admin which permissions the server gets before you connect it.
- Start with read tools and add posting only for named channels.
- Read every message the model drafts before you approve it.
- Use the community server’s read-only mode if you only need search.
- Plan a move to Work IQ MCP if you start a new project.
Checked against the vendor documentation on November 25, 2026. Microsoft Learn: Teams reference (preview), Copilot Studio · floriscornel/teams-mcp README
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing