Skip to main content
Glama

Mattermost MCP Server

MCP server for Mattermost with npx support.

Installation and Usage

Via npx

MATTERMOST_URL=https://mattermost.company.com \
MATTERMOST_TOKEN=your-token \
npx github:anton-sobolev-zhr/mattermost-mcp

MCPHub Configuration

{
  "mcpServers": {
    "mattermost": {
      "command": "npx",
      "args": ["github:anton-sobolev-zhr/mattermost-mcp"],
      "env": {
        "MATTERMOST_URL": "https://mattermost.company.com",
        "MATTERMOST_TOKEN": "your-token",
        "MATTERMOST_KEEPALIVE_MS": "86400000"
      }
    }
  }
}

MATTERMOST_KEEPALIVE_MS defaults to 24 hours. The server makes GET /api/v4/users/me requests to keep the session alive in configurations with ExtendSessionLengthWithActivity.

Related MCP server: time-messenger-mcp-server

Available Tools

  • get_thread — get thread content by post ID

  • get_post — get single post by ID

  • get_channel_posts — get channel messages

  • search_posts — search messages

  • list_channels — list channels in team

  • get_user — get user info by ID

  • send_message — send message to channel

  • get_unread — get unread messages, threads, and channel summary

  • test_connection — test Mattermost connection

Available Tools

9 tools
get_channel_postsC

Get posts from a channel

Inputs: channel_id (required), limit.

get_postA

Get single post content by ID

Inputs: post_id (required).

get_threadB

Get Mattermost thread content by post ID

Inputs: post_id (required).

get_unreadB

Get unread messages, threads and channels summary

Inputs: limit, team_id, include_threads, include_channels.

get_userA

Get user info by ID

Inputs: user_id (required).

list_channelsB

List channels in team

Inputs: team_id.

search_postsC

Search posts in team

Inputs: query (required), team_id.

send_messageC

Send message to channel

Inputs: message (required), channel_id (required).

test_connectionA

Test Mattermost connection

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: thread, post, channel posts, search, channels, user, message, connection, and unread summary. Even get_thread and get_post are clearly differentiated by thread vs. single post.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (get_, list_, search_, send_, test_). No mixed conventions or vague verbs.

    Tool Count5/5

    9 tools is well within the ideal 3-15 range. Each tool serves a clear purpose without redundancy or bloat.

    Completeness3/5

    The set covers reading, searching, listing, sending, and connection testing, but notably lacks update/delete operations for posts, channel creation, thread replies, and marking messages as read. These gaps are significant for a full Mattermost workflow but may be workable for read-centric use cases.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.
      44
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Rocket.Chat, enabling AI agents to interact with Rocket.Chat workspaces via tools like listing users, sending messages, and managing channels.
      2
      -