Swift Tarot MCP Server logo

Swift Tarot MCP Server

Community
junebash

A Swift-based MCP (Model Context Protocol) server for tarot card readings

Publisherjunebash
Repositoryswift-tarot-mcp
LanguageSwift
Forks
2
Stars
6
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Swift Tarot MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    6 stars and 2 forks from the linked repository.

Swift Tarot MCP Server

A Model Context Protocol (MCP) server that provides tarot card reading functionality. This server allows AI assistants to draw tarot cards, perform multi-card readings, and access the complete tarot deck.

Features

LLMs are notoriously bad at randomness, similar to humans. This MCP server provides more reliable random number generation for tarot readings.

  • Flexible Card Drawing: Draw anywhere from 1 to 78 tarot cards in a single request
  • Full Deck Access: View all 78 cards in the traditional tarot deck
  • Card Images: Fetch base64-encoded images for tarot cards
  • Deterministic Testing: Uses seeded random number generation for consistent testing
  • Comprehensive Validation: Input validation with proper error handling

Installation

Prerequisites

  • Swift 5.9 or later
  • macOS 13.0 or later
  • Just command runner (optional but recommended)

Install Just (Optional)

bash
brew install just

Build and Install

  1. Clone the repository:
bash
git clone <repository-url>
cd swift-tarot-MCP
  1. Build and install the server:
bash
just install

This will build the release version and install it to /usr/local/bin/swift-tarot-MCP.

Alternatively, you can build manually:

bash
swift build -c release
sudo cp .build/release/swift-tarot-MCP /usr/local/bin/

Claude Desktop Configuration

To use this MCP server with Claude Desktop, add the following to your Claude Desktop configuration file:

macOS Configuration

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "tarot": {
      "command": "swift-tarot-MCP",
      "args": []
    }
  }
}

After Configuration

  1. Restart Claude Desktop
  2. The tarot tools should now be available in your conversations
  3. You can ask Claude to draw tarot cards, perform readings, or show the full deck

Available Tools

draw_cards

Draws one or more tarot cards for readings.

Parameters:

  • count (optional): Number of cards to draw (1-78, default: 1)

Example usage in Claude:

"Draw me a tarot card" "Draw me 5 tarot cards for a reading"

get_full_deck

Returns all 78 cards in the tarot deck.

Example usage in Claude:

"Show me the complete tarot deck"

fetch_images

Fetches base64-encoded images for tarot card URIs.

Parameters:

  • uris: Array of tarot card URIs to fetch images for

Example usage in Claude:

"Show me the image for The Fool card"

Development

Available Commands

If you have Just installed, you can use these commands:

bash
# Build the project (debug by default)
just build

# Build for release
just build release

# Run tests
just test

# Run tests with verbose output
just test --verbose

# Lint the code
just lint

# Auto-fix linting issues
just lint --fix

# Run the server locally
just run

# Clean build artifacts
just clean

# Install to system PATH
just install

# Remove from system PATH
just uninstall

Manual Commands

Without Just, you can use these Swift commands:

bash
# Build debug
swift build

# Build release
swift build -c release

# Run tests
swift test

# Run linting
swift package plugin --allow-writing-to-package-directory swiftlint

Testing

The project includes comprehensive tests covering:

  • Tarot card data structures and validation
  • Deck composition and card drawing
  • Server handler functionality
  • MCP protocol compliance
  • Deterministic behavior with seeded RNG

Run tests with:

bash
just test
# or
swift test

Architecture

The project is structured as:

  • TarotMCPCore: Core library containing tarot card logic and MCP server implementation
  • TarotMCP: Executable that runs the MCP server using stdio transport

Key Components

  • TarotCard: Enum representing major and minor arcana cards
  • TarotDeck: Static methods for card drawing and deck management
  • TarotServer: MCP server implementation
  • TarotServerHandler: Handles MCP tool calls and routing

Card Format

Cards are returned as JSON objects with card details:

json
[
  {
    "name": "The Fool",
    "imageURI": "tarot://card/major/0"
  },
  {
    "name": "Two of Cups",
    "imageURI": "tarot://card/minor/cups/2"
  },
  {
    "name": "King of Swords",
    "imageURI": "tarot://card/minor/swords/14"
  }
]

License

This project is licensed under the MIT License - see the LICENSE file for details.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "junebash-swift-tarot-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use Swift Tarot MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Swift Tarot MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Swift Tarot MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Swift Tarot MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "junebash-swift-tarot-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swift-tarot-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Swift Tarot MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Swift Tarot MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Swift Tarot MCP Server to help me with this task?
Swift Tarot MCP Server
Sure. I read it.
Here is what I found using Swift Tarot MCP Server.

Frequently asked questions

What is the Swift Tarot MCP Server MCP server used for?

Swift Tarot MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Swift Tarot MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Swift Tarot MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Swift Tarot MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Swift Tarot MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Swift Tarot MCP Server MCP to TypingMind?

Swift Tarot MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Swift Tarot MCP Server MCP provide in TypingMind?

Swift Tarot MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Swift Tarot MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Swift Tarot MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇