msteams-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
msteams-mcp
A small, self-hosted MCP server for Microsoft Teams that lets an AI assistant (VS Code Copilot Chat, Claude, …) read your own Teams chats — with least privilege, on your machine, under your own Entra app.
Delegated only — acts as the signed-in user; sees only what that user sees (
/me/...).Read-only — v0.1 has 4 read tools; the Graph client is GET-only.
Your own app registration — single tenant, no secret, no application permissions, assigned users only.
Local — HTTP on
127.0.0.1with a bearer token (or stdio). No telemetry.Auditable — one log line per request (account, client, tool, result) without message content.
Extensible — new Teams capabilities are added as separate tools with declared scopes (roadmap).
⚠️ Data leaves your machine through your AI client. Tool results — including Teams message text — are sent to the AI model your MCP client uses (usually a cloud service). Review docs/DATA-FLOW.md before using it with organizational data.
Tools (v0.1)
Tool | What it returns | Scope |
| Which account the server acts as, granted scopes, token expiry | – |
| Your profile |
|
| Your chats (1:1, group, meeting), members, last message preview; filter by type / text |
|
| Messages of one of your chats as plain text; limit, time window, sender filter, order |
|
Related MCP server: Teams MCP
Quick start
Requirements: Node.js 20+, an Entra app registration (docs/ENTRA-SETUP.md).
git clone https://github.com/anielyavuz/msteamsMCP.git && cd msteamsMCP
npm ci --ignore-scripts
cp .env.example .env && chmod 600 .env # set TENANT_ID, CLIENT_ID, MCP_ACCESS_TOKEN
npm run login # device code sign-in
npm start # http://127.0.0.1:3978/mcp
npm run selftest -- --live # second terminal: security + live checksThen add the server to your MCP client (docs/OPERATIONS.md).
How it works
AI client ──HTTP 127.0.0.1 + Bearer──▶ msteams-mcp ──HTTPS, delegated token──▶ Microsoft Graph (/me/chats…)
│ │
└──▶ AI model provider (cloud) └── token cache 0600, audit log (no content)Details: docs/ARCHITECTURE.md (modules, functions, flows, adding a tool).
Documentation
Document | For |
Security/privacy review: what data goes where, incl. the AI provider | |
Controls, limitations, reporting vulnerabilities | |
App registration, permissions, restricting users | |
Commands, configuration, clients, logs, troubleshooting | |
Components, functions, request and sign-in flows | |
Planned tools and the review rule for each | |
Adım adım kurulum (Türkçe) |
License
MIT © 2026 Anıl Yavuz. Dependencies: @modelcontextprotocol/sdk, @azure/msal-node, zod (all MIT).
Not affiliated with or endorsed by Microsoft. Microsoft, Microsoft Teams, Microsoft Entra and Microsoft Graph are trademarks of the Microsoft group of companies.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Your Microsoft Teams call transcripts, with real speaker names: search, read, ask.
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
Read, search and reply to your WhatsApp chats from your AI, using your own number.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Microsoft 365 through the Microsoft Graph API, including searching Teams messages, managing chats, and sending messages.77 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Microsoft Teams, users, and organizational data via Microsoft Graph APIs, including sending messages, managing chats and channels, and searching messages.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Microsoft Teams through Microsoft Graph API, using delegated device-code authentication to act on behalf of the user.1621 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Microsoft Teams that lets AI assistants search, message, and manage chats, meetings, files, and contacts using your existing Teams browser login—no app approval or Azure AD registration needed.1,309 npm2MIT