About DeckOfCardsMCP
DeckOfCardsMCP is an MCP server in the Commerce category: this project exposes the deckofcardsapi.com endpoints via an MCP server built with FastMCP.
Install
git clone https://github.com/rsc1102/DeckOfCardsMCPThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (10)
add_to_pileMove specified cards into a named pile.
Parameters not published.
create_deckCreate a new deck, optionally combining multiple decks.
Parameters not published.
create_partial_deckBuild a deck limited to specific card codes.
Parameters not published.
draw_cardsDraw one or more cards from a deck.
Parameters not published.
draw_from_pileDraw explicit cards, or use `position` (`top`, `bottom`, `random`) with an optional `count`.
Parameters not published.
get_deck_stateRetrieve the current deck metadata.
Parameters not published.
list_pile_cardsInspect the cards stored in a pile.
Parameters not published.
return_cardsReturn cards from the deck or a pile back to the main deck.
Parameters not published.
shuffle_deckShuffle an existing deck, with the option to only shuffle remaining cards.
Parameters not published.
shuffle_pileShuffle the cards stored in a pile.
Parameters not published.
Ask AI
Ask AI about DeckOfCardsMCP
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
🃏 Deck of Cards MCP Server
This project exposes the deckofcardsapi.com endpoints via an MCP server built with FastMCP.
Cloud Hosting Link: https://fastmcp.cloud/app/deck-of-cards
Local Setup
- Install uv package manager.
- Install dependencies:
uv sync - Run the server:
bash run.sh server - Run tests:
bash run.sh tests
Available tools
create_deck: Create a new deck, optionally combining multiple decks.create_partial_deck: Build a deck limited to specific card codes.shuffle_deck: Shuffle an existing deck, with the option to only shuffle remaining cards.draw_cards: Draw one or more cards from a deck.get_deck_state: Retrieve the current deck metadata.add_to_pile: Move specified cards into a named pile.draw_from_pile: Draw explicit cards, or useposition(top,bottom,random) with an optionalcount.list_pile_cards: Inspect the cards stored in a pile.shuffle_pile: Shuffle the cards stored in a pile.return_cards: Return cards from the deck or a pile back to the main deck.
All tools propagate Deck of Cards API errors as MCP ToolErrors with descriptive messages.
Note
- Jokers are not supported.
- Pile names must be 1-32 characters using only letters, numbers, hyphen, or underscore.
- Piles do not work with multiple decks.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.