How to Use the Deck of Cards MCP in Claude Code
Run card simulations and build game backends from your terminal. A simple, scriptable API for any card-based logic in your Claude Code workflow.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Deck of Cards MCP to Claude Code
Create your Vinkius account to connect Deck of Cards to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Scriptable decks for backend tasks
This server gives you a scriptable card deck right in your terminal. Run a command with Claude Code to `shuffle_new_deck` and pipe the resulting JSON to `jq` to grab the deck ID. It's designed for automation. From there, you can build simple shell scripts for complex tasks. A single script can `create_new_deck`, `draw_cards` for multiple players, and use `add_to_pile` to set up a full game state. It's perfect for prototyping a game backend without writing any server code.
Manage game state for headless applications
You can run an entire game logic from the command line. Use the tools to manage player hands as `piles`. Your scripts can `draw_cards`, check hand values, and `return_to_deck` at the end of a round. It works as a simple, stateful service for your automated tasks. Because Claude Code can execute these tools, you can build simple cron jobs or daemons that run simulations. For example, run a Monte Carlo simulation for a card game by repeatedly calling `shuffle_new_deck` and `draw_cards` in a loop, logging the results to a file for analysis.
Generate test data in your CI/CD pipeline
This MCP server is a solid source for test data. In a GitHub Action or other CI environment, have Claude Code use `create_partial_deck` to generate a specific hand that you know should win or lose. Then, run your game's validation logic against it. This makes your tests more reliable. Instead of using a fixed seed for randomization, you can `reshuffle_deck` to test the true randomness of a game. Or, use `draw_from_pile_random` to ensure your logic correctly handles drawing from a messy discard pile.
Set up Deck of Cards MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seedeck-of-cards-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Deck of Cards transactions." It will automatically discover and invoke the available Deck of Cards tools.
claude mcp add --transport http deck-of-cards-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Deck of Cards MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Deck of Cards MCP today
We host it, we monitor it, we maintain it. You just paste one token.