SuperAPI AI Directory

yugioh-assistant

yugioh-assistant is an open-source MCP server and command-line tool for Yu-Gi-Oh!, providing judging, deck building, and market analysis capabilities, with 56 tools in total and a CLI command of ygo. It makes card rulings by reading the Lua scripts that the game engine actually runs, and can run real duels on ocgcore-wasm to verify questions. The project is provided as a standard MCP stdio server and can be connected to clients such as Claude Code, Claude Desktop, Codex, OpenCode, Cursor, VS Code, Windsurf, Gemini CLI, Cline, and Zed, and it also provides a ygo CLI for pure shell agents. All processing runs locally, and network calls are limited to read-only public APIs and are cached in the data/ directory. The project is in beta (0.10.x) and still under active development, so tool interfaces may change. The code, tests, and documentation are almost entirely written by AI agents under human supervision, and the author cautions that all outputs such as rulings and prices should be treated as leads to be verified rather than final authority. The project is a non-commercial fan project, is not affiliated with Konami or other rights holders, and the code is licensed under AGPL-3.0-only.

Open website

About this tool

Purpose

yugioh-assistant is an MCP server and CLI tool for Yu-Gi-Oh!, positioned as "a tournament-grade judge, deck builder, and market analyst that any AI agent can call via MCP". It provides 56 tools in total, with a CLI command of ygo.

Unlike most card assistants that merely restate card text, this project reads the Lua scripts that the game engine actually runs (parsing c<passcode>.lua from ProjectIgnis) and can rule on questions by running real duels via ocgcore-wasm.

Main capabilities

  • Deck intelligence: Parse, validate, build, and adjust 40–60 card decks, and check them against the live banlist.
  • Card database: Search the live card pool by stats, type, race, attribute, or archetype.
  • Rulings and simulation: Read ocgcore's Lua scripts rather than merely inferring from card text; can run real duels to verify.
  • Meta and banlist: Monthly tier data, month-over-month changes, and daily tournament shifts.
  • Market and news: Unified queries across three markets, able to rank the entire card pool, measure price movements, and explain them with news.
  • Tournament paperwork: Konami-compliant deck lists, Neuron-style deck images, and actual-size proxy card images.
  • Custom card and archetype studio: Temporary IDs, generated Lua, grid art, spec documents, and database export.

Usage

The project runs as a standard MCP server over stdio and can be connected to clients such as Claude Code, Claude Desktop, Codex, OpenCode, Cursor, VS Code, Windsurf, Gemini CLI, Cline, and Zed; it also provides a ygo CLI for pure shell agents. The installer writes one configuration entry for each client and backs up every file it edits (.ygo-<timestamp>.bak), and supports previewing first or specifying clients. The installer also handles VS Code (servers), Codex (config.toml), OpenCode (mcp.servers), and Zed (context_servers).

The runtime requires Node 24+ (ocgcore-wasm requires JSPI); Python 3 is used only for the PDF, image, and DOCX tools. To check for updates, use npx -y yugioh-assistant-mcp@latest --version, ygo doctor, and the releases page; if you need a fixed version, you can pin @0.10.0.

Data and Privacy

All processing runs locally. Network calls are read-only public APIs and are cached in the data/ directory; full sources and licenses are listed in docs/CREDITS.md. All outbound requests go through a unified HTTP client: queued per host, 250 ms interval for TCGCSV, backoff retries on 429/5xx with Retry-After support. Offline mode (ygo call <tool> --offline or YGO_OFFLINE=1) fails fast with a clear reason, and tools return available: false instead of hanging. Live answers include timestamps, 0–100 scores, badges, and a SHA-256 hash of the payload, making it easy to identify stale caches. The project has no telemetry, no accounts, and no servers; deck data never leaves the local machine. File-writing tools have path protection and refuse to write outside the project or a recognized emulator installation directory.

Language and Price Coverage

EN, JP, and AE have live price sources; KR, DE/FR/IT/SP/PT, and SC/TC do not. The relevant tools return price: null with an explanation, and will not substitute US prices or guess based on rarity.

Use Cases and Limitations

Suitable for AI agent workflows that need Yu-Gi-Oh! ruling lookups, deck-building validation, meta and banlist tracking, market price analysis, and tournament document generation. The project is in beta (0.10.x), still under active development, may contain bugs, and its tool interfaces will change. The code, tests, and documentation are almost entirely written by AI agents under human supervision; AI output is not guaranteed to be correct. All rulings, prices, and other results should be treated as leads to be verified; before acting, check the cited sources, banlist pages, and market listings. The project is a non-commercial fan project and is not affiliated with Konami Digital Entertainment, Shueisha, TV Tokyo, or Studio Dice; the code is licensed under AGPL-3.0-only, and derivative works provided over a network or distributed must remain under the same license. The Konami card template is not bundled with thepackage; download it on demand via ygo fetch-data or point YGO_KDE_TEMPLATE to your own copy.