In 1862, he was appointed vice-consul to Japan and became one of the first Protestant missionaries to work there. His tract translated into Japanese was the first Protestant literature in Japan. The McCartees returned to Ningpo in 1865 to resume their missionary work. In 1872, they were transferred to the Shanghai mission but resigned shortly thereafter so that Dr. McCartee could join the Shanghai consular staff as interpreter and assessor to the Mixed Court. In 1872, when the
coolies of the Peruvian ship Maria Luz were freed by the Japanese government upon his suggestion, a commission was appointed from
Beijing to proceed to Tokyo to bring home the freed men, and McCartee was nominated secretary and interpreter, receiving for his services a gold medal and complimentary letters. While on this Chinese government assignment to Japan, McCartee remained in
Tokyo as professor of law and science at the Imperial University (now Tokyo University), curator of the botanical gardens, and later secretary to the Chinese Legation there until 1877. In 1879, he advised
Ulysses S. Grant, the former U.S. president, mediating on the
Ryukyu Islands, although both China and Japan rejected his compromise. McCartee returned to the United States in 1880, and in 1882, visited
Hawaii on business connected with Chinese immigration. In 1885, Dr. McCartee was appointed consul to the Japanese legation in
Washington, DC. Two years later, the McCartees were reappointed by the Presbyterian Board of Foreign Missions to the Japan Mission, where they served until Dr. McCartee's retirement in 1899. That year, he returned to the US as an invalid, and died in San Francisco on July 17, 1900. Divie McCartee devoted nearly forty years of his life to work among the Chinese and Japanese. The Chinese Government gave him a gold medal in recognition of his services in connection with the suppression of the
Macau coolie traffic, and later he received the title of Consul General for services in the Chinese legation. From the Japanese Government he received the decoration of the Fifth
Order of the Rising Sun. He left a wife and four brothers-Peter, Robert, George, and Charles McCartee. His remains were buried at
Newburgh, New York. ==Archival collections==