Connector guide11-minute read33 MCP tools7 languages

Connect Mattermost to Claude via MCP

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

HCBy HelpCode teamUpdated 11 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Mattermost

Mattermost

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

tools

33

Region

INTL

Category

Messaging

Authentication

Bearer Token

Required env vars

MATTERMOST_URLMATTERMOST_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Guided setup

Connect Mattermost to Claude in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Mattermost in the guided setup, then add your MCP URL to Claude. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.

Try asking

Example prompts for Mattermost

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Mattermost · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Mattermost, enter your Mattermost address and a bot or personal access token, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Mattermost + Claude

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MATTERMOST_URL, MATTERMOST_TOKEN

Step 1 — Get credentials

Setting up takes about 5 minutes.

  1. MATTERMOST_URL: the address you open Mattermost at, without a trailing slash and without /api/v4, e.g. https://chat.example.com or https://yourcompany.cloud.mattermost.com.
  2. Choose the account the connector acts as:
    • Bot account (recommended for a shared assistant): a system admin opens System Console, Integrations, Bot Accounts (enable bot account creation there first), then Integrations, Bot Accounts, Add Bot Account in a team's menu, and copies the token shown once. Add the bot to every team and channel it should read or post in.
    • Personal access token (acts as you): a system admin enables System Console, Integrations, Integration Management, Enable Personal Access Tokens and allows them for your user (System Console, Users, your user, Manage Roles). Then open Profile, Security, Personal Access Tokens, Create Token and copy the Access Token (not the Token ID); it is shown once.
  3. Paste the token into MATTERMOST_TOKEN. It is sent as Authorization: Bearer <token> and does not expire unless the server sets an expiry or it is revoked.

Where Mattermost runs

  • Self-hosted AnythingMCP: a Mattermost server on a private network (http://10.0.0.5:8065, an internal host name) is blocked by the outbound SSRF guard by default; an administrator must allow the host through the SSRF_ALLOWED_HOSTS environment variable or the allowlist in the admin settings.
  • AnythingMCP Cloud: Cloud can only reach a server that is public over HTTPS. A private address is refused.

Where to start

  • mattermost_get_me for the account's own id, then mattermost_list_my_teams for team ids and mattermost_list_my_channels for the channels of a team (public, private, direct and group messages).
  • Read: mattermost_list_channel_posts, mattermost_get_thread, mattermost_get_post, mattermost_list_pinned_posts. Search: mattermost_search_posts and mattermost_search_files.
  • Find a channel: mattermost_search_channels, mattermost_get_channel_by_name, mattermost_list_public_channels; details with mattermost_get_channel, mattermost_get_channel_stats and mattermost_list_channel_members.
  • People: mattermost_search_users, mattermost_get_user, mattermost_get_user_by_username, mattermost_list_users, mattermost_list_team_members. Teams: mattermost_list_teams, mattermost_get_team, mattermost_get_team_by_name.
  • Threads the account follows: mattermost_list_followed_threads. Reactions: mattermost_list_post_reactions. Files: mattermost_list_post_files and mattermost_get_file_info (descriptions only, never the content).

Writing

  • mattermost_create_post sends a message at once; with root_id it replies in a thread. For a direct message call mattermost_create_direct_channel first and post to the channel id it returns. Say where the message goes and what it says before sending, unless the user already dictated both.
  • mattermost_update_post edits a post or pins it. mattermost_add_reaction adds an emoji reaction.
  • Switched off at install: mattermost_delete_post and mattermost_remove_reaction. Channels, teams and users cannot be created, changed or removed through this connector, and files cannot be uploaded.

Reading the data

  • Ids are 26 lower-case letters and digits. Posts carry user_id and channel_id, not names: resolve them with mattermost_get_user and mattermost_get_channel.
  • Post lists come as order (ids, newest first) and posts (a map from id to post). A post with a root_id is a reply; its thread is mattermost_get_thread with any id of the thread.
  • Times are Unix epoch milliseconds in UTC. delete_at 0 means not deleted.
  • Channel type: O public, P private, D direct message, G group message. The name of a team or channel is the handle in its URL; display_name is what people see.
  • The account only sees channels it is a member of (plus public channels of its teams). A 403 on a channel usually means the bot or user has not been added to it.

Limits and errors: lists return 60 items per page (at most 200); pages start at 0. A server with rate limiting on answers 429 and sends X-Ratelimit-Reset (seconds to wait); the default is 10 requests per second. 401: the token is wrong or revoked, or personal access tokens were switched off. 403: the account lacks the permission. 404: the id does not exist, or MATTERMOST_URL is wrong or already ends in /api/v4. Search needs at least one term and finds only what the account may read.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Claude

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Recommended path: works on claude.ai web without editing any config file.

  1. In Claude, open Plugins (older menu: Customize → Connectors → + Add).
  2. Click Add, then Add custom connector.
  3. Enter a name, e.g. Mattermost, and the remote MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Continue, keep the detected settings and click Continue again.
  4. Choose Sign in now, click Add and sign in to AnythingMCP (OAuth) to allow access.

All tools below appear in your chat: start typing prompts.

Available tools

ToolWhat it does
mattermost_get_meGet the account this connector acts as (the owner of the token or the bot): id, username, email, first_name, last_name, nickname, roles…
mattermost_list_usersList users, optionally only the members of one team or channel. Each user has id, username, first_name, last_name, nickname, email (when…
mattermost_search_usersFind users by a term matched against username, full name, nickname and email. Returns the matching users with id, username, first_name…
mattermost_get_userGet one user by id: username, first_name, last_name, nickname, email (when visible), position, roles, locale, timezone and delete_at. Use…
mattermost_get_user_by_usernameGet one user by username (the handle after the @ sign, without the @): id, first_name, last_name, nickname, email (when visible), position…
mattermost_list_my_teamsList the teams this account belongs to: id, name (the URL handle), display_name, description, type (O for open, I for invite only) and…
mattermost_list_teamsList the teams of the server that this account may see: its own teams plus teams open to join (all teams for a system admin). Each team has…
mattermost_get_teamGet one team by id: name, display_name, description, type, company_name, allowed_domains, allow_open_invite, create_at and delete_at
mattermost_get_team_by_nameGet one team by its name, the handle in the team URL (for https://chat.example.com/engineering/channels/town-square the name is…
mattermost_list_team_membersList the members of a team: user_id, roles, scheme_admin (team admin), scheme_guest and delete_at per member. Names are not included…
mattermost_list_my_channelsList every channel of one team that this account is a member of, including private channels, direct messages (type D) and group messages…
mattermost_list_public_channelsList the public channels of a team, whether or not this account has joined them: id, name, display_name, header, purpose and last_post_at.…
mattermost_search_channelsFind channels of a team by a term matched against the channel name, display name and purpose. Returns public channels and the private…
mattermost_get_channelGet one channel by id: team_id, name, display_name, type, header, purpose, creator_id, create_at, last_post_at and total_msg_count
mattermost_get_channel_by_nameGet one channel by its name, the handle in the channel URL (for https://chat.example.com/engineering/channels/release-notes the name is…
mattermost_list_channel_membersList the members of a channel: user_id, roles, last_viewed_at, msg_count and mention_count per member. Names are not included: resolve user…
mattermost_get_channel_statsGet the size of a channel: member_count, guest_count, pinnedpost_count and files_count
mattermost_create_direct_channelOpen the direct message channel between two users (it is created when it does not exist yet) and return it with its id. To send someone a…
mattermost_list_channel_postsRead the messages of a channel, newest first. Returns order (post ids, newest first) and posts (a map from id to post with id, user_id…
mattermost_get_postGet one post by id: channel_id, user_id, message, create_at, update_at, edit_at, root_id (set when it is a reply), reply_count, file_ids…
mattermost_get_threadGet a whole thread: the root post and every reply. Works with the id of any post in the thread. Returns order (post ids) and posts (a map…
mattermost_list_pinned_postsList the posts pinned in a channel, as order and posts like mattermost_list_channel_posts. Pinned posts usually hold the rules, links and…
mattermost_search_postsSearch the messages of one team that this account can read. Returns order, posts (a map from id to post) and matches. The terms accept…
mattermost_create_postSend a message to a channel, or reply in a thread when root_id is given. The message is posted at once in the name of the connector's…
mattermost_update_postEdit the text of an existing post or pin and unpin it. Only the fields given are changed. Editing another person's post needs the matching…
mattermost_delete_postDelete a post. Installed switched off: the message disappears for everyone, and deleting the first post of a thread removes its replies…
mattermost_list_followed_threadsList the threads this account follows in a team (needs collapsed reply threads on the server). Returns total, total_unread_threads…
mattermost_list_post_reactionsList the emoji reactions on a post: user_id, emoji_name and create_at per reaction. An empty answer means nobody reacted
mattermost_add_reactionReact to a post with an emoji in the name of the connector's account, for example to acknowledge a request. Returns the reaction. A…
mattermost_remove_reactionRemove one of this account's own emoji reactions from a post. Installed switched off like every delete
mattermost_list_post_filesList the files attached to a post: id, name, extension, size in bytes, mime_type, create_at and, for images, width and height. Only the…
mattermost_get_file_infoGet the description of one uploaded file: name, extension, size in bytes, mime_type, the post and channel it belongs to, the uploader…
mattermost_search_filesSearch the files shared in one team by file name, extension and, when the server extracts it, file content. Returns order and file_infos (a…

Example prompts

  • "Summarise what happened in the town-square channel today."
  • "Search all posts about the release freeze from the last week."
  • "Who are the members of the incident-response channel?"
  • "Reply in the thread about the outage that the fix is deployed."
  • "Show the pinned posts of the support channel."

FAQ

Does it work with Claude Code as well as Claude Desktop? Yes, point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.

Which token do I use? A bot account token (recommended for a shared assistant; a system admin enables bot accounts first) or a personal access token, which acts as you. Copy the Access Token, not the Token ID. Add a bot to every team and channel it should read or post in. On AnythingMCP Cloud the server must be public over HTTPS; a self-hosted AnythingMCP can reach a private server once an administrator allows the host.

What does it cover? Teams, channels, messages and threads, message and file search, users, pinned posts, reactions and the description of attached files (never their content). It sends messages, replies in threads, edits and pins posts and adds reactions. Channels, teams and users cannot be created, changed or removed, and files cannot be uploaded.

Which tools install switched off? mattermost_delete_post and mattermost_remove_reaction. Switch them on on the connector page only if the AI should use them.

Next steps

Was this guide helpful?

Connect Mattermost to Claude in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Mattermost in the guided setup, then add your MCP URL to Claude. No code and no server to run.

Related guides

Connectors

Connect Mattermost to ChatGPT via MCP

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Connectors

Connect Mattermost to Microsoft Copilot via MCP

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Connectors

Connect Mattermost to Cursor via MCP

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Connectors

Connect Mattermost to Gemini CLI via MCP

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Connectors

Connect Mattermost to Meta Muse via MCP

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.

Connectors

Mattermost MCP Server: Messages, Threads and Search

Mattermost team chat from any AI agent, self-hosted or Cloud: teams, channels, messages and threads, message and file search, users, pinned posts, reactions and file descriptions. Sends messages, replies in threads, edits posts and reacts in the name of a bot or user account; deleting is switched off.