# Microsoft Teams (TUI, CLI & MCP)

> Microsoft Teams (TUI, CLI & MCP) is an open-source MCP server for communication. Terminal TUI, CLI and MCP server for Microsoft Teams with a local searchable cache. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, API
- **Website:** https://bitefoundry.dev
- **Repository:** https://github.com/bitefoundry/teams
- **MCP Registry name:** io.github.BiteFoundry/teams
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-27

## About

Teams from the command line lets you read chats and channel threads, send Markdown messages, reply, edit posts you wrote and search conversations without leaving a shell. A single Rust binary provides an interactive terminal interface, a scriptable CLI with JSON output, a local HTTP API and a stdio MCP server exposing sixteen Teams tools to AI clients.

Conversations are kept in a bundled SQLite cache with full-text search, so previously synced history can be searched offline. Live reads, sends and edits go through Microsoft Graph using a delegated token from an Entra ID app, which your organization or a public Graph client provides.

It suits developers and operators who live in the terminal, and teams that want agents to read and post Teams messages with compact, bounded responses.

## Features

- **Interactive terminal interface:** A ratatui-based TUI with a command switcher, thread drawer, link extractor and inline image preview in supporting terminals.
- **Offline full-text search:** Synced conversations are stored in a local SQLite FTS5 cache, so searches work without a network connection.
- **Scriptable CLI with JSON:** Read, send, reply, edit and sync commands return JSON, with structured error objects on runtime failures.
- **Targeted message edits:** Find-and-replace edits change one exact occurrence in a post you sent while keeping links and mentions intact.
- **Local HTTP API:** An Axum server on loopback exposes conversations and messages to local clients behind a bearer token.
- **MCP server for agents:** A stdio MCP server provides sixteen Teams tools, including listing chats, reading threads and sending messages.
- **Flexible authentication:** Supports interactive sign-in, a token file, a bearer token environment variable and a refresh command.

## Good for

- Reading a busy channel thread from the terminal and replying without opening the browser
- Searching months of cached Teams conversations offline for a decision or link
- Posting build or release status messages from CI scripts using the CLI
- Letting a coding agent read a Teams thread and post an update through MCP
- Syncing deep chat history to a local cache for later review

## Install

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

```sh
claude mcp add teams -- docker run -i --rm ghcr.io/bitefoundry/teams:0.9.3
```

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": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "teams": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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 teams -- docker run -i --rm ghcr.io/bitefoundry/teams:0.9.3
```

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

```toml
[mcp_servers.teams]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/bitefoundry/teams:0.9.3"]
```

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

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user teams docker -- run -i --rm ghcr.io/bitefoundry/teams:0.9.3

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

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

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": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 16 tools deletes data and 6 change data. From the server's own tool labels and tool names; not verified by us.

- `list_chats` (name suggests: reads): List chats.
- `create_chat` (name suggests: changes): Create a chat.
- `update_chat` (name suggests: changes): Update a chat.
- `list_teams_channels` (name suggests: reads): List teams and channels.
- `get_messages` (name suggests: reads): Get messages from a conversation.
- `get_thread` (name suggests: reads): Get a channel thread.
- `send_message` (name suggests: changes): Send a message.
- `reply_message` (name suggests: changes): Reply to a message.
- `send_file` (name suggests: changes): Send a file.
- `download_attachment` (name suggests: reads): Download an attachment.
- `edit_message` (name suggests: changes): Edit a sent message.
- `delete_message` (name suggests: deletes): Delete a message.
- `search_messages` (name suggests: reads): Search messages.
- `list_members` (name suggests: reads): List conversation members.
- `search_users` (name suggests: reads): Search directory users.
- `get_presence` (name suggests: reads): Get presence status.

## FAQ

### How is the Teams data accessed?

Live reads, sends and edits use Microsoft Graph with a delegated token from a Microsoft Entra ID app. Cached search works offline.

### What MCP tools are included?

The server exposes sixteen tools: list_chats, create_chat, update_chat, list_teams_channels, get_messages, get_thread, send_message, reply_message, send_file, download_attachment, edit_message, delete_message, search_messages, list_members, search_users and get_presence.

### Which platforms does Microsoft Teams (TUI, CLI & MCP) run on?

It ships as prebuilt binaries for Windows, macOS and Linux via npm, and can also be built from source.

### Is Microsoft Teams (TUI, CLI & MCP) affiliated with Microsoft?

No. It is an unofficial client and is not endorsed by Microsoft.

### Is Microsoft Teams (TUI, CLI & MCP) free?

Yes. Microsoft Teams (TUI, CLI & MCP) is open source, so you can use and self-host it for free.

### How do I add Microsoft Teams (TUI, CLI & MCP) to Claude Code?

Run this command in your terminal: claude mcp add teams -- docker run -i --rm ghcr.io/bitefoundry/teams:0.9.3

### What are the best alternatives to Microsoft Teams (TUI, CLI & MCP)?

The closest alternatives to Microsoft Teams (TUI, CLI & MCP) are Microsoft Teams MCP, Microsoft Teams API, MCP Teams, Microsoft Outlook (TUI, CLI & MCP) and Microsoft Teams.

## Where this comes from

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

## Alternatives

- [Microsoft Teams MCP](https://ai-powered.com/mcp/microsoft-teams-mcp): Microsoft Teams MCP is an open-source MCP server for communication.
- [Microsoft Teams API](https://ai-powered.com/mcp/microsoft-teams-api): Microsoft Teams API is an MCP server for communication.
- [MCP Teams](https://ai-powered.com/mcp/mcp-teams): MCP Teams is an open-source MCP server for communication.
- [Microsoft Outlook (TUI, CLI & MCP)](https://ai-powered.com/mcp/microsoft-outlook-tui-cli-and-mcp): Microsoft Outlook (TUI, CLI & MCP) is an open-source MCP server for communication.
- [Microsoft Teams](https://ai-powered.com/mcp/microsoft-teams): Microsoft Teams is an open-source MCP server for communication.
- [Microsoft Teams](https://ai-powered.com/mcp/microsoft-teams-2): Microsoft Teams is an open-source MCP server for communication.
- [Microsoft 365 Teams](https://ai-powered.com/mcp/microsoft-365-teams): Microsoft 365 Teams is an MCP server for communication.
- [Teams](https://ai-powered.com/mcp/teams): Teams is an MCP server for communication.

---
Source: https://ai-powered.com/mcp/microsoft-teams-tui-cli-and-mcp
