Swift Tarot

Swift Tarot is an MCP server that provides tarot card drawing functionality, spread generation, and card asset access for AI assistants such as Claude Desktop. Large language models frequently struggle with generating uniformly distributed pseudo-random numbers, leading to repetitive or biased outcomes in divination scenarios. This server connects external Swift-based card management logic to an MCP client over standard input/output, ensuring reliable card shuffling and retrieval from the standard 78-card deck. Users interested in entertainment, creative writing, divination, or symbolic reflection can use this server to request single card draws, multi-card readings of any size up to 78 cards, or entire deck listings. In addition to returning structured card data—including card names and tarot URIs representing both Major and Minor Arcana—the server allows clients to retrieve base64-encoded card images for visual presentation during conversations. Developers and enthusiasts can build, run, and test the server natively on macOS using Swift tools, taking advantage of deterministic seeding for repeatable tests alongside robust input validation.

Category: Other & General Purpose

Tags: cards, divination, entertainment, tarot

Visit Swift Tarot

How to install and configure Swift Tarot

Follow these steps to build and configure Swift Tarot on macOS: 1. Ensure Swift 5.9+ and macOS 13.0+ are installed. 2. Clone the repository and navigate to the project directory: bash git clone https://github.com/junebash/swift-tarot-mcp cd swift-tarot-MCP 3. Build and install the binary using just or manual Swift commands: bash just install Or manually: bash swift build -c release sudo cp .build/release/swift-tarot-MCP /usr/local/bin/ 4. Add the server to your Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json: json { "mcpServers": { "tarot": { "command": "swift-tarot-MCP", "args": [] } } } 5. Restart Claude Desktop to enable the tarot tools.

What you can do with Swift Tarot

  • Drawing a single tarot card to provide daily reflection, thematic writing prompts, or quick creative inspiration within an active Claude Desktop conversation. - Executing multi-card spreads by requesting multiple cards simultaneously, up to the full 78-card deck, with reliable non-repeating random selection. - Inspecting the full composition of standard Major and Minor Arcana cards for educational overviews and symbolic reference guides. - Fetching base64-encoded card artwork corresponding to drawn tarot URIs to display visual representations of cards alongside textual interpretations. - Running automated deterministic test suites for tarot-based application workflows using seeded pseudo-random number generator routines.

Key facts

  • https://github.com/junebash/swift-tarot-mcp
  • Other & General Purpose
  • cards, divination, entertainment, tarot

Part of MCP Servers

Related MCP servers

  • MCP Media Player — MCP Media Player is an MCP server that exposes playback controls for Home Assistant media players to AI agents. It…
  • MCP Marvel Rivals — MCP Marvel Rivals is an MCP server that provides access to Marvel Rivals game data through a standardized interface. It…
  • MCP Notify Server — MCP Notify Server is an MCP server that sends desktop notifications accompanied by audio alerts when AI agents complete tasks.…
  • MCP Notification Server — MCP Notification Server is an MCP server that sends periodic notifications at fixed intervals of every 10 seconds. Built around…
  • MCP Minecraft Remote — MCP Minecraft Remote is an MCP server that enables AI assistants to remotely connect to and control a player character…
  • MCP Montano Server — MCP Montano Server is an MCP server that provides a general-purpose TypeScript starter project designed for Model Context Protocol integration.…

How do I install Swift Tarot?

You need macOS 13.0 or later and Swift 5.9 or higher. Clone the repository, then run just install to compile and install the executable to /usr/local/bin/swift-tarot-MCP. Alternatively, you can run swift build -c release and manually copy the binary to your /usr/local/bin directory before adding the executable to your MCP configuration file.

What can Swift Tarot do?

Swift Tarot provides tools for Model Context Protocol clients to handle tarot operations. It supports drawing between 1 and 78 cards with reliable random distribution, listing all 78 cards in the deck, and retrieving base64-encoded card images via card URIs. This enables AI assistants to perform detailed readings, multi-card spreads, and visual presentations without relying on LLM-generated randomness.

Which MCP clients work with Swift Tarot?

Swift Tarot functions with any MCP-compliant client that supports local standard input and output communication, including Claude Desktop. Once the compiled swift-tarot-MCP binary is registered in your client configuration file under the mcpServers section, the client can call tarot tools such as draw_cards and get_full_deck directly in conversation.

Why use an MCP server instead of letting the AI draw cards?

Large language models are not designed for true randomness and often repeat patterns or exhibit bias when attempting to shuffle or select cards. Swift Tarot delegates card drawing to a native Swift runtime with proper random number generation and validation, ensuring fair, non-duplicative card selections across all 78 cards in the deck.

Is Swift Tarot open source?

Yes, Swift Tarot is open source software published under the MIT License. The complete source code, tests, and build tooling are available on GitHub, allowing developers to inspect the implementation, contribute improvements, or modify the server to support custom card decks and spreads.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories