Basic information
About Mattermost Mcp Server
MCP Server for Mattermost API. Enables Claude and other MCP clients to interact with Mattermost workspaces - list channels, read/post messages, manage threads, reactions, and monitor topics. Supports flexible configuration via CLI args, environment variables, or config files.
Mattermost Mcp is a MCP server in the Communication category listed in the AddMCP.net directory, published by conarti. It exposes 9 tools, including mattermost_list_channels, mattermost_get_channel_history, mattermost_post_message, mattermost_reply_to_thread and more. Supported transport: stdio. License: MIT. Source code is hosted on github.com. Related topics: channels, chat, mattermost, messaging, slack-alternative.
Setup
{
"mcpServers": {
"mattermost": {
"command": "npx",
"args": [
"-y",
"@conarti/mattermost-mcp"
],
"env": {
"MATTERMOST_URL": "https://your-mattermost.com/api/v4",
"MATTERMOST_TOKEN": "your-token",
"MATTERMOST_TEAM_ID": "your-team-id"
}
}
}
}
{
"mcpServers": {
"mattermost": {
"command": "npx",
"args": [
"-y",
"@conarti/mattermost-mcp"
],
"env": {
"MATTERMOST_URL": "https://your-mattermost.com/api/v4",
"MATTERMOST_TOKEN": "your-token",
"MATTERMOST_TEAM_ID": "your-team-id"
}
}
}
}
{
"servers": {
"mattermost": {
"command": "npx",
"args": [
"-y",
"@conarti/mattermost-mcp"
],
"env": {
"MATTERMOST_URL": "https://your-mattermost.com/api/v4",
"MATTERMOST_TOKEN": "your-token",
"MATTERMOST_TEAM_ID": "your-team-id"
}
}
}
}
Mattermost Mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mattermost": {
"command": "npx",
"args": [
"-y",
"@conarti/mattermost-mcp"
],
"env": {
"MATTERMOST_URL": "https://your-mattermost.com/api/v4",
"MATTERMOST_TOKEN": "your-token",
"MATTERMOST_TEAM_ID": "your-team-id"
}
}
}
}
Mattermost Mcp tools
-
mattermost_list_channels
— List channels in the Mattermost workspace. By default lists public team channels. Set include_private=true to get all channels including private channels and direct messages (DMs).
limit:number, page:number, include_private:boolean -
mattermost_get_channel_history
— Get messages from a Mattermost channel. By default returns ALL messages. Use limit parameter to restrict the number of messages.
channel_id:string*, limit:number, page:number, since_date:string, before_date:string, before_post_id:string, after_post_id:string -
mattermost_post_message
— Post a new message to a Mattermost channel
channel_id:string*, message:string* -
mattermost_reply_to_thread
— Reply to a specific message thread in Mattermost
channel_id:string*, post_id:string*, message:string* -
mattermost_add_reaction
— Add a reaction emoji to a message
channel_id:string*, post_id:string*, emoji_name:string* -
mattermost_get_thread_replies
— Get all replies in a message thread
channel_id:string*, post_id:string* -
mattermost_get_users
— Get a list of users in the Mattermost workspace with pagination
limit:number, page:number -
mattermost_get_user_profile
— Get detailed profile information for a specific user
user_id:string* -
mattermost_run_monitoring
— Run the topic monitoring process immediately
(no parameters)
Overview
What is Mattermost Mcp?
Mattermost Mcp is a Model Context Protocol server that enables Claude and other MCP clients to interact with Mattermost workspaces via the Mattermost API. It provides tools for reading and writing messages, managing channels, and monitoring topics.
How to use Mattermost Mcp?
Run it with npx @conarti/mattermost-mcp and provide the Mattermost URL, a personal access token, and the team ID via CLI arguments, environment variables, or a config file. Integrate with Claude Code by adding the server to the MCP settings in ~/.claude/claude_desktop_config.json.
Key features of Mattermost Mcp
- List public channels in the workspace
- Retrieve channel messages with filtering and pagination
- Post messages and reply to threads
- Add emoji reactions to messages
- Get workspace users and user profiles
- Monitor channels for topics of interest on a schedule
Use cases of Mattermost Mcp
- Allow an AI assistant to read conversations and post updates in Mattermost channels
- Automatically scan specified channels for keywords (e.g., “urgent”, “bug”) and trigger notifications
- Fetch and summarize recent discussions for daily standups or reports
- Manage team communication by posting status updates from automated workflows
Frequently asked questions
1 What credentials are required?
You need the Mattermost API URL (typically https://your-mattermost-domain.com/api/v4), a personal access token, and the team ID. All three are mandatory.
2 How do I generate a personal access token?
In Mattermost, go to Account Settings → Security → Personal Access Tokens, create a new token, and copy it immediately (it will not be shown again).
3 How do I find my team ID?
Open your browser’s developer tools, refresh the page, and look for API calls containing teams/ – the ID is in the URL. Alternatively, use curl -H "Authorization: Bearer YOUR_TOKEN" https://your-mattermost.com/api/v4/teams.
4 What configuration methods are supported?
Configuration can be provided via CLI arguments (highest priority), environment variables (MATTERMOST_URL, MATTERMOST_TOKEN, MATTERMOST_TEAM_ID), a local config.local.json (gitignored), or the default config.json.
5 Can I run topic monitoring as a one-off job?
Yes, use the --run-monitoring flag to trigger monitoring immediately on startup, and optionally --exit-after-monitoring to exit after the run (useful for cron jobs).
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In