This document provides a detailed reference for the Pokémon TCG MCP Server API. This API allows you to retrieve comprehensive data about Pokémon TCG cards, sets, and more.
All API endpoints are relative to the following base URLs:
https://pocket-monster-tcg-mcp.onrender.com/http://127.0.0.1:5000/
A simple endpoint to confirm that the server is running.
/GETtext/plainPokémon TCG MCP Server is running!
Searches for Pokémon TCG cards based on various criteria. Supports pagination.
/cardsGETname (string, optional): The full or partial name of the card (e.g., Pikachu).set (string, optional): The name of the set the card belongs to (e.g., Base).type (string, optional): The card’s type (e.g., Fire).rarity (string, optional): The card’s rarity (e.g., Rare Holo).page (integer, optional, default: 1): The page number for results.limit (integer, optional, default: 20): The number of results per page.application/json{
"status": "success",
"results": [
{
"id": "base1-4",
"name": "Charizard",
"...": "..."
}
],
"pagination": {
"total_items": 1,
"total_pages": 1,
"current_page": 1,
"items_per_page": 20
}
}
set, type, rarity, supertype, or subtype parameters, the response may include a suggestions object with corrected values.
{
"status": "not_found",
"query": {
"type": "Lighting"
},
"message": "No Pokémon cards found.",
"suggestions": {
"type": "Did you mean 'Lightning'?"
}
}
Retrieves a specific Pokémon TCG card by its unique ID.
/cards/{card_id}GETcard_id (string, required): The unique ID of the card (e.g., base1-4).application/json{
"status": "success",
"card": {
"id": "base1-4",
"name": "Charizard",
"...": "..."
}
}
Fetches the TCGPlayer market price for a specific card by its name.
/card_priceGETcard_name (string, required): The full name of the card (e.g., Charizard).application/json{
"status": "success",
"card_name": "Charizard",
"prices": {
"holofoil": 120.50
}
}
{
"status": "no_price_data",
"card_name": "Ancient Mew",
"message": "No TCGPlayer price data available."
}
Retrieves a list of all Pokémon TCG sets.
/setsGETapplication/json{
"status": "success",
"results": [
{
"id": "base1",
"name": "Base Set",
"...": "..."
}
]
}
Retrieves a list of all available Pokémon TCG card types.
/typesGETapplication/json{
"status": "success",
"types": ["Colorless", "Darkness", "Dragon", "..."]
}
Retrieves a list of all available Pokémon TCG card supertypes.
/supertypesGETapplication/json{
"status": "success",
"supertypes": ["Energy", "Pokémon", "Trainer"]
}
Retrieves a list of all available Pokémon TCG card subtypes.
/subtypesGETapplication/json{
"status": "success",
"subtypes": ["Basic", "BREAK", "EX", "..."]
}
Retrieves a list of all available Pokémon TCG card rarities.
/raritiesGETapplication/json{
"status": "success",
"rarities": ["Common", "Uncommon", "Rare", "..."]
}
In case of an error, the API will return a JSON object with the following structure:
Example:
{
"status": "error",
"message": "Invalid request.",
"details": {
"reason": "The 'card_name' parameter is required."
}
}