mm-mcp for Mattermost
Read, search and post in Mattermost as yourself or a bot, read-only by default
mm-mcp for Mattermost is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, macOS, Windows
- Runs
- Locally
- Version
- 0.4.1
- Listing updated
Similar MCP servers
Install
In Claude Desktop → Settings → Extensions
https://github.com/vriesdemichael/mm-mcp/releases/download/v0.4.1/mm-mcp_0.4.1_darwin_amd64.mcpbDownload the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.
Using several servers? Build one config file with the MCP config generator.
Configuration
MM_MCP_ALLOW_WRITESOffer the tools that post and change things. Your client's own approval of each call decides, and mm-mcp checks what each change others see states before it acts.MM_MCP_CA_FILEA PEM file of certificate authorities to trust beside your system's, for a Mattermost whose certificate your organisation signed itself. Leave it empty otherwise.MM_MCP_DOWNLOAD_DIRWhere save_file writes attachments. Leave it empty for your Downloads directory.MM_MCP_ELICITATION_OPT_INYour client's own approval of each call decides whether a post or another change others see goes ahead, and mm-mcp checks what each states. Turn this on to have mm-mcp ask you too, through a question your client shows: a convenience where it shows it, not a safeguard, since some clients answer it themselves.MM_MCP_FORCE_HUMAN_IN_THE_LOOP_IN_CLAUDE_CODENot with mm-mcp asks as well: marks each tool that changes what others see so that Claude Code asks a person on every call, whatever its permission mode or rules allow. An agent cannot post on its own while it is on.MM_MCP_MARK_AI_GENERATEDMark every post and edit the model writes with Mattermost's own marker for text written with AI.MM_MCP_POST_FROM_VIEWSWhere your app shows mm-mcp's views, a post the model proposes as your draft can be posted from the view with Post. Off, the draft waits in Mattermost for you to send.MM_MCP_RESOURCE_MAX_MBThe most one message carrying an attached file as an MCP resource holds, a binary file counted as its base64. MCP sends a resource whole, and a client drops a message past its own limit, 10 MB for clients built on the TypeScript SDK. A larger one is refused, and read_file or save_file reads it instead. 0 is no limit.MM_TOKENA personal access token or a bot token. Where those are switched off, leave it empty after logging in once with mm-mcp login --url <address> in a terminal, which keeps your session in the system's credential store.MM_URLThe address you open Mattermost at, such as https://chat.example.com.RequiredMM_MCP_ALLOW_WRITESOffer the tools that post and change things. Your client's own approval of each call decides, and mm-mcp checks what each change others see states before it acts.MM_MCP_CA_FILEA PEM file of certificate authorities to trust beside your system's, for a Mattermost whose certificate your organisation signed itself. Leave it empty otherwise.MM_MCP_DOWNLOAD_DIRWhere save_file writes attachments. Leave it empty for your Downloads directory.MM_MCP_ELICITATION_OPT_INYour client's own approval of each call decides whether a post or another change others see goes ahead, and mm-mcp checks what each states. Turn this on to have mm-mcp ask you too, through a question your client shows: a convenience where it shows it, not a safeguard, since some clients answer it themselves.MM_MCP_FORCE_HUMAN_IN_THE_LOOP_IN_CLAUDE_CODENot with mm-mcp asks as well: marks each tool that changes what others see so that Claude Code asks a person on every call, whatever its permission mode or rules allow. An agent cannot post on its own while it is on.MM_MCP_MARK_AI_GENERATEDMark every post and edit the model writes with Mattermost's own marker for text written with AI.MM_MCP_POST_FROM_VIEWSWhere your app shows mm-mcp's views, a post the model proposes as your draft can be posted from the view with Post. Off, the draft waits in Mattermost for you to send.MM_MCP_RESOURCE_MAX_MBThe most one message carrying an attached file as an MCP resource holds, a binary file counted as its base64. MCP sends a resource whole, and a client drops a message past its own limit, 10 MB for clients built on the TypeScript SDK. A larger one is refused, and read_file or save_file reads it instead. 0 is no limit.MM_TOKENA personal access token or a bot token. Where those are switched off, leave it empty after logging in once with mm-mcp login --url <address> in a terminal, which keeps your session in the system's credential store.MM_URLThe address you open Mattermost at, such as https://chat.example.com.RequiredMM_MCP_ALLOW_WRITESOffer the tools that post and change things. Your client's own approval of each call decides, and mm-mcp checks what each change others see states before it acts.MM_MCP_CA_FILEA PEM file of certificate authorities to trust beside your system's, for a Mattermost whose certificate your organisation signed itself. Leave it empty otherwise.MM_MCP_DOWNLOAD_DIRWhere save_file writes attachments. Leave it empty for your Downloads directory.MM_MCP_ELICITATION_OPT_INYour client's own approval of each call decides whether a post or another change others see goes ahead, and mm-mcp checks what each states. Turn this on to have mm-mcp ask you too, through a question your client shows: a convenience where it shows it, not a safeguard, since some clients answer it themselves.MM_MCP_FORCE_HUMAN_IN_THE_LOOP_IN_CLAUDE_CODENot with mm-mcp asks as well: marks each tool that changes what others see so that Claude Code asks a person on every call, whatever its permission mode or rules allow. An agent cannot post on its own while it is on.MM_MCP_MARK_AI_GENERATEDMark every post and edit the model writes with Mattermost's own marker for text written with AI.MM_MCP_POST_FROM_VIEWSWhere your app shows mm-mcp's views, a post the model proposes as your draft can be posted from the view with Post. Off, the draft waits in Mattermost for you to send.MM_MCP_RESOURCE_MAX_MBThe most one message carrying an attached file as an MCP resource holds, a binary file counted as its base64. MCP sends a resource whole, and a client drops a message past its own limit, 10 MB for clients built on the TypeScript SDK. A larger one is refused, and read_file or save_file reads it instead. 0 is no limit.MM_TOKENA personal access token or a bot token. Where those are switched off, leave it empty after logging in once with mm-mcp login --url <address> in a terminal, which keeps your session in the system's credential store.MM_URLThe address you open Mattermost at, such as https://chat.example.com.RequiredMM_MCP_ALLOW_WRITESOffer the tools that post and change things. Your client's own approval of each call decides, and mm-mcp checks what each change others see states before it acts.MM_MCP_CA_FILEA PEM file of certificate authorities to trust beside your system's, for a Mattermost whose certificate your organisation signed itself. Leave it empty otherwise.MM_MCP_DOWNLOAD_DIRWhere save_file writes attachments. Leave it empty for your Downloads directory.MM_MCP_ELICITATION_OPT_INYour client's own approval of each call decides whether a post or another change others see goes ahead, and mm-mcp checks what each states. Turn this on to have mm-mcp ask you too, through a question your client shows: a convenience where it shows it, not a safeguard, since some clients answer it themselves.MM_MCP_FORCE_HUMAN_IN_THE_LOOP_IN_CLAUDE_CODENot with mm-mcp asks as well: marks each tool that changes what others see so that Claude Code asks a person on every call, whatever its permission mode or rules allow. An agent cannot post on its own while it is on.MM_MCP_MARK_AI_GENERATEDMark every post and edit the model writes with Mattermost's own marker for text written with AI.MM_MCP_POST_FROM_VIEWSWhere your app shows mm-mcp's views, a post the model proposes as your draft can be posted from the view with Post. Off, the draft waits in Mattermost for you to send.MM_MCP_RESOURCE_MAX_MBThe most one message carrying an attached file as an MCP resource holds, a binary file counted as its base64. MCP sends a resource whole, and a client drops a message past its own limit, 10 MB for clients built on the TypeScript SDK. A larger one is refused, and read_file or save_file reads it instead. 0 is no limit.MM_TOKENA personal access token or a bot token. Where those are switched off, leave it empty after logging in once with mm-mcp login --url <address> in a terminal, which keeps your session in the system's credential store.MM_URLThe address you open Mattermost at, such as https://chat.example.com.RequiredMM_MCP_ALLOW_WRITESOffer the tools that post and change things. Your client's own approval of each call decides, and mm-mcp checks what each change others see states before it acts.MM_MCP_CA_FILEA PEM file of certificate authorities to trust beside your system's, for a Mattermost whose certificate your organisation signed itself. Leave it empty otherwise.MM_MCP_DOWNLOAD_DIRWhere save_file writes attachments. Leave it empty for your Downloads directory.MM_MCP_ELICITATION_OPT_INYour client's own approval of each call decides whether a post or another change others see goes ahead, and mm-mcp checks what each states. Turn this on to have mm-mcp ask you too, through a question your client shows: a convenience where it shows it, not a safeguard, since some clients answer it themselves.MM_MCP_FORCE_HUMAN_IN_THE_LOOP_IN_CLAUDE_CODENot with mm-mcp asks as well: marks each tool that changes what others see so that Claude Code asks a person on every call, whatever its permission mode or rules allow. An agent cannot post on its own while it is on.MM_MCP_MARK_AI_GENERATEDMark every post and edit the model writes with Mattermost's own marker for text written with AI.MM_MCP_POST_FROM_VIEWSWhere your app shows mm-mcp's views, a post the model proposes as your draft can be posted from the view with Post. Off, the draft waits in Mattermost for you to send.MM_MCP_RESOURCE_MAX_MBThe most one message carrying an attached file as an MCP resource holds, a binary file counted as its base64. MCP sends a resource whole, and a client drops a message past its own limit, 10 MB for clients built on the TypeScript SDK. A larger one is refused, and read_file or save_file reads it instead. 0 is no limit.MM_TOKENA personal access token or a bot token. Where those are switched off, leave it empty after logging in once with mm-mcp login --url <address> in a terminal, which keeps your session in the system's credential store.MM_URLThe address you open Mattermost at, such as https://chat.example.com.RequiredMM_MCP_ALLOW_WRITESOffer the tools that post and change things. Your client's own approval of each call decides, and mm-mcp checks what each change others see states before it acts.MM_MCP_CA_FILEA PEM file of certificate authorities to trust beside your system's, for a Mattermost whose certificate your organisation signed itself. Leave it empty otherwise.MM_MCP_DOWNLOAD_DIRWhere save_file writes attachments. Leave it empty for your Downloads directory.MM_MCP_ELICITATION_OPT_INYour client's own approval of each call decides whether a post or another change others see goes ahead, and mm-mcp checks what each states. Turn this on to have mm-mcp ask you too, through a question your client shows: a convenience where it shows it, not a safeguard, since some clients answer it themselves.MM_MCP_FORCE_HUMAN_IN_THE_LOOP_IN_CLAUDE_CODENot with mm-mcp asks as well: marks each tool that changes what others see so that Claude Code asks a person on every call, whatever its permission mode or rules allow. An agent cannot post on its own while it is on.MM_MCP_MARK_AI_GENERATEDMark every post and edit the model writes with Mattermost's own marker for text written with AI.MM_MCP_POST_FROM_VIEWSWhere your app shows mm-mcp's views, a post the model proposes as your draft can be posted from the view with Post. Off, the draft waits in Mattermost for you to send.MM_MCP_RESOURCE_MAX_MBThe most one message carrying an attached file as an MCP resource holds, a binary file counted as its base64. MCP sends a resource whole, and a client drops a message past its own limit, 10 MB for clients built on the TypeScript SDK. A larger one is refused, and read_file or save_file reads it instead. 0 is no limit.MM_TOKENA personal access token or a bot token. Where those are switched off, leave it empty after logging in once with mm-mcp login --url <address> in a terminal, which keeps your session in the system's credential store.MM_URLThe address you open Mattermost at, such as https://chat.example.com.Required
About mm-mcp for Mattermost
Writes stay off until MM_MCP_ALLOW_WRITES is turned on. After that the assistant client's own approval of each call decides, and mm-mcp states what each change does before acting: how many people a post reaches, what an edit replaces and what a deletion removes. Posts and edits are marked as written with AI by default, and an option makes Claude Code ask a person on every call.
It can authenticate with a personal access token, a bot token or a stored login through mm-mcp login, including single sign-on, kept in the system credential store. Attached files, previews, profile pictures and custom emoji are exposed as MCP resources, and in clients that render MCP Apps it can show a thread, unread messages or a proposed draft inside the chat.
It runs over stdio or Streamable HTTP on a loopback address, and a doctor command diagnoses setup problems. It is independent and not affiliated with Mattermost, Inc.
Tools this server provides (3)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 3 tools reads data; 2 names don't say.
From the server's own tool labels and tool names; not verified by us.
- diagnose
- Checks the client's configuration and connection to Mattermost
- read_fileName suggests: reads
- Reads an attached file
- save_file
- Saves an attachment to disk
What it does
- Read-only default
- Posting and editing tools are not offered until writes are enabled.
- Change previews
- States who a post reaches and what an edit or deletion affects before acting.
- AI marking
- Posts and edits carry Mattermost's AI-written marker by default.
- Flexible login
- Personal token, bot token or single sign-on login.
- Files as resources
- Attachments and emoji can be read by the client.
- Doctor command
- Checks configuration, login and connectivity.
Good for
- Summarise unread channels and mentions
- Search past threads and files for a decision
- Draft a reply and post it after approval
- Post updates as a bot account
Pricing
Open source
Apache-2.0; free
mm-mcp for Mattermost FAQ
Can mm-mcp for Mattermost post by itself?
Not unless writes are enabled, and then your client's approval of each call decides.
How do I install mm-mcp for Mattermost?
Via Homebrew, winget, Scoop, a release binary or the Claude Code plugin.
What licence is mm-mcp for Mattermost?
Apache-2.0.
Is mm-mcp for Mattermost official?
No. It is independent and not endorsed by Mattermost, Inc.
Is mm-mcp for Mattermost free?
Yes. mm-mcp for Mattermost is open source, so you can use and self-host it for free.
What are the best alternatives to mm-mcp for Mattermost?
The closest alternatives to mm-mcp for Mattermost are TrendRadar, TryPost, Discord MCP, Gmail MCP and Getmitra.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.
