limit
(number, default: 20): Maximum messages to retrieve
How to use it
limit is exposed by the Matrix MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the limit tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Matrix MCP Server
claude mcp add --transport http matrix-server http://localhost:3000/mcp -H "matrix_user_id: @user1:matrix.example.com" -H "matrix_homeserver_url: https://localhost:8008" -H "matrix_access_token: ${MAOther tools in Matrix MCP Server (18)
(string): ISO 8601 format
(boolean, default: false): Include DMs with no recent messages
(array, optional): User IDs to invite initially
(boolean, default: false): Room privacy setting
(string): Message content
(enum: "text" "html" "emote", default: "text"): Message formatting
(string, optional): Reason for leaving
(string, optional): Event ID to reply to
(string, optional): Human-readable room alias
(string, optional): Specific room ID to check
(string): Matrix room ID (e.g., !roomid:domain.com)
(string): Room ID or alias to join
(string): Name for the new room
(string, optional): Filter by name or topic
(string, optional): Specific server to search
(string): ISO 8601 format (e.g., 2024-01-01T00:00:00Z)
(string): Target user's Matrix ID (e.g., @user:domain.com)
(string, optional): Room topic/description