This question already has an answer here:
I am going to write a program to manage my library of Magic cards and I am looking for a database file or list of all of the cards that have been released. I know that the Gathering site is useful, but it limits the number of cards I can return in a search. I would happily accept a spreadsheet file, database file, or even a text file.
The more information contained in the database, the better. Having associated images would just be fantastic, but at this point I would settle for names and basic stats of the cards.