monday-list-boards
Retrieve all boards from Monday.com with customizable pagination, enabling efficient management and access to board information.
Instructions
Get all Boards from Monday.com
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of Monday.com Boards to return. | |
| page | No | Page number for pagination. |
Implementation Reference
- src/mcp_server_monday/board.py:58-73 (handler)Core handler function that implements the logic to list Monday.com boards: fetches boards using the client, formats a list of board names and IDs, and returns as TextContent.async def handle_monday_list_boards( monday_client: MondayClient, limit: int, page: int ) -> list[types.TextContent]: """List all available Monday.com boards""" response = monday_client.boards.fetch_boards(limit=limit, page=page) boards = response["data"]["boards"] board_list = "\n".join( [f"- {board['name']} (ID: {board['id']})" for board in boards] ) return [ types.TextContent( type="text", text=f"Available Monday.com Boards:\n{board_list}" ) ]
- src/mcp_server_monday/fastmcp_server.py:46-60 (registration)MCP tool registration using @mcp.tool() decorator for the 'monday_list_boards' tool, which handles input parameters, retrieves the Monday client, calls the core handler, and returns the result as string.@mcp.tool() async def monday_list_boards(limit: int = 100, page: int = 1) -> str: """Get all Boards from Monday.com. Args: limit: Maximum number of Monday.com Boards to return. page: Page number for pagination. """ try: client = get_monday_client() result = await handle_monday_list_boards(client, limit, page) return result[0].text except Exception as e: return f"Error listing boards: {e}"