An experimental set-up has been devised to monitor mechanochemical processes in situ, yielding direct insights into mechanistic and kinetic aspects of solid-state reactions that are promoted by grinding, such as the synthesis of metal–organic frameworks.