hearthstone-oracle
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
hearthstone-oracle
Hearthstone MCP server with card search, deck analysis, and strategy coaching. Gives LLMs access to the full Hearthstone card pool plus built-in strategy knowledge for deck building and gameplay advice.
Forked from gregario/hearthstone-oracle, published as @xenos2104/hearthstone-oracle. Card data is fetched online from HearthstoneJSON at runtime.
Requirements
Node.js 18+ (tested on Node 24;
.nvmrcpins 20)Network access on first run (card data download); no API key
Related MCP server: mtg-mcp
Setup
npm install
npm run build
npm startnpm start launches the server on stdio — it is a long-running process, not a CLI. It is meant to be spawned by an MCP client, not typed into a terminal. For a first check, see the smoke test below.
Registering with an MCP client
The server speaks stdio JSON-RPC, so a client needs the absolute path to node and to dist/server.js.
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"hearthstone-oracle": {
"command": "node",
"args": ["C:\\path\\to\\hearthstone-oracle\\dist\\server.js"]
}
}
}Claude Code:
claude mcp add hearthstone-oracle -- node "$(pwd)/dist/server.js"Keep stdout clean: all diagnostic logging goes to stderr (required, since stdout carries JSON-RPC frames).
Tools
Tool | Description |
| Search cards by name, text, class, cost, type, rarity, set, or keyword |
| Get complete details for a specific card with fuzzy matching |
| Look up keyword/mechanic definitions with related cards |
| Decode a deck code into full card list with mana curve |
| Analyze a deck's archetype, gameplan, strengths, and matchup profile |
| Learn about deck archetypes (aggro, control, combo, midrange, tempo, value) |
| Strategic identity of each Hearthstone class |
| Theoretical matchup dynamics between archetypes |
| Fundamental game concepts explained for Hearthstone |
How it works
Two layers:
Card data — the full card database from HearthstoneJSON, cached in a local SQLite file with FTS5 full-text search. On startup the server downloads the snapshot, stores it in
~/.hearthstone-oracle/cards.sqlite, and skips the download while the snapshot is younger than 7 days. If a refresh fails, the server keeps serving the cached data.Strategy knowledge — curated strategy content (archetypes, class identities, matchup theory, core concepts) seeded into the same database on every start. This is what makes the server a coach rather than a card dump.
Source layout:
src/server.ts MCP entry point — registers the 9 tools, runs the pipeline
src/data/db.ts SQLite open + schema init
src/data/schema.sql Tables, FTS5 index, triggers
src/data/hearthstone.ts HearthstoneJSON fetch + transform + ingest
src/data/pipeline.ts 7-day TTL refresh, graceful degradation
src/data/strategy-seed.ts Layer-2 strategy knowledge
src/knowledge/ Rule-based archetype classifier
src/tools/ One file per MCP tool
src/format.ts Tool output formatting
tests/ Vitest suite (in-memory SQLite)Configuration
Variable | Default | Purpose |
|
| Where the SQLite database and |
| unset | Set to |
Tests
npm test # single run
npm run test:watchThe suite uses in-memory databases (getDatabase(':memory:')) and never touches the network or ~/.hearthstone-oracle.
Data
Card data provided by HearthstoneJSON by HearthSim, auto-extracted from game files, unrestricted use.
Note: dbfIds are not stable across HearthstoneJSON snapshots, so deck codes crafted against older clients may show a few cards as "Unknown card" until the local snapshot refreshes. See CLAUDE.md for the full explanation.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A living memory and world-building layer for your AI: cards, worlds, personas and agent dispatch.
Build study flashcards and exam-prep decks from your AI chat, all stored locally.
Build and study spaced-repetition flashcards with your agent.
Web search, point-in-time crypto market data, verified strategy track records and 160+ agent tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceHearthstone 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.92MIT
- FlicenseNot gradedqualityBmaintenanceProvides Magic: The Gathering card, deck, provider, and statistical evidence tools for LLMs to make informed deckbuilding decisions.-
- AlicenseAqualityBmaintenanceConnects Claude to Disney Lorcana card data to enrich collections, search cards, find song synergies, and analyze decks.14270 PyPI9MIT
- AlicenseAqualityCmaintenanceEnables an AI assistant to search real card data, check legality and points, validate or save decks, pull rulings, and review tournament meta for TCG Advanced and Genesys. It exposes tools for card search, archetype lookup, deck validation, meta snapshots, and optional turn-1 line search.12MIT