Lorcana MCP Playtest Platform
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lorcana MCP Playtest PlatformStart a match between my Amber/Steel deck and a Sapphire/Ruby deck"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lorcana MCP Playtest Platform
A local platform for AI-vs-AI Disney Lorcana matches. AI players connect over the Model Context Protocol (Streamable HTTP) and play exclusively through JSON tool calls; humans watch a live visual spectator board in the browser.
@lorcana/engine— deterministic TypeScript rules engine + JSON effect DSL (turn structure, inkwell, quest/challenge, all keywords, songs, shift, locations, 20-lore win, deck-out, seeded replay).@lorcana/card-data— normalizes the official bulk dump (lorcana-api.com) into 2,487CardDefinitions and auto-generates DSL scripts for every card (seepackages/card-data/dist-data/coverage.jsonfor the translation-tier report).@lorcana/mcp-server— MCP server (SDK 1.30.0) at/mcp+ spectator REST/SSE API.@lorcana/ui— React spectator app (dark ink theme, live SSE updates, card art).@lorcana/bots— heuristic MCP client that plays both seats (MCP-compliance proof).
Quickstart
npm install # at repo root (requires a filesystem that supports symlinks)
npm run build # builds all packages (card-data → engine → mcp-server → bots → ui)
npm start # serves MCP + API + UI on http://localhost:8787Run an AI-vs-AI match between two decklists (dreamborn/inktable text format):
npx tsx packages/bots/src/run-match.ts \
--server http://localhost:8787 \
--deckA "$(cat data/acceptance/deck-emerald-sapphire.txt)" \
--deckB "$(cat data/acceptance/deck-amber-emerald.txt)" \
--games 4 --seed 42 --verboseThen open the printed spectatorUrl (or just http://localhost:8787) to watch live.
Related MCP server: hearthstone-oracle
Connecting your own AI (MCP)
Point any MCP client at http://localhost:8787/mcp (Streamable HTTP transport).
Typical session:
lorcana_search_cards/lorcana_get_card— explore the card pool (real text + stats).lorcana_validate_deck→lorcana_import_deck— register a 60-card deck (4 Card Name - Subtitletext format; ≤2 inks, ≤4 copies).lorcana_create_match— returnsmatchId+ one seat token per player.Loop:
lorcana_get_state(fog-of-war view for your seat) →lorcana_get_legal_actions(fully enumerated, ready-to-submit) →lorcana_play_action. Match ends at 20 lore / deck-out /lorcana_concede.
All tool errors use { ok:false, error:{ code, message } }.
State is persisted after every action (data/matches/*.json) — the server resumes
matches across restarts.
Card scripts & the effect DSL
Cards contain no code. Every card has a JSON script (dist-data/scripts.json) of
triggers / activated abilities / continuous effects over a small effect vocabulary
(DRAW, DEAL_DAMAGE, BANISH, ADD_MODIFIER, CHOICE, FOR_EACH, IF, …) with selector-based
targeting. Scripts were auto-generated from printed card text:
full — every ability sentence translated (1,195 cards)
partial — keywords + some abilities (428)
vanilla — stats/keywords only (864; they still play correctly as stat cards)
To regenerate: npm run build-data -w @lorcana/card-data. To hand-improve a card,
edit its entry in scripts.json following packages/engine/src/effects/dsl.ts.
Known rules limitations
~32% of ability sentences are not yet translated (see
coverage.jsonhistogram); affected cards play with keywords/stats only. Sets 10–12 are ~72% sentence-matched; set 13 is not in the bulk dump yet.Boost / put-under / cost reduction are modeled in the engine; remaining exotic triggers still map to the closest available trigger, and some unique effects (discard→under, play-from-under, deck-ordering) remain documented no-ops.
Core format deck construction only (≤2 inks). Illumineer's Quest cards excluded.
Bulk playtest datapoints:
run-match.ts --metrics out.jsonlwrites one JSON line per game (winner, turns, lore, eventCounts).
See packages/*/README.md for per-package contracts and deviation logs. SPEC.md is
the architecture source of truth.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
CompanyLens is a remote MCP server giving AI agents instant access to official company registry data across 19 jurisdictions in Europe, the Americas, and Asia-Pacific. Eighteen read-only tools let you search companies and people, look up officers and beneficial owners, map corporate networks through shared directors, screen names against the UK disqualified directors register, find every company at a registered address, and pull filing history — all from a single connector. Visit our website: https://companylens.io
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP-first toolbox for agents: KV storage, auth, queue, and utility tools. Free in early access.
Related MCP Servers
- AlicenseAqualityCmaintenanceDisney Lorcana TCG MCP server -- card search, deck analysis, and franchise browsing powered by LorcanaJSON.7443MIT
- AlicenseAqualityCmaintenanceHearthstone MCP server with card search, deck analysis, and strategy coaching. Gives LLMs access to every Hearthstone card plus built-in strategy knowledge for deck building and gameplay advice.9321MIT
- AlicenseAqualityDmaintenanceProvides AI assistants with 69 tools, 19 prompts, and 21 resources for deep access to Magic: The Gathering, including card data, combos, draft analytics, Commander metagame, competitive constructed, sideboard strategy, deck building, and rules engine, working with any MCP client.5620MIT
- AlicenseAqualityBmaintenanceAn MCP server for searching and aggregating Disney Lorcana cards, enabling card lookup, deck building, and statistical analysis.101MIT