MCP Catalogs
首页

mcp-teams-server

by InditexTech·373·综合分 50

MCP 服务器实现 Microsoft Teams 集成,提供消息处理、成员提及和线程管理功能。

communicationproductivitydeveloper-tools
34
Forks
3
活跃 Issue
本月
最近提交
2 天前
收录于

概述

这是一个生产就绪的 MCP 服务器实现,用于 Microsoft Teams 集成,提供全面的功能。它允许读取消息、创建新消息、回复线程和提及团队成员。服务器使用 Python 开发,包含清晰的文档和安装指南,支持直接运行和 Docker 部署。它通过 Microsoft Entra ID 提供适当的身份验证设置,并支持单租户和多租户配置。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:通过 AI 助手实现 Microsoft Teams 集成的团队通信自动化
:创建实时监控和响应 Teams 消息的 AI 工作流程
:构建与 Microsoft Teams 数据交互的自定义生产力工具
:此 MCP 服务器需要哪些 Microsoft Teams 权限?
:此 MCP 服务器能否使用个人 Microsoft 账户?

什么时候选它

如果需要将 Microsoft Teams 集成到 AI 工作流中,或创建能够以编程方式与 Teams 对话交互的代理,请选择此 MCP 服务器。

什么时候不要选它

如果需要超出消息传递的全面 Teams 管理功能(如会议安排或文件管理),或者偏好较少依赖 Azure 的解决方案,请避免使用。

此 server 暴露的工具

从 README 抽取出 5 个工具
  • start_thread

    Start a thread in a channel with title and contents, mentioning users

  • update_thread

    Update existing threads with message replies, mentioning users

  • read_thread_replies

    Read replies from a thread

  • list_channel_members

    List channel team members

  • read_channel_messages

    Read channel messages

说明:Tool names inferred from the Features section of the README which describes the capabilities but doesn't provide explicit MCP tool names.

可对比工具

teams-bot-sdkmcp-slack-serverteams-webhook-integration

安装

安装

前置要求

  • Python 3.10
  • uv 包管理器
  • 已配置 Azure 的 Microsoft Teams 账户

安装步骤

  1. 克隆仓库:
git clone [repository-url]
cd mcp-teams-server
  1. 创建虚拟环境并安装依赖:
uv venv
uv sync --frozen --all-extras --dev
  1. 设置环境变量,使用 [sample.env](sample.env) 作为模板:
export TEAMS_APP_ID="你的应用ID"
export TEAMS_APP_PASSWORD="你的密码"
export TEAMS_APP_TYPE="SingleTenant" # 或 "MultiTenant"
export TEAMS_APP_TENANT_ID="你的租户ID"
export TEAM_ID="你的团队ID"
export TEAMS_CHANNEL_ID="你的频道ID"
  1. 启动服务器:
uv run mcp-teams-server

Claude Desktop 配置

添加到 Claude Desktop config.json:

{
  "mcpServers": {
    "teams": {
      "command": "uv",
      "args": ["run", "mcp-teams-server"],
      "env": {
        "TEAMS_APP_ID": "你的应用ID",
        "TEAMS_APP_PASSWORD": "你的密码",
        "TEAMS_APP_TYPE": "SingleTenant",
        "TEAMS_APP_TENANT_ID": "你的租户ID",
        "TEAM_ID": "你的团队ID",
        "TEAMS_CHANNEL_ID": "你的频道ID"
      }
    }
  }
}

FAQ

此 MCP 服务器需要哪些 Microsoft Teams 权限?
服务器需要 Microsoft Graph API 的 Teams 权限,具体需要 ChannelMessage.Read.All、Chat.Read 和 TeamMember.Read.All 范围才能正常运行。
此 MCP 服务器能否使用个人 Microsoft 账户?
不能,此服务器需要使用 Microsoft Entra ID(前称 Azure AD)应用程序设置,没有适当的企业配置无法与个人 Microsoft 账户配合使用。

Hacker News 讨论

开发者社区最近的相关讨论。

mcp-teams-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。