KosmoKrator

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_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Mattermost MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mattermost.

Mattermost CLI Matrix

Use these pages for direct Mattermost CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.