MTG-DB
Self-hosted · AI-powered · no rate limits

Build smarter.
Powered by every card.

A complete Magic: The Gathering workshop on your own server — mirror every card from Scryfall, build and analyze decks, gauge Commander brackets, and get grounded advice from an AI that reads your local data.

Cards
115,873
Rulings
76,801
Sets
1,047
Last sync
2mos ago
Ragavan, Nimble Pilferer
Atraxa, Praetors' Voice
Sol Ring
Lightning Bolt
Cyclonic Rift
Craterhoof Behemoth
Teferi, Hero of Dominaria
Thoughtseize
Everything in one place

A card database that actually helps you play

Drop-in compatible

Swap one URL. Keep your apps.

Every response keeps Scryfall's exact JSON shape, and each Scryfall API/image URL is rewritten to point back at this server. Use it wherever you currently call api.scryfall.com.

Read the docs
# Base URL for this mirror
https://api.dtmdeck.com
# Find a card by exact name
curl "https://api.dtmdeck.com/cards/named?exact=Black+Lotus"
# Red cards, mana value ≤ 1, cheapest first
curl "https://api.dtmdeck.com/cards/search?q=c:r+mv<=1&order=cmc"

Ready to build?

Start a deck and let the assistant tune it — curve, colors, bracket, and upgrades.