In this paper, we describe the design of the coupling library, Jcup, and report its various applications, including the coupling between global atmospheric and oceanic models of different grid systems. Jcup is a software library mainly focused on weather/climate models and was developed for coupling the components of various models. Jcup has the flexibility to be applied to an unspecified number of components of earth system models. To achieve a high level of safety and versatility, we classified the processes of the general coupling software into processes that change the value of the data and those that do not and placed the former outside of the program and under the control of the user. Consequently, Jcup exhibits two features: (1) the correspondence relationship between grid indexes is used as input information, and (2) the user can implement an arbitrary interpolation code. Jcup was applied to atmosphere-ocean coupling, IO component coupling, and the coupling between the seismic model and structure model, and the validity and usefulness of the design were demonstrated.