Skip to main content
Glama
README.md
# Mattermost MCP Server

MCP server for Mattermost with `npx` support.

## Installation and Usage

### Via npx

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

### MCPHub Configuration

```json
{
  "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`.

## 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

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 issues