Skip to content
MCP server

Microsoft Teams (TUI, CLI & MCP)

Terminal TUI, CLI and MCP server for Microsoft Teams with a local searchable cache

Runs locally

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

Pricing
Open source
Platforms
CLI, macOS, Windows
Runs
Locally
What it can do
Can delete data (1 tool)
Version
0.9.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add teams -- docker run -i --rm ghcr.io/bitefoundry/teams:0.9.3

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "teams": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/bitefoundry/teams:0.9.3"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • TEAMS_CLIENT_IDMicrosoft Entra ID (Azure AD) desktop application client ID.
  • TEAMS_TENANT_IDMicrosoft Entra tenant ID or 'organizations' / 'common'.
  • TEAMS_TOKEN_FILEPath to a file containing a Microsoft Graph bearer token (read live on demand).

About Microsoft Teams (TUI, CLI & MCP)

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.

Tools this server provides (16)

Taken from the project documentation; the running server may differ.

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_chatsName suggests: reads
List chats.
create_chatName suggests: changes
Create a chat.
update_chatName suggests: changes
Update a chat.
list_teams_channelsName suggests: reads
List teams and channels.
get_messagesName suggests: reads
Get messages from a conversation.
get_threadName suggests: reads
Get a channel thread.
send_messageName suggests: changes
Send a message.
reply_messageName suggests: changes
Reply to a message.
send_fileName suggests: changes
Send a file.
download_attachmentName suggests: reads
Download an attachment.
edit_messageName suggests: changes
Edit a sent message.
delete_messageName suggests: deletes
Delete a message.
search_messagesName suggests: reads
Search messages.
list_membersName suggests: reads
List conversation members.
search_usersName suggests: reads
Search directory users.
get_presenceName suggests: reads
Get presence status.

What it does

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

Pricing

Open source

Free and MIT licensed

Prices change. Check bitefoundry.dev before you buy.

Microsoft Teams (TUI, CLI & MCP) 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 Teams and Microsoft Outlook (TUI, CLI & MCP).

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.

How AIPoweredBot checks servers