An apparatus is operable to provide an anastomosis coupling two hollow organs, such as a duodenum and ileum. The apparatus includes a first component that is inserted through an enterotomy in a first hollow organ and a second component that is inserted through an enterotomy in a second hollow organ. The first and second components are brought together to o align the enterotomies and compress apposed layers of tissue adjacent to the enterotomies. The compressed tissue eventually necroses and the apparatus may be removed or simply pass through the hollow organ. Each component may include a set of pivoting links and a resilient member that is configured to both bias the links to an expanded configuration and grip the tissue adjacent to the enterotomy. The components may include magnets that secure the positioning of the components relative to each other and provide a compressive force on the apposed tissue.