communication
Mattermost MCP, CLI, and Lua Integration for AI Agents
Mattermost integration docs for AI agents: MCP gateway setup, Mattermost CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write Bearer token auth
Mattermost for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
mattermost- route_slug
mattermost- package
mattermost- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Mattermost CLIHeadless setup and direct function calls. Mattermost MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Mattermost MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mattermost.
Claude Code Mattermost MCP setup for Claude Code. Cursor Mattermost MCP setup for Cursor. Codex Mattermost MCP setup for Codex. OpenAI Agents Mattermost MCP setup for OpenAI Agents SDK. Claude Agent SDK Mattermost MCP setup for Claude Agent SDK. Vercel AI SDK Mattermost MCP setup for Vercel AI SDK. LangChain Mattermost MCP setup for LangChain. LangGraph Mattermost MCP setup for LangGraph. CrewAI Mattermost MCP setup for CrewAI. MCP clients Mattermost MCP setup for Generic MCP Clients.
Mattermost CLI Matrix
Use these pages for direct Mattermost CLI workflows in scripts, CI, cron, and agent wrappers.
CI Mattermost CLI for CI. Cron Jobs Mattermost CLI for cron jobs. Shell Scripts Mattermost CLI for shell scripts. Headless Automation Mattermost CLI for headless automation. Coding Agents Mattermost CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
mattermost.mattermost_list_channels | Read read | 2 | List channels the current user belongs to in Mattermost. Returns channel IDs, names, types, and team associations. Use this to discover available channels before posting messages or reading posts. |
mattermost.mattermost_get_channel | Read read | 1 | Get details of a specific Mattermost channel by ID. Returns channel name, display name, type, header, purpose, and member counts. |
mattermost.mattermost_create_post | Write write | 2 | Post a message to a Mattermost channel. Provide the channel_id and the message text. Returns the created post with its ID and timestamp. |
mattermost.mattermost_list_posts | Read read | 3 | List posts in a Mattermost channel. Returns post IDs, messages, author info, and timestamps. Use page and per_page for pagination. |
mattermost.mattermost_get_post | Read read | 1 | Get a specific Mattermost post by ID. Returns the full post including message content, author, channel, and timestamps. |
mattermost.mattermost_list_teams | Read read | 2 | List teams the current user belongs to in Mattermost. Returns team IDs, names, display names, and types. Use this to discover available teams before working with channels. |
mattermost.mattermost_get_current_user | Read read | 0 | Get the profile of the currently authenticated Mattermost user. Returns username, email, display name, roles, and locale. |