home / mcp / mattermost mcp server

Mattermost MCP Server

MCP server using the Mattermost API

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "kakehashi-inc-mcp-server-mattermost": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-mattermost@latest",
        "--transport",
        "stdio",
        "--endpoint",
        "https://your-mattermost-server/api/v4",
        "--token",
        "your_personal_access_token",
        "--team",
        "your_team_name",
        "--channels",
        "town-square,general,your_channel_name"
      ],
      "env": {
        "MATTERMOST_TEAM": "your_team_name",
        "MATTERMOST_TOKEN": "your_personal_access_token",
        "MATTERMOST_CHANNELS": "town-square,general,your_channel_name",
        "MATTERMOST_ENDPOINT": "https://your-mattermost-server/api/v4 (base URL)"
      }
    }
  }
}

Available tools

connectMattermost

Establishes a secure, token-based connection to Mattermost endpoints and prepares the MCP server to fetch data.

fetchMessages

Queries Mattermost channels to retrieve messages according to configured channels and limits.

transportModes

Supports stdio, sse, and http-stream transports for delivering MCP data to clients.

configureChannels

Configures which Mattermost channels are monitored and sets fetch limits per channel.