tarot-mcp-server
# Tarot MCP Server
An open-source [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server and factual 78-card Rider-Waite tarot dataset for AI assistants (Claude Desktop, Cursor, Windsurf, Claude Code, and any MCP-compatible client).
Maintained by **[Tarot Fortune Cards](https://tarotfortunecards.art)** — a free, no-signup online tarot reading experience.
## Features
- **100% Local & Zero API Keys**: Runs locally over stdio using Node.js with no external API dependency.
- **Complete 78-Card Factual Dataset** (`data/tarot-cards-78.json`): Every Major and Minor Arcana card with suit, element, astrology correspondence, upright & reversed keywords, concise meanings, yes/no leanings, and reference guide links.
- **Cryptographically Fair Card Draws**: Uses Node's `crypto.randomInt` (Fisher-Yates shuffle) for fair, duplicate-free spreads.
- **4 MCP Tools + 2 MCP Resources**: Ready out of the box for card lookups, spreads, keyword filtering, and raw JSON dataset access.
## Available Tools
| Tool | Description |
|---|---|
| `lookup_tarot_card` | Look up any of the 78 Rider-Waite cards by name, slug, or ID (supports fuzzy matching like `"moon"` or `"king of swords"`). |
| `draw_tarot_cards` | Draw 1–10 unique cards using `crypto.randomInt` with preset spreads (`single`, `yes_no`, `three_card`, `love_three_card`, `decision_five_card`, `custom`), reversal control, and Major/Minor filtering. |
| `search_tarot_cards` | Search and filter cards by free-text keyword, arcana, suit, element (`fire`, `water`, `air`, `earth`), or upright yes/no leaning. |
| `list_tarot_spreads` | List classic spread definitions, position labels, and recommended use cases. |
## Available Resources
- `tarot://cards/all` — Full 78-card Rider-Waite factual reference dataset (`application/json`).
- `tarot://spreads/all` — Classic tarot spread layouts and position definitions (`application/json`).
## Quick Start
### 1. Clone and install
```bash
git clone https://github.com/mazycc/tarot-mcp-server.git
cd tarot-mcp-server
npm install
npm test
```
### 2. Configure in Claude Desktop / Cursor / Claude Code
Add to your MCP configuration (`claude_desktop_config.json` or `.cursor/mcp.json`):
```json
{
"mcpServers": {
"tarot": {
"command": "node",
"args": ["/absolute/path/to/tarot-mcp-server/src/index.js"]
}
}
}
```
### 3. Run with Docker
```bash
docker build -t tarot-mcp-server .
docker run -i --rm tarot-mcp-server
```
## Example Prompts
- *"Draw a 3-card love spread using the tarot tool and explain how the cards interact."*
- *"Look up The Moon tarot card and give me its upright vs. reversed yes/no leaning."*
- *"Search for all upright Swords cards with a 'yes' leaning."*
## Reference Guides
Want an interactive browser pull with full card artwork? Try the free web reader on **[Tarot Fortune Cards](https://tarotfortunecards.art)**:
- [Free Yes or No Tarot Reading](https://tarotfortunecards.art/yes-no-tarot)
- [Free Love Tarot Reading](https://tarotfortunecards.art/love-tarot-reading)
- Card Guides: [King of Swords Yes or No](https://tarotfortunecards.art/king-of-swords-yes-or-no) · [King of Cups Yes or No](https://tarotfortunecards.art/king-of-cups-yes-or-no) · [Nine of Wands Yes or No](https://tarotfortunecards.art/nine-of-wands-yes-or-no) · [The Moon Yes or No](https://tarotfortunecards.art/the-moon-yes-or-no)
## Dataset Schema (`data/tarot-cards-78.json`)
Each entry contains strictly factual Rider-Waite reference metadata:
```json
{
"id": "major-18",
"slug": "the-moon",
"name": "The Moon",
"arcana": "major",
"suit": null,
"number": 18,
"element": "water",
"astrology": "Pisces",
"yes_no_upright": "maybe",
"yes_no_reversed": "no",
"keywords_upright": ["illusion", "fear", "anxiety", "intuition", "subconscious"],
"keywords_reversed": ["release of fear", "clarity", "truth revealed", "repression"],
"meaning_upright": "Illusion, fear, and the subconscious. Not everything is as it appears; navigate carefully by intuition.",
"meaning_reversed": "Release of fear, clarity emerging, or repressed emotions surfacing. The fog is lifting.",
"guide_url": "https://tarotfortunecards.art/the-moon-yes-or-no"
}
```
## License
MIT — free to use, fork, and integrate in your own projects with attribution to [Tarot Fortune Cards](https://tarotfortunecards.art).
TDQS
Scored across 4 tools
Each tool has a distinct role: draw (random selection), list spreads (spread metadata), lookup (exact identifier retrieval), and search (filtered discovery). Lookup vs. search could be momentarily confused, but the descriptions clarify that one is keyed retrieval and the other is keyword/filter search.
All four tools follow a clean verb_tarot_noun(s) snake_case pattern (draw_tarot_cards, list_tarot_spreads, lookup_tarot_card, search_tarot_cards). The singular/plural variation tracks the object being returned, so it remains predictable.
Four tools is a tight, well-scoped surface for a focused tarot domain, and each tool earns its place. It is on the lean side—no tool for composing a full reading—but nothing is redundant.
Core workflows are covered: draw cards with orientations and spread positions, discover spreads, and look up or search the card dataset for interpretations. Minor gaps exist around fetching a single spread by ID or assembling/recording a completed reading, but agents can work around these by combining draw with lookup.