The Memory Alpha server automatically generates dumps of the MediaWiki database every night. These compressed XML dumps are available for download for backup purposes and for offline reading. You can click the link below to download the most recent backup of the database. Only the current version of each page is included in the download. As of October 2019, these downloads are approximately 374 megabytes in size, compressed to ~78 megabytes.
Alternatively, you can download the full database, including history (~23.7 gigabytes, compressed to ~312 megabytes, as of October 2019).
Remember that Memory Alpha content is licensed under the Creative Commons BY-NC license. Redistribution of the information in these dumps is permitted under the terms of the license, provided that full credit for the material is given to Memory Alpha, and that the material is not used for commercial purposes.
Images and uploaded files
Unlike the article texts themselves, most images on Memory Alpha are neither licensed under the CCL nor are in the public domain. In order to preserve the fair use terms under which the images and files are used on Memory Alpha, they are not available for batch download along with the database dumps themselves.