productivity
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.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.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
mattermost.mattermost_api_get | Read read | 0 | Execute a raw Mattermost API GET request. |
mattermost.mattermost_api_post | Write write | 0 | Execute a raw Mattermost API POST request. |
mattermost.mattermost_api_put | Write write | 0 | Execute a raw Mattermost API PUT request. |
mattermost.mattermost_api_patch | Write write | 0 | Execute a raw Mattermost API PATCH request. |
mattermost.mattermost_api_delete | Write write | 0 | Execute a raw Mattermost API DELETE request. |
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. |
mattermost.mattermost_list_users | Read read | 0 | List Mattermost users. |
mattermost.mattermost_search_users | Read read | 0 | Search Mattermost users. |
mattermost.mattermost_get_user | Read read | 0 | Get a Mattermost user by ID. |
mattermost.mattermost_get_user_by_username | Read read | 0 | Get a Mattermost user by username. |
mattermost.mattermost_create_user | Write write | 0 | Create a Mattermost user. |
mattermost.mattermost_patch_user | Write write | 0 | Patch a Mattermost user. |
mattermost.mattermost_deactivate_user | Write write | 0 | Deactivate or activate a Mattermost user. |
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_team | Read read | 0 | Get a Mattermost team. |
mattermost.mattermost_create_team | Write write | 0 | Create a Mattermost team. |
mattermost.mattermost_patch_team | Write write | 0 | Patch a Mattermost team. |
mattermost.mattermost_list_team_members | Read read | 0 | List Mattermost team members. |
mattermost.mattermost_add_team_member | Write write | 0 | Add a user to a Mattermost team. |
mattermost.mattermost_remove_team_member | Write write | 0 | Remove a user from a Mattermost team. |
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_list_team_channels | Read read | 0 | List channels in a Mattermost team. |
mattermost.mattermost_search_channels | Read read | 0 | Search channels in a Mattermost team. |
mattermost.mattermost_create_channel | Write write | 0 | Create a Mattermost channel. |
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_patch_channel | Write write | 0 | Patch a Mattermost channel. |
mattermost.mattermost_delete_channel | Write write | 0 | Delete a Mattermost channel. |
mattermost.mattermost_list_channel_members | Read read | 0 | List Mattermost channel members. |
mattermost.mattermost_add_channel_member | Write write | 0 | Add a user to a Mattermost channel. |
mattermost.mattermost_remove_channel_member | Write write | 0 | Remove a user from a Mattermost channel. |
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_patch_post | Write write | 0 | Patch a Mattermost post. |
mattermost.mattermost_delete_post | Write write | 0 | Delete a Mattermost post. |
mattermost.mattermost_search_posts | Read read | 0 | Search posts in a Mattermost team. |
mattermost.mattermost_get_post_thread | Read read | 0 | Get a Mattermost post thread. |
mattermost.mattermost_list_post_reactions | Read read | 0 | List reactions for a Mattermost post. |
mattermost.mattermost_create_reaction | Write write | 0 | Add a reaction to a Mattermost post. |
mattermost.mattermost_delete_reaction | Write write | 0 | Delete a Mattermost reaction. |
mattermost.mattermost_get_file_info | Read read | 0 | Get Mattermost file metadata. |