TCGgather

Magic: The Gathering search syntax

The card search takes plain text and typed filters in one box — no mode toggle. Plain words search card names; anything with an operator becomes a filter. Anything the parser doesn't understand falls back to name search, so a query can never error.

General rules

  • field:value — operators are : = != < <= > >=. :means "has / contains".
  • Space means AND: c:w mv<=3. Use or and parentheses to group: (t:creature or t:instant).
  • - negates: -c:w excludes w.
  • Quotes keep phrases together: o:"draw a card".
  • Paste a card code on its own — m21-1 — and it searches codes as well as names. To match only a code, spell the field: code:m21-1. A whole set is set:, not code:.
  • Colour-type fields compare as sets: : and >=mean "has all listed", = exactly, <= "only these" (fits-my-deck), != none of them. Single-letter codes combine where the game has them.

Fields

FieldAliasesMatchesOperatorsExample
nnametext — `:` contains, `=` exact: = !=n:value
ttypetext — `:` contains, `=` exact: = !=t:value
rraritytext — `:` contains, `=` exact: = !=r:value
ssettext — `:` contains, `=` exact: = !=s:value
otext, oracle, effectrules text (full-text search): =o:"draw a card"
ownedcards already in your collection (requires signing in): = !=owned:yes
ccolorcolour set — see the set-membership rules above: = != < <= > >=c:w
ididentity, cicolour set — see the set-membership rules above: = != < <= > >=id:w
mvcost, cmcnumber: = != < <= > >=mv<=3
kkeywordlist — `:` contains, `=` exact entry: = !=k:value
powpowernumber: = != < <= > >=pow<=3
toutoughness, toughnumber: = != < <= > >=tou<=3
loyloyaltynumber: = != < <= > >=loy<=3
tltypelinetext — `:` contains, `=` exact: = !=tl:value
mcmanacosttext — `:` contains, `=` exact: = !=mc:value
cncode, number, collectorprinted card code, exact — `set-number`, or just the number: = !=cn:m21-1

Examples are live links — click one to run it.