Samir Boulema18 downloadsDisplay your MTG decks and card lists in your notes.
An Obsidian plugin for Magic: The Gathering players. Paste a decklist into a code block and get a richly formatted, interactive deck view — with card previews, mana costs, prices, type grouping, and more.



MTG DeckYou can also install it directly from the Obsidian Community Plugin page.
To get the latest beta version, install using BRAT (Beta Reviewers Auto-update Tool).
BRAT, install and enable ithttps://github.com/sboulema/mtg-deck and click Add PluginCreate a code block with the language set to mtg-deck:
```mtg-deck
Deck:
4 Ragavan, Nimble Pilferer
4 Dragon's Rage Channeler
4 Murktide Regent
4 Counterspell
4 Brainstorm
4 Ponder
4 Force of Will
4 Daze
4 Lightning Bolt
4 Wasteland
12 Island
4 Volcanic Island
4 Scalding Tarn
Sideboard:
2 Pyroblast
2 Red Elemental Blast
3 Surgical Extraction
2 Grafdigger's Cage
2 Flusterstorm
4 Back to Basics
```
Standard format:
4 Lightning Bolt
4 Ragavan, Nimble Pilferer (MH2) 138
Headed format:
Deck:
4 Lightning Bolt
Sideboard:
2 Pyroblast
Arena format:
About
Name My Deck Name
Deck
4 Lightning Bolt
Sideboard
2 Pyroblast
Inline comments can be added with #:
4 Otawara, Soaring City # Is this necessary?
1 Boseiju, Who Endures # Maybe cut?
Full-line comments start with # :
# Creatures
4 Ragavan, Nimble Pilferer
To validate a decklist against a format, append the format name to the code block language:
```mtg-deck-modern
4 Lightning Bolt
4 Ragavan, Nimble Pilferer
...
```
The following rules are validated in the section footer:
Open Settings → MTG Deck to configure the plugin:
| Setting | Description |
|---|---|
| Show mana costs | Display mana cost symbols in a Cost column |
| Show card prices | Display card prices in a Price column |
| Preferred currency | Choose between USD ($), EUR (€), or TIX (Tx) |
| Show card previews | Show card image on hover |
| Show card names as hyperlinks | Link card names to their Scryfall page |
| Show buylist | Show a buylist section for missing cards |
This plugin expects your collection to be stored as CSV files with the extension .mtg.collection.csv by default.
These files are expected to be properly formed CSVs such as those generated by tools like Deckbox.
Cards where you don't own enough copies are highlighted in red, and a count shows owned vs. needed (e.g. 2 / 4). A Buylist section is automatically shown at the bottom when you're missing cards.
Name,Count,Set
Delver of Secrets // Insectile Aberration,8,MID
"Otawara, Soaring City",4,NEO
"Rona's Vortex",2,DMU
Name,Count,Set
Delver of Secrets // Insectile Aberration,1,MID
"Otawara, Soaring City",6,NEO
"Rona's Vortex",3,DMU
Ledger Shredder,5,SNC
Note that your collection will consist of the merged result of all of your CSV files.
Built with the Obsidian Plugin API and Scryfall API.
This is a fork of the original obsidian-mtg plugin.