Skip to main content
MCP server CX Codex

Microsoft 365 Teams — Claude Code MCP server: features and setup

This MCP server lets an agent work with Teams chats, channel messages, and presence through Microsoft Graph. Use it to search conversations or send replies from your coding host.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env MS_CLIENT_ID=<MS_CLIENT_ID> --env MS_CONFIG_DIR=<MS_CONFIG_DIR> --env MS_ACCOUNT_EMAIL=<MS_ACCOUNT_EMAIL> --env MS_MCP_PACKAGE_ID=<MS_MCP_PACKAGE_ID> --env MICROSOFT_REQUEST_TIMEOUT_MS=<MICROSOFT_REQUEST_TIMEOUT_MS> --transport stdio microsoft-teams -- npx -y @mindstone/mcp-server-microsoft-teams
Open on GitHub

What Microsoft 365 Teams does

The server can list chats and channel messages, start chats, send messages and replies, find colleagues, search message content, and read or change presence. Its Teams operations use Microsoft Graph.

A host application handles Microsoft OAuth and writes account credentials to files under MS_CONFIG_DIR; the server reads those files rather than starting sign-in itself. This means the host must complete authentication before the server can use the account. You also need Node.js 20+ and npm, and some Teams Graph APIs may require tenant administrator approval.

What it helps with

  • find conversations involving specific participants
  • read recent messages from a chat or channel
  • send a Teams message or reply
  • start a chat with a colleague
  • read or update presence

Example prompts for the agent

  • Find the project chat with Alice and Bob, then show its latest messages.
  • Reply in the Teams channel that the updated forecast is ready.
  • Check my current Microsoft Teams presence.

How to install Microsoft 365 Teams

Platform CLI

claude mcp add --env MS_CLIENT_ID=<MS_CLIENT_ID> --env MS_CONFIG_DIR=<MS_CONFIG_DIR> --env MS_ACCOUNT_EMAIL=<MS_ACCOUNT_EMAIL> --env MS_MCP_PACKAGE_ID=<MS_MCP_PACKAGE_ID> --env MICROSOFT_REQUEST_TIMEOUT_MS=<MICROSOFT_REQUEST_TIMEOUT_MS> --transport stdio microsoft-teams -- npx -y @mindstone/mcp-server-microsoft-teams

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Microsoft 365 Teams

How do I install Microsoft 365 Teams in Claude Code?

Run `claude mcp add mcp-server-microsoft-teams -e MS_CLIENT_ID=<MS_CLIENT_ID> -e MS_CONFIG_DIR=<MS_CONFIG_DIR> -- npx -y @mindstone/mcp-server-microsoft-teams. The host application must handle OAuth and store the account files under MS_CONFIG_DIR`.

What does Microsoft 365 Teams do?

It gives an agent tools for Teams chats and messages, colleague and message search, and presence lookup or updates through Microsoft Graph.

Does the MCP server perform Microsoft sign-in?

No. The host application runs OAuth and stores the credentials; the server reads those files. Some Teams Graph operations may also need tenant admin approval.

Similar MCP servers

Everything for Office documents →

From the same set24

PandaDoc Wires PandaDoc into your coding agent: build documents from templates, send them for signing, pull PDFs back. Useful when contracts live in PandaDoc. CX Codex +1 ★ 13repo stars OpusClip This MCP server connects OpusClip to an agent for turning long videos into clips, handling projects, and sending social posts. CX Codex +1 ★ 13repo stars OpenAI Image An MCP server that hands your agent two tools: turn a text prompt into an image, or edit one you already have, through Anthropic. CX Codex +1 ★ 13repo stars Nano Banana An MCP server that hands your agent image generation and editing through Google Gemini. Useful when a picture has to come out of the coding session itself. CX Codex +1 ★ 13repo stars Microsoft 365 SharePoint An MCP server that gives your agent SharePoint through Microsoft Graph: find sites, read libraries and lists, search content, and create sharing links. CX Codex +1 ★ 13repo stars Microsoft 365 Files This MCP server connects OneDrive to AI coding hosts through Microsoft Graph for file search, reading, transfers, and sharing links. CX Codex +1 ★ 13repo stars Microsoft 365 Calendar Brings the Outlook calendar from Microsoft 365 into your coding agent: read events, create and edit meetings, find free slots. Handy when you plan the day from the chat window. CX Codex +1 ★ 13repo stars Humaans Connects Humaans to an MCP host so an agent can work with people, roles, time away, offices, and company records. It requires an API key. CX Codex +1 ★ 13repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor