Microsoft Teams in the Terminal — Rust TUI, CLI & MCP Server
Replace the 1.2 GB Teams desktop client with a ~33 MB native Rust binary. Read channels and chats interactively, search offline via SQLite FTS5, and connect Claude Code, Codex, or Cursor over 16 MCP tools.
$npm i -g @bitefoundry/teams
$brew install bitefoundry/tap/teams # or: curl -fsSL https://bitefoundry.dev/i | sh -s teams
Key Capabilities
~37× Less RAM than Desktop
Runs in ~33 MB RAM (24.5 MiB native binary) compared to ~1,240 MB for the WebView2/Electron Teams client, with lock-free TUI input and neighbor thread prefetch.
16-Tool MCP Server (Glama Grade A)
Expose Teams chats, channels, threads, and local FTS5 search directly to Claude Code, OpenAI Codex, Cursor, OpenCode, and any stdio MCP client.
Inline Media, HTML & SVG Preview
View shared images in high resolution, render HTML/Markdown messages cleanly, and inspect code blocks without leaving your terminal.
Offline Local SQLite WAL + FTS5
Background IPC sync daemon mirrors conversations locally so search, jumping threads, and agent queries stay instant and token-efficient.
Quickstart & MCP Agent Setup
teams # Launch interactive Ratatui TUI
teams auth login # Authenticate via Microsoft Graph (OS keychain)
teams search "release" --json # Instant local SQLite FTS5 full-text search
teams mcp # Start 16-tool stdio MCP server for AI agents
{
"mcpServers": {
"teams": {
"command": "teams",
"args": [
"mcp"
]
}
}
}
Representative MCP tools (io.github.BiteFoundry/teams): list_chats, get_messages, get_thread, send_message, search_messages, list_teams_channels.
BiteFoundry Teams vs. Traditional Desktop / Web Client
| Dimension | BiteFoundry Teams (Rust) | Electron / Browser Client |
|---|---|---|
| Memory usage | ~33 MB RAM | ~1,240 MB RAM (WebView2/Electron) |
| Startup time | Sub-second native binary | 5–12 seconds |
| AI Agent integration | Built-in 16-tool stdio MCP + --json CLI | Requires fragile browser scraping or manual copy/paste |
| Offline search | Local SQLite FTS5 instant search | Cloud-dependent |
| Credential storage | OS keychain (Windows/macOS/Linux) | Browser profile storage |
Frequently Asked Questions
How do I use Microsoft Teams from the terminal or with Claude Code?
Install @bitefoundry/teams via npm (npm i -g @bitefoundry/teams) or GitHub Releases, run `teams auth login`, then run `teams` for the interactive TUI or register `teams mcp` in your Claude Code, Cursor, or Codex MCP configuration.
Does BiteFoundry Teams require admin approval or custom Azure apps?
It authenticates through standard Microsoft Graph OAuth flows and stores tokens strictly in your local OS keychain. No third-party cloud relay or intermediate server is used.
What MCP tools does @bitefoundry/teams provide?
It ships 16 stdio MCP tools covering chat listing, channel browsing, thread reads, full-text local search, message sending/replies, and compact JSON outputs optimized for LLM context windows.
Which operating systems are supported?
Prebuilt native binaries are published for Windows (x64/ARM64), macOS (Apple Silicon & Intel), and Linux (x64/ARM64, GLIBC 2.28+).