原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Mattermost

作者:toffguy77版本 1.1.0i★ –i在你的电脑上运行
注册名称io.github.toffguy77/mattermost-mcp

安装

概览

作者提供的说明(英文原文)

Mattermost: read unreads, mentions, channels and threads; opt-in posting, edits, reactions

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:MATTERMOST_URL, MATTERMOST_ACCESS_TOKEN, MATTERMOST_TOKEN, MATTERMOST_CSRF

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MATTERMOST_URL, MATTERMOST_ACCESS_TOKEN, MATTERMOST_ENABLE_WRITE, MATTERMOST_TOKEN, MATTERMOST_CSRF

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "mattermost": {
      "command": "uvx",
      "args": [
        "mattermost-mcp-server"
      ],
      "env": {
        "MATTERMOST_URL": "your-value",
        "MATTERMOST_ACCESS_TOKEN": "your-value",
        "MATTERMOST_ENABLE_WRITE": "your-value",
        "MATTERMOST_TOKEN": "your-value",
        "MATTERMOST_CSRF": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add mattermost --env MATTERMOST_URL=your-value --env MATTERMOST_ACCESS_TOKEN=your-value --env MATTERMOST_ENABLE_WRITE=your-value --env MATTERMOST_TOKEN=your-value --env MATTERMOST_CSRF=your-value -- uvx mattermost-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "mattermost": {
      "command": "uvx",
      "args": [
        "mattermost-mcp-server"
      ],
      "env": {
        "MATTERMOST_URL": "your-value",
        "MATTERMOST_ACCESS_TOKEN": "your-value",
        "MATTERMOST_ENABLE_WRITE": "your-value",
        "MATTERMOST_TOKEN": "your-value",
        "MATTERMOST_CSRF": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "mattermost": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mattermost-mcp-server"
      ],
      "env": {
        "MATTERMOST_URL": "your-value",
        "MATTERMOST_ACCESS_TOKEN": "your-value",
        "MATTERMOST_ENABLE_WRITE": "your-value",
        "MATTERMOST_TOKEN": "your-value",
        "MATTERMOST_CSRF": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MATTERMOST_URL 必填 env
    Base URL of your Mattermost server, e.g. https://mattermost.example.com
  • MATTERMOST_ACCESS_TOKEN 机密 env
    Personal access token or bot token (Profile > Security > Personal Access Tokens)
  • MATTERMOST_ENABLE_WRITE env
    Set to 1 to enable posting, replying, editing own posts and reactions (off by default)
  • MATTERMOST_TOKEN 机密 env
    Cookie mode: value of the MMAUTHTOKEN browser cookie (when personal access tokens are unavailable)
  • MATTERMOST_CSRF 机密 env
    Cookie mode: value of the MMCSRF browser cookie (required for write tools in cookie mode)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 toffguy77 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32715 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32715 个服务器的 87% 更新
  • 基础检查结果等于或优于此分类中其他 32715 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Mattermost 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MATTERMOST_URL, MATTERMOST_ACCESS_TOKEN, MATTERMOST_TOKEN, MATTERMOST_CSRF

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.1.0)于5天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, First Sale Scout

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

First Sale Scout

作者:firstsale.pro

Playbooks and a 14-day checklist for founders winning their first paying customers.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mattermost-mcp

A Model Context Protocol server for Mattermost. It lets an AI agent (Claude, Cursor, VS Code, any MCP client) catch up on your unreads and mentions, read channels, threads and DMs, and search. If you switch write mode on, the agent can also post, reply, send DMs, edit its own messages and react.

  • Read-only by default. Write tools are not even registered until you set MATTERMOST_ENABLE_WRITE=1. Even then, the agent can only edit posts written by your own account.
  • Sees what you see. Unread counts match the client badge (muted channels are skipped, collapsed-thread counts are used) and sidebar categories work as filters. Mentions from muted channels are still shown.
  • Works where personal access tokens don't. Use a personal access token (PAT) or bot token if you can. If an admin has disabled PATs (common with SSO), run mattermost-mcp-server login: sign in once in a browser window and the server picks up the session cookies itself, and picks them up again when they expire.
  • Fast. Channel metadata is fetched once, across teams in parallel, and cached briefly. No per-channel requests.

Quick start

  1. Create a personal access token in Mattermost: Profile → Security → Personal Access Tokens → Create Token. If that section is missing, an admin must enable System Console → Integrations → Integration Management → Enable Personal Access Tokens, or skip the token and sign in with your browser instead.
  2. Install uv.
  3. Add the server to your client.

Claude Code

claude mcp add mattermost \

-e MATTERMOST_URL=https://mattermost.example.com \ -e MATTERMOST_ACCESS_TOKEN=your-token \ -- uvx mattermost-mcp-server

Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json) and other clients that use mcpServers:

{

"mcpServers": { "mattermost": { "command": "uvx", "args": ["mattermost-mcp-server"], "env": { "MATTERMOST_URL": "https://mattermost.example.com", "MATTERMOST_ACCESS_TOKEN": "your-token" } } } }

VS Code (.vscode/mcp.json):

{

"inputs": [ { "type": "promptString", "id": "mm-token", "description": "Mattermost access token", "password": true } ], "servers": { "mattermost": { "command": "uvx", "args": ["mattermost-mcp-server"], "env": { "MATTERMOST_URL": "https://mattermost.example.com", "MATTERMOST_ACCESS_TOKEN": "${input:mm-token}" } } } }

Then try asking: *"What did I miss in Mattermost today?"* or *"Summarize the thread about the release in #engineering."*

To let the agent post, add "MATTERMOST_ENABLE_WRITE": "1" to env (see Write mode).

Tools

ToolKindWhat it does
get_unreadreadUnread and mention counts per channel; skips muted channels by default, like the client badge
get_mentionsreadPosts that mention you, newest first; since, limit
list_channelsreadYour channels with unread_count, mute state and sidebar category; filter by team, category, DMs, muted
get_channel_postsreadRecent posts in a channel; since (ISO 8601) or before (post ID) to page back
get_threadreadA root post and all its replies
search_postsreadFull-text search with Mattermost syntax (from:, in:, after:…), optionally scoped to one channel or a sidebar category; skips muted channels by default
get_direct_messagesreadDM history with a user; since, before
get_userreadA user's profile by username
search_usersreadFind users by name, username or email prefix
get_mereadYour profile, the auth mode, and whether write mode is on
list_teamsreadYour teams
get_postreadOne post by ID
get_channelreadA channel by ID or by name (town-square), with header and purpose
get_pinned_postsreadPinned posts of a channel
get_file_inforeadName, type and size of an attached file (content is not downloaded)
create_postwritePost in a channel, or reply in a thread with root_id
send_direct_messagewriteDM a user by username
update_postwriteEdit one of your own posts; refuses anyone else's
add_reactionwriteReact with an emoji (thumbsup or :thumbsup:)
remove_reactionwriteRemove your reaction; no error if it was not there

Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint), so clients can auto-approve reads and ask before writes. Nothing can delete posts, change channels or perform admin actions.

Write mode

Write mode is off unless MATTERMOST_ENABLE_WRITE is 1, true, yes or on. When it is off:

  • the five write tools are not registered, so the model never sees them;
  • the HTTP client refuses every request that is not a GET or one of the read-only POSTs (user lookup, user search, post search), before anything is sent.

The one server-side effect of read-only mode is the same as in any Mattermost client: get_direct_messages with someone you have never messaged creates the (empty) DM channel between you.

When write mode is on, update_post checks the post's author and refuses any post that is not yours, even if your account has permission to edit other people's posts. Posts are written as the authenticated user (or bot), so consider a dedicated bot account for agents that post on their own.

Configuration

VariableDefaultMeaning
MATTERMOST_URL— (required)Base URL of your server, e.g. https://mattermost.example.com
MATTERMOST_ACCESS_TOKEN—Personal access token or bot token; selects token auth
MATTERMOST_ENABLE_WRITEoff1 enables the write tools
MATTERMOST_AUTH_MODEautotoken or cookie, to force a mode (see below)
MATTERMOST_TOKEN—Cookie auth: value of the MMAUTHTOKEN cookie
MATTERMOST_CSRF—Cookie auth: value of the MMCSRF cookie; required for write tools
MATTERMOST_USER_ID—Cookie auth: value of the MMUSERID cookie (optional)
MATTERMOST_AUTO_LOGINoff1 opens the browser sign-in automatically when the saved session expires
MATTERMOST_LOGIN_TIMEOUT300Seconds to wait for an automatic sign-in
MATTERMOST_BROWSERautoPath of the Chromium-family browser used by login
MATTERMOST_BROWSER_ARGS—Extra browser flags for login, e.g. --proxy-server=…
MATTERMOST_BROWSER_PROFILE~/.config/mattermost-mcp/browser-profileSign-in browser profile (mode 0700)
MATTERMOST_SESSION_FILE~/.config/mattermost-mcp/session.envWhere login saves the session (mode 0600)
MATTERMOST_CACHE_TTL60Seconds to cache channel metadata; 0 disables the cache
MATTERMOST_TRUST_ENV10 ignores HTTP(S)_PROXY/ALL_PROXY and connects to Mattermost directly
MATTERMOST_AUTH_HELP—Extra text appended to the 401 error, e.g. how credentials are rotated in your setup
MATTERMOST_KEYCHAIN_SERVICEmattermost-mcpKeychain service name (see Credential sources)
MATTERMOST_COOKIE_HOSToffCookie host: ssh alias, or local
MATTERMOST_COOKIE_PATH.config/mattermost-mcp/cookie.envCookie host: file path, relative to $HOME on the host
MATTERMOST_COOKIE_CACHE~/.cache/mattermost-mcp/cookie.cacheCookie host: local cache file (mode 0600)
MATTERMOST_COOKIE_TTL900Cookie host: cache lifetime, seconds
MATTERMOST_COOKIE_SSH_TIMEOUT10Cookie host: ssh connect timeout, seconds

Choosing the auth mode. If MATTERMOST_AUTH_MODE is unset, the first credential source that has any credential decides. The sources are checked in order: env, then cookie host, then the saved login session, then keychain. MATTERMOST_ACCESS_TOKEN in that source means token mode. MATTERMOST_TOKEN alone means cookie mode. A lower-priority source never overrides a higher one.

Sign in with your browser

No personal access tokens on your server? Sign in once the way you always do (password, SSO, MFA), and the server uses your session:

uvx mattermost-mcp-server login --url https://mattermost.example.com

A browser window opens at your server's login page and closes by itself as soon as you are signed in. Any installed Chrome, Chromium, Edge or Brave works; set MATTERMOST_BROWSER to use a specific one. The session cookies are checked against the server and saved to ~/.config/mattermost-mcp/session.env (mode 0600). From then on the server needs no credentials in its configuration at all:

claude mcp add mattermost -- uvx mattermost-mcp-server

Other ways to sign in:

mattermost-mcp-server login --password       # username/email + password (+ MFA code); the password is not stored

mattermost-mcp-server login --from-firefox # reuse the session of a Firefox where you are signed in mattermost-mcp-server status # which server, user and credential source is in use mattermost-mcp-server logout # revoke and delete the saved session (--forget-browser: also the browser profile)

When the session expires. Sessions expire after the time your admin configured. Run login again; running servers pick the new session up on their next call, without a restart. With MATTERMOST_AUTO_LOGIN=1 in the server's env, the server opens the sign-in window itself when it gets a

  1. The browser profile remembers your identity provider, so with SSO this

often completes without typing anything. Several running servers share one window.

The sign-in browser uses its own profile in ~/.config/mattermost-mcp/browser-profile, separate from your everyday browser. On macOS and Linux the server talks to it over a private pipe, not a network port.

Cookie auth

To use session cookies directly, without login: log in to Mattermost in a browser, open DevTools → Application → Cookies, and copy MMAUTHTOKEN, MMCSRF and (optionally) MMUSERID into MATTERMOST_TOKEN, MATTERMOST_CSRF and MATTERMOST_USER_ID. This is also the way to go when a reverse proxy strips the Authorization header.

Session cookies expire. When they do, tool calls fail with a 401 error. Put fresh cookies wherever the server reads them from, then restart it, because env is read only once. If something rotates cookies for you, describe it in MATTERMOST_AUTH_HELP so the agent knows what to do.

Credential sources

The server resolves each field separately. The first source that has a value wins:

  1. Environment variables, as above.
  2. Cookie host (off by default). A plain KEY=VALUE file with the same variable names, kept on another machine and read over ssh. Use this when one machine rotates the credential and others just consume it. The result is cached locally. On a 401 the server pulls the file again and retries once. ssh runs with BatchMode=yes, so a locked key fails fast instead of hanging the MCP handshake, and the reason goes to stderr. The file may only supply MATTERMOST_URL, MATTERMOST_ACCESS_TOKEN, MATTERMOST_TOKEN, MATTERMOST_CSRF and `MATTERMOST_USER_I

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx