Mattermost

io.github.vriesdemichaelv0.1.0更新于 Oct 8, 2026

Read, search and post in Mattermost as yourself or a bot.

已验证STDIO仅桌面Communication & Collaboration

概览

AI 生成的概览

让助手以你或机器人的身份在 Mattermost 中读取、搜索,并在明确允许后发帖和回复。

功能
这是一个面向 Mattermost 的 MCP 服务器,让助手访问你的聊天工作区。它可以读取频道、话题串、未读帖子和文件,并搜索帖子、文件、人员和频道。开启写入后,还能发帖、回复、编辑、添加表情回应、置顶和保存草稿。它以本地进程方式通过 stdio 运行,也可在回环地址上提供 Streamable HTTP。
适用场景
适合让助手帮你补看未读频道、查找某段讨论或文件,或在不离开客户端的情况下起草并发送回复。如果团队使用 Mattermost,并希望用对话方式完成搜索和发帖,就值得添加。
运行要求
需要本地运行环境:可通过 Homebrew、winget、Scoop 或发布包安装二进制文件,或在 Claude Desktop 中打开 .mcpb 包。需要 MM_URL(你的 Mattermost 地址)和 MM_TOKEN(个人访问令牌、机器人令牌或会话令牌)。可选设置:MM_MCP_ALLOW_WRITES、MM_MCP_DOWNLOAD_DIR、MM_MCP_MARK_AI_GENERATED。需要能访问你的 Mattermost 服务器。
安装前请注意
MM_TOKEN 是代表你或机器人身份的凭据,持有者可读写你的 Mattermost。写入功能默认关闭,只有 MM_MCP_ALLOW_WRITES 为真时才启用;此时发帖、回复、编辑、表情回应和置顶对同事可见,并会先请求确认,而关注话题串、保存帖子、提醒、草稿和输入状态不会询问。附件会写入 MM_MCP_DOWNLOAD_DIR。项目处于早期开发阶段,与 Mattermost, Inc. 无关联。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mattermost,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mm-mcp

[CI] [codecov]

An MCP server for Mattermost. It lets an AI agent read and search your Mattermost and, when you allow it, post and reply, as you or as a bot.

mm-mcp is an independent project. It is not affiliated with, endorsed by or supported by Mattermost, Inc.; Mattermost is a trademark of Mattermost, Inc.

Early development. Nothing is released yet. The tools read channels, threads, unread posts and files, search posts, files, people and channels, and, once you allow writes, post, reply, edit, react, pin and keep drafts. The tools page lists every one. Views in the chat for clients that render MCP Apps are planned; the issues are the plan.

Why it works the way it does

  • Read-only unless you say otherwise. The tools that post or change anything are not offered until MM_MCP_ALLOW_WRITES is true. Then every change others see asks you first: an agent acting with your token speaks as you to your colleagues. Following a thread, saving a post, a reminder, a draft only you see and the typing indicator are yours alone or gone in seconds, and do not ask.
  • Your token, a bot's, or your own login. A personal access token, a bot token, or the session token from logging in yourself, for servers where personal access tokens are switched off.
  • Mattermost's own client. Requests and answers use the server's own Go client and types, not a hand-written description of the API.
  • Every supported release, tested. Every tool runs against a real Mattermost Team Edition, on the Extended Support Release and the newest release on every change, and on every release between them each week.
  • stdio and Streamable HTTP. A client starts it as a local process, or it serves Streamable HTTP on a loopback address.

Quick start

Install mm-mcp with brew install vriesdemichael/tap/mm-mcp, winget install vriesdemichael.mm-mcp or scoop install vriesdemichael/mm-mcp (after scoop bucket add vriesdemichael https://github.com/vriesdemichael/scoop), or download the binary for your machine from the latest release. Then get a personal access token in Mattermost under Profile → Security → Personal Access Tokens.

json
{  "mcpServers": {    "mattermost": {      "command": "mm-mcp",      "args": ["serve"],      "env": {        "MM_URL": "https://chat.example.com",        "MM_TOKEN": "your-token"      }    }  }}

Or, for Claude Code:

bash
claude mcp add mattermost --env MM_URL=https://chat.example.com --env MM_TOKEN=your-token -- mm-mcp serve

Claude Desktop users can open the .mcpb bundle for their machine from the latest release instead.

The documentation has every setting, the tools, and the supported Mattermost releases.

Contributing

See CONTRIBUTING.md. The decisions behind how this project is built are in docs/site/adr.

License

Apache-2.0

来源:README.md,提交 d224eb0

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.1.0最新Oct 8, 2026