Xuanzhongji 玄中記 "Stories from the mid of mystery" was an early collection of stories compiled during the Jin period 晉 (265-420) by the Daoist master Guo Pu 郭璞 (276-324). The Xuanzhongji is also called Guoshi xuanzhong ji 郭氏玄中記, or, during the Qing period 清 (1644-1911), Yuanzhongji 元中記, ´to avoid the personal name of the Kangxi Emperor 康熙帝 (r. 1661-1722), Xuanye 玄燁.
The earliest catalogues mentioning the Xuanzhongji are the bibliographical chapter Yiwen lüe 藝文略 in the encyclopedia Tongzhi 通志 and the Chongwen zongmu 崇文總目, both dating from the Song period 宋 (960-1279). These books do not name an author. However, from quotations in many other books, it can be seen that the Xuanzhongji was often attributed to Guo Pu, but the Republican scholar Lu Xun 魯迅 (1881-1936) doubts that "Master Guo" 郭氏 was indeed Guo Pu.
The Xuanzhongji included stories about strange events, extraordinary matters and persons with supernatural skills and magic powers. It can be compared with another early collection of this literary genre (zhiguai 志怪 "recording weird matters"), the Bowuzhi 博物志, but the whole composition of the Xuanzhongji was better than that of the Bowuzhi. Unfortunately the text is not preserved in its entirety.
The Qing-period 清 (1644-1911) scholar Ma Guohan 馬國翰 (1794-1857) collected surviving fragments that are included in his series Yuhan shanfang jiyi shu 玉函山房輯佚書. The Xuanzhongji is also to be found in Mao Panlin's 茆泮林 (died 1845) Shi zhong guyi shu 十種古逸書, Huang Shi's 黄奭 (1809-1853) series Hanxuetang congshu 漢學堂叢書, Ye Dehui's 葉德輝 (1864-1927) Guangutang suozhu shu 觀古堂所著書 and in Lu Xun's collection Gu xiaoshuo gouchen 古小說鉤沉.