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.
Available Tools
get_thread— get thread content by post IDget_post— get single post by IDget_channel_posts— get channel messagessearch_posts— search messageslist_channels— list channels in teamget_user— get user info by IDsend_message— send message to channelget_unread— get unread messages, threads, and channel summarytest_connection— test Mattermost connection











