productivity
Matrix MCP, CLI, and Lua Integration for AI Agents
Matrix integration docs for AI agents: MCP gateway setup, Matrix CLI commands, Lua API reference, credentials, and function schemas.Matrix 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 |
|---|---|---|---|
matrix.matrix_list_rooms | Read read | 2 | List rooms the authenticated user has joined on Matrix. Returns room IDs, names, and aliases. |
matrix.matrix_get_room | Read read | 1 | Get details of a specific Matrix room, including name, topic, members, and aliases. |
matrix.matrix_create_room | Write write | 4 | Create a new room on the Matrix homeserver. Returns the newly created room ID. |
matrix.matrix_send_message | Write write | 4 | Send a text message to a Matrix room. Uses a unique transaction ID to prevent duplicate messages. |
matrix.matrix_list_members | Read read | 2 | List members of a Matrix room. Returns user IDs, display names, and avatar URLs. |
matrix.matrix_get_profile | Read read | 1 | Get a Matrix user's profile information, including display name and avatar URL. |
matrix.matrix_get_current_user | Read read | 0 | Get the currently authenticated Matrix user's information, including user ID and device ID. |