Take the 2-minute tour ×
Board & Card Games Stack Exchange is a question and answer site for people who like playing board games, designing board games or modifying the rules of existing board games. It's 100% free, no registration required.

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.

share|improve this question
Cockatrice just scrubs Gatherer set-by-set when you set it up. Their code to do it should be open-source (you'll want to look at the oracle tool). –  Alex P May 7 '12 at 19:55
Note that technically you'd be breaking Wizard's terms of service if you scrape all the images from Gatherer. I'm sure you don't care about that if it's for personal use only… –  ghoppe May 7 '12 at 21:26
I'm guessing half the fun for you will be building the program, but just in case you didn't know, if you're using Windows, the Magic the Gathering Online client can also track collections offline. You might want to check that out because it is possible to export a csv collection file. –  ghoppe May 7 '12 at 21:56
And for those who don't take fun in programming their own tool and still need to manage their library, there are also online tools to do so. I'm using deckbox but I assume there are others as well. –  Joubarc Sep 19 '13 at 7:17
possible duplicate of Magic card database for websites –  doppelgreener Nov 5 '13 at 8:56

6 Answers 6

up vote 4 down vote accepted

You can grab a complete list here it's in .xls too! I have downloaded a copy but it looks to be someone's personal list and might disappear at any time. I don't have the ability to attach a file yet so download it quick!

If that is not what you want then your best bet would be Cockatrice but be aware of breaking the Gatherer ToS.

share|improve this answer
Where are the Gatherer TOS? –  ikegami May 24 '12 at 0:14

as an alternative, you can also get the full set of cards in JSON format - including all sets, languages, printings and detailed information - from this website: http://mtgjson.com/

This website also provides information to work with it's associated site for serving images, found here: http://mtgimage.com

these websites appear to be designed specifically for developers, with explanations of what each property in the JSON objects means.

share|improve this answer
I was playing with this over the weekend and it works quite well, there are a couple of hiccups to look out for. the "booster" attribute of each set object didn't play well with the library I used (Newtonsoft Json). And contrary to my first implementation, converted mana costs cannot be integers. Thanks unhinged! –  Patters Mar 10 '14 at 14:47

Here is it in XML and ASCII, complete from what I gather.

share|improve this answer
Appears to be actively maintained. –  John Jul 1 '14 at 11:26

For people that are still searching for a program to save you set, put in trade cards and or make a wishlist. I found this awesome site that does exactly that! http://deckbox.org/. After you have listed all of your cards, you can even see the value of your set.

share|improve this answer
I was thinking of building a similar tool to the OP. I want my collection organized by which deck each card is in, with the possibility of proxies. Does Deckbox provide this? –  thepeer Apr 2 '14 at 14:40
Sort of. You can put decklists in Deckbox, and see how many of each card is in your inventory. Unfortunately, you cannot 'tag' cards to see in which deck they are, or how many you are using across your decks. –  Jorn Aug 7 '14 at 9:44

mtgdb has an API available for retrieving cards, card images, and set lists, with results as a JSON string. This includes getting all of the cards in the DB (http://api.mtgdb.info/cards/), getting all sets (http://api.mtgdb.info/sets/), and more.

You could query the DB once and download the results to use, or you could hit the DB each time you need it, for up-to-date results.

share|improve this answer

I have not seen anyone mention this one. But MTG Studio (http://www.mtgstudio.com/) has what you are looking for. I use it to manage my collection.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.