Skip to main content
Glama
runotwo

Mattermost MCP Server

by runotwo

Mattermost MCP Server

MCP-сервер для Mattermost. 19 инструментов: каналы, сообщения, поиск, ЛС, юзеры, файлы, реакции.

Установка

Скопируй и вставь в Claude Code / Cursor:

Настрой мне Mattermost MCP по этой инструкции: https://raw.githubusercontent.com/runotwo/mattermost-mcp/main/SETUP.md

Агент спросит креды, добавит конфиг и проверит, что всё работает.


Related MCP server: discord-mcp

Ручная настройка

Option A: Personal Access Token (рекомендуется)

{
  "mcpServers": {
    "mattermost": {
      "command": "npx",
      "args": ["-y", "github:runotwo/mattermost-mcp"],
      "env": {
        "MM_URL": "https://your-mattermost.example.com",
        "MM_TOKEN": "your_personal_access_token"
      }
    }
  }
}

Option B: Username + Password + TOTP

{
  "mcpServers": {
    "mattermost": {
      "command": "npx",
      "args": ["-y", "github:runotwo/mattermost-mcp"],
      "env": {
        "MM_URL": "https://your-mattermost.example.com",
        "MM_USERNAME": "your_username",
        "MM_PASSWORD": "your_password",
        "MM_TOTP_SECRET": "YOUR_BASE32_TOTP_SECRET"
      }
    }
  }
}

MM_TOTP_SECRET не нужен если MFA выключена. MM_TOKEN приоритетнее.


Как получить креды

Personal Access Token

  1. Mattermost → Аватарка → ProfileSecurity

  2. Personal Access TokensCreate Token → скопировать

TOTP-секрет (если потерян)

  1. ProfileSecurityRemove MFA (ввести текущий код)

  2. Add MFA заново → скопировать строку под QR-кодом

  3. Пересканировать QR в Google Authenticator


Переменные окружения

Variable

Auth

Description

MM_URL

обе

URL сервера

MM_TOKEN

A

Personal Access Token

MM_USERNAME

B

Логин

MM_PASSWORD

B

Пароль

MM_TOTP_SECRET

B*

TOTP-секрет (*опционален)

Инструменты (19)

Каналы: list_channels, list_my_channels, get_channel_info, get_channel_history, post_message, reply_to_message Сообщения: search_messages, get_thread Юзеры: list_users, get_user_info, get_user_status ЛС: list_direct_channels, get_direct_messages, send_direct_message Разное: add_reaction, get_file_info, download_file, list_teams, get_team_info

Development

git clone https://github.com/runotwo/mattermost-mcp.git
cd mattermost-mcp && npm install
cp .env.example .env
npm test

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    F
    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.
    42
    -
  • A
    license
    B
    quality
    D
    maintenance
    MCP server with over 70 tools to manage and maintain an entire Discord server.
    76
    6 npm
    1
    ISC