# DeckCosmos > DeckCosmos is a free, unofficial synergy explorer and deck builder for Magic: The Gathering, focused on Commander. For any card it lists the cards that work best with it and explains why (for example "Ashnod's Altar sacrifices creatures on demand; Blood Artist pays off every time a creature dies"). AI agents can use all of it through a free MCP server (https://deckcosmos.com/mcp) and REST API (https://deckcosmos.com/api/v1/); see the API section below. Each of the 17,748 most-played cards has a static, plain-HTML page at https://deckcosmos.com/card// with its rules text, its roles (what it provides and what it rewards), format legality, and its top 20 synergies with a one-line reason for each. Slugs are the lowercase card name with punctuation removed and spaces as hyphens. ## Card pages - [Krenko, Mob Boss](https://deckcosmos.com/card/krenko-mob-boss/): Legendary Creature — Goblin Warrior - [Blood Artist](https://deckcosmos.com/card/blood-artist/): Creature — Vampire - [Arcades, the Strategist](https://deckcosmos.com/card/arcades-the-strategist/): Legendary Creature — Elder Dragon - [Doubling Season](https://deckcosmos.com/card/doubling-season/): Enchantment - [All cards, A to Z](https://deckcosmos.com/cards/): 17,748 card pages ## Interactive app - [Synergy map](https://deckcosmos.com/): JavaScript app. Deep links use the URL fragment: https://deckcosmos.com/#card= opens a card, e.g. https://deckcosmos.com/#card=Krenko,+Mob+Boss. Other fragments: find= (card search, e.g. find=rat+deathtouch), rule= (Comprehensive Rules, e.g. rule=702.19). - [About](https://deckcosmos.com/about/): how synergies are computed ## API and MCP server (for AI agents) Everything the website does is available to AI assistants and code, free and without a key. Docs: https://deckcosmos.com/developers/ - MCP server (Streamable HTTP, no auth): https://deckcosmos.com/mcp. Tools: search_cards, get_card, get_synergies, deck_synergies, find_combos, build_deck, check_deck, simulate_deck, draw_odds, sample_hand, lookup_rules, reference. Prompts: build_commander_deck, deck_from_idea, review_my_deck, card_synergies, rules_question. Registry name: com.deckcosmos/deckcosmos; Server Card: https://deckcosmos.com/mcp/server-card - Full reference as plain text (every argument and result field): https://deckcosmos.com/llms-full.txt - REST API: https://deckcosmos.com/api/v1/ (GET with query parameters or POST JSON), OpenAPI 3.1 at https://deckcosmos.com/api/openapi.json. E.g. https://deckcosmos.com/api/v1/synergies?card=Blood+Artist&limit=10, https://deckcosmos.com/api/v1/build?commander=Krenko,+Mob+Boss&bracket=3, https://deckcosmos.com/api/v1/search?query=black+rat+deathtouch - Static JSON per card page: https://deckcosmos.com/api/v1/cards/.json (details, roles, build plan, top synergies with reasons, combos); index at https://deckcosmos.com/api/v1/cards.json; commanders with build plans at https://deckcosmos.com/api/v1/commanders.json - search_cards (/api/v1/search): Find cards with a plain-words query, the same as the website's card finder. Words are read as creature types ("rat"), keywords ("deathtouch", "first strike"), card types ("artifact", "legendary"), colors ("black") or rules-text words ("sacrifice", "draw"); e.g. "elf lord", "black rat deathtouch", "artifact sacrifice draw". Optionally filter by role (what the card does, see reference/roles), format, color identity and price. Sorted by popularity unless asked otherwise. - get_card (/api/v1/card): Everything DeckCosmos knows about one card: rules text, type, color identity, legality, price, popularity rank, Game Changer status, its roles (what it provides and rewards), whether it can be a commander, and for commanders a build plan (strategy summary, key cards, finishers). Accepts exact names, front-face names of double-faced cards, and close spellings. - get_synergies (/api/v1/synergies): The cards that work best with a given card, ranked, each with the reason it works ("Ashnod's Altar sacrifices creatures on demand; Blood Artist pays off every time a creature dies"). The website's synergy map for one card. Synergies are mechanical (roles that fit together, tribes, keyword payoffs, known combos), weighted by popularity. - deck_synergies (/api/v1/deck-synergies): For a group of cards (a deck idea, a pile of favorites): which pairs work together and why, and the cards that work with several of them at once, the best additions. The website's deck tray view. - find_combos (/api/v1/combos): Known combos from Commander Spellbook. With "card": the most-played combos that include it. With "cards" (a deck or a pile): the combos already complete in it, and the ones a single added card would complete. Each combo lists its cards, results (e.g. "Infinite mana"), popularity and a link to its steps. - build_deck (/api/v1/build): Build a complete, legal deck, the same as the website's deck builder. Commander (default): 100 cards around a commander, using its build plan, synergies, a role balance (ramp, draw, removal, wipes, protection), a mana base sized by Frank Karsten's formulas, and a target power bracket (2 core, 3 upgraded, 4 optimized; Game Changers and infinite combos follow the bracket). Three ways to choose: give a commander (or any card to build around), or criteria (theme, creature type, colors) and the best-fitting commander is picked, or nothing for a random popular commander. Also builds 60-card Standard, Pioneer, Modern, Legacy and Pauper decks around a card. Returns the list in sections with a reason per card, the bracket estimate, combos in the deck, warnings, a paste-ready deck_text and a share_url. A build takes a few seconds. - check_deck (/api/v1/check): Analyze an existing deck, the same as the website's "Check a deck": legality (size, singleton, color identity), counts of ramp, card draw, removal, board wipes and protection against typical ranges, color sources per color vs. what the most demanding card needs, mana curve, bracket estimate with reasons (Game Changers, combos), complete and one-card-away combos, the commander's build-plan key cards it has and lacks, the cards least connected to the deck (cut candidates) and upgrade ideas. Takes a few seconds. - simulate_deck (/api/v1/simulate): Monte Carlo consistency test, the same as the website's playtest simulator: plays the deck alone thousands of times and reports mulligan, mana screw and flood rates, lands and mana by turn, when the commander gets cast, how often a build-plan key card is drawn by turn 4, and how much mana gets used. - draw_odds (/api/v1/odds): Exact (hypergeometric) chance of drawing at least N of something by a given turn, with the table for turns 1-10, the same as the website's odds calculator. Target: "lands", "role:" (e.g. role:land_ramp) or a card name. - sample_hand (/api/v1/hand): Shuffle the deck and draw a random 7-card opening hand (the commander stays in the command zone), plus optionally the next draws. - lookup_rules (/api/v1/rules): Look up the official Comprehensive Rules: by number ("702.19" trample, with its subrules and examples; "702" lists the keyword abilities) or by term ("deathtouch", "dies", "state-based actions"), including the glossary. - reference (/api/v1/reference): The keys other tools accept: deck-builder themes, formats, card roles (for search_cards and draw_odds), synergy categories (for get_synergies) and power brackets. ## Notes - Synergies are mechanical (roles that fit together), ranked with popularity; they are suggestions, not tuned decklists. - Card data and images: Scryfall. Combo data: Commander Spellbook (commanderspellbook.com). Rules text: Wizards of the Coast Comprehensive Rules. Unofficial Fan Content under the Wizards Fan Content Policy. - Sitemap: https://deckcosmos.com/sitemap.xml