
floriscornel/teams-mcp 是从 https://github.com/floriscornel/teams-mcp. 导入的 MCP 服务器候选服务器。
概览
floriscornel/teams-mcp 是从 https://github.com/floriscornel/teams-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,提供与 Microsoft Graph API 的无缝集成,使 AI 助手能够与 Microsoft Teams、用户、聊天、文件和组织数据交互。
📦 安装
要在Cursor/Claude/VS Code中使用该MCP服务器,请添加以下配置:
🚀 特色
🔐 认证
- Microsoft Graph 的 OAuth 2.0 设备代码认证流程
- 安全令牌管理、缓存持久化和刷新令牌更新
- 身份验证状态检查和登出支持
- 仅读模式,且作用域缩小
- 直接支持预发的Microsoft Graph访问令牌
👥 用户管理
- 获取当前用户信息
- 通过姓名或电子邮件搜索用户
- 检索详细的用户资料
- 访问组织目录数据
🏢 Microsoft Teams 集成
-
团队管理
-
列出用户加入的团队
-
访问团队详情和元数据
-
频道操作
-
列出团队内的频道
-
检索信道消息和回复
-
向团队频道发送消息
-
回复现有通道线程
-
编辑和软删除频道消息和回复
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Teams MCP
A Model Context Protocol (MCP) server that provides seamless integration with Microsoft Graph APIs, enabling AI assistants to interact with Microsoft Teams, users, chats, files, and organizational data.
📦 Installation
To use this MCP server in Cursor/Claude/VS Code, add the following configuration:
{
"mcpServers": {
"teams-mcp": {
"command": "npx",
"args": ["-y", "@floriscornel/teams-mcp@latest"]
}
}
}
🚀 Features
🔐 Authentication
- OAuth 2.0 device code authentication flow with Microsoft Graph
- Secure token management, cache persistence, and refresh token renewal
- Authentication status checking and logout support
- Read-only mode with reduced scopes
- Direct
AUTH_TOKENsupport for pre-issued Microsoft Graph access tokens
👥 User Management
- Get current user information
- Search users by name or email
- Retrieve detailed user profiles
- Access organizational directory data
🏢 Microsoft Teams Integration
-
Teams Management
- List user’s joined teams
- Access team details and metadata
-
Channel Operations
- List channels within teams
- Retrieve channel messages and replies
- Send messages to team channels
- Reply to existing channel threads
- Edit and soft delete channel messages and replies
- Support for message importance levels (
normal,high,urgent) - Support for inline image attachments via URL or base64 data
-
Team Members
- List team members and their roles
- Access member information
- Search users for
@mentions
💬 Chat & Messaging
- 1:1 and Group Chats
- List user’s chats
- Create new 1:1 or group conversations
- Retrieve chat message history with filtering, ordering, and pagination
- Fetch all available messages via
@odata.nextLinkpagination - Send messages to existing chats
- Edit previously sent chat messages
- Soft delete chat messages
✏️ Message Management
- Edit & Delete
- Update (edit) sent messages in chats and channels
- Soft delete messages in chats and channels (marks as deleted without permanent removal)
安装
npx -y @floriscornel/teams-mcp@latest配置
{
"mcpServers": {
"teams-mcp": {
"command": "npx",
"args": ["-y", "@floriscornel/teams-mcp@latest"]
}
}
}