# Microsoft 365 Teams

> Microsoft 365 Teams is an MCP server for communication. Read and send Microsoft Teams chats and channel messages through Microsoft Graph. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** API, Self-hosted, Microsoft Teams
- **Repository:** https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/microsoft-teams
- **MCP Registry name:** io.github.mindstone/mcp-server-microsoft-teams
- **Categories:** [communication](https://ai-powered.com/categories/communication), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

It is one of a five-connector Microsoft 365 set from Mindstone, sharing a single sign-in with the mail server so Teams, mail, calendar, files and SharePoint need no separate OAuth flows. This server does not run OAuth itself: a host app signs in and writes token files that it reads from a config directory.

The 17 tools cover chats, threaded replies, creating 1:1 or group chats, user lookup, keyword search across chat and channel messages, teams and channels, and presence. One tool opens an editable compose form first, so a person clicks Send before anything posts.

It needs Node.js 20+, a Microsoft Entra client ID and that config directory. The README's example asks for the last 10 messages in a project chat; the host lists chats by participant and then reads the messages.

## Features

- **Chat access:** List chats and read recent messages.
- **Send and reply:** Post messages, threaded replies and start new chats.
- **Compose form:** Opens an editable form before sending.
- **Teams and channels:** List teams, channels and channel messages.
- **Message search:** Keyword search across chats and channels.
- **Shared sign-in:** Reuses credentials from the Microsoft mail server.

## Good for

- Summarise a project chat
- Find a colleague by name or email
- Reply in a thread
- Search messages for a keyword
- Check someone's presence

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server-microsoft-teams --env MS_CLIENT_ID='<MS_CLIENT_ID>' --env MS_CONFIG_DIR='<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teams
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server-microsoft-teams --env MS_CLIENT_ID='<MS_CLIENT_ID>' --env MS_CONFIG_DIR='<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teams
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server-microsoft-teams]
command = "npx"
args = ["-y", "@mindstone/mcp-server-microsoft-teams"]
env = { MS_CLIENT_ID = "<MS_CLIENT_ID>", MS_CONFIG_DIR = "<MS_CONFIG_DIR>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MS_CLIENT_ID='<MS_CLIENT_ID>' -e MS_CONFIG_DIR='<MS_CONFIG_DIR>' mcp-server-microsoft-teams npx -- -y @mindstone/mcp-server-microsoft-teams

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server-microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-microsoft-teams"
      ],
      "env": {
        "MS_CLIENT_ID": "<MS_CLIENT_ID>",
        "MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 12 tools change data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `list_chats` (name suggests: reads): Lists recent Teams chats.
- `get_chat` (name suggests: reads): Gets details about a chat.
- `list_chat_messages` (name suggests: reads): Lists recent messages from a chat.
- `send_chat_message` (name suggests: changes): Sends a message to a chat.
- `reply_to_message` (name suggests: changes): Replies to a specific message in a thread.
- `compose_chat_message`: Opens an editable compose form before sending.
- `find_user` (name suggests: reads): Looks up people by display name or email.
- `create_chat` (name suggests: changes): Creates a 1:1 or group chat.
- `search_messages` (name suggests: reads): Searches chat and channel messages by keyword.
- `list_teams` (name suggests: reads): Lists teams you belong to.
- `list_channels` (name suggests: reads): Lists channels in a team.
- `list_channel_messages` (name suggests: reads): Lists recent messages in a channel.

## FAQ

### Does Microsoft 365 Teams handle sign-in?

No. A host application performs OAuth and writes token files that the server reads.

### What runtime does Microsoft 365 Teams need?

Node.js 20 or newer.

### Which variables are required?

MS_CLIENT_ID and MS_CONFIG_DIR.

### How many tools?

17.

### How do I add Microsoft 365 Teams to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-microsoft-teams --env MS_CLIENT_ID='<MS_CLIENT_ID>' --env MS_CONFIG_DIR='<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teams

### What are the best alternatives to Microsoft 365 Teams?

The closest alternatives to Microsoft 365 Teams are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Dayfile.app](https://ai-powered.com/mcp/dayfile-app): Dayfile.app is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/microsoft-365-teams
