tcgplayer-api-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TCGplayer API
An SDK and REST API wrapper for TCGplayer providing structured access to trading card data including Pokemon, Magic: The Gathering, and other TCGs — with an MCP server for Claude Code integration.
Disclaimer: This SDK, REST API wrapper, and MCP server is an unofficial tool created for educational purposes only. It is not affiliated with, maintained, or endorsed by TCGplayer. Use of these tools may violate TCGplayer's terms of service.
Installation
npm install @deansasek/tcgplayer-apiRelated MCP server: satorntcg-mcp-server
SDK
The SDK provides a typed, class-based interface organized by resource.
import { TCGplayerClient } from '@deansasek/tcgplayer-api/sdk';
const client = new TCGplayerClient();
// Search
const results = await client.search.autocomplete('morpeko');
// Product details
const product = await client.products.details(704874);
// Price history
const history = await client.products.priceHistory(704874, { range: 'quarter' });SDK Resources
Resource | Methods |
|
|
|
|
|
|
|
|
|
|
SDK Example: Card Analysis
import { TCGplayerClient } from '@deansasek/tcgplayer-api/sdk';
const client = new TCGplayerClient();
async function analyzeCard(productId: number) {
const [details, sales, history] = await Promise.all([
client.products.details(productId),
client.products.sales(productId),
client.products.priceHistory(productId, { range: 'month' }),
]);
console.log(`${details.productName} (${details.setName})`);
console.log(`Market Price: $${details.marketPrice}`);
console.log(`Sellers: ${details.sellers}`);
if (sales.data.length > 0) {
const last = sales.data[0];
console.log(`Last Sale: $${last.purchasePrice} (${last.condition})`);
}
return { details, sales, history };
}
analyzeCard(704874); // Morpeko exREST API (Backward Compatible)
Flat function exports for direct API access.
import { autocomplete, getProduct } from '@deansasek/tcgplayer-api';autocomplete(query, options?)
Search for products by name.
const results = await autocomplete('charizard', { productLine: 'Pokemon' });search(options?)
Full search with filters, sorting, and pagination.
const results = await search({
q: 'charizard',
productLine: 'Pokemon',
from: 0,
size: 24,
});getProduct(productId)
Convenience function combining details, sales, and price history.
const product = await getProduct(704874);
// Returns: { details, sales, priceHistory }Other Functions
Function | Description |
| Full product information |
| Recent sales with filters |
| Historical pricing ( |
| Market volatility for a SKU |
| Buylist/market prices |
| Bulk SKU pricing |
| Detailed seller listings |
| All available product lines |
| Filter options for a category |
| Latest sets |
| Set information |
| Related products |
| Active promotions |
| Product attribute tags |
| Game verticals |
| Best-selling products |
| Trending suggestions |
| TCG vs Tabletop categories |
| Free shipping minimum |
| Shipping country list |
| Articles by vertical |
| Trending articles |
| Simplified product data |
| Normalize card name |
Condition Values
Value | Condition |
1 | Unopened |
2 | Damaged |
3 | Heavily Played |
4 | Moderately Played |
5 | Lightly Played |
6 | Near Mint |
7 | Mint |
MCP Server (Claude Code Integration)
The MCP server enables Claude Code to interact with TCGplayer data directly.
Installation
Claude Code automatically detects .mcp.json:
{
"mcpServers": {
"tcgplayer-api-mcp": {
"command": "node",
"args": ["dist/mcp/server.js"],
"cwd": "/Users/deansasek/Documents/Projects/tcgplayer"
}
}
}Available MCP Tools
Tool | Description |
| Search for products by name |
| Search with filters and pagination |
| Full product data (details, sales, price history) |
| Detailed product information |
| Recent sales data |
| Historical pricing data |
| Market volatility for a SKU |
| Buylist/market prices |
| Filter options (conditions, languages, variants) |
| All available product lines |
| Latest sets for product lines |
| Detailed seller listings |
| Set information by set ID |
| Faceted product recommendations |
| Active kickback promotions |
| Product attribute tags |
| Available game verticals |
| Best-selling products |
| Trending product suggestions |
| Catalog groups (TCG vs Tabletop) |
| Free shipping minimum |
| Shipping country codes |
| Articles for a vertical |
| Trending articles |
| Simplified product data |
| Normalize card name |
| Render a card as ASCII art |
MCP Usage Examples
User: Search for Morpeko cards
Claude uses: tcgplayer_search with q="morpeko"
User: Get latest sales for product 704874
Claude uses: tcgplayer_latest_sales with productId=704874
User: What conditions are available for Pokemon?
Claude uses: tcgplayer_category_filters with categoryId="3"
User: Show me Charizard as ASCII art
Claude uses: tcgplayer_render_card with productId=546343Development
npm run build # Compile TypeScript
npm run clean # Remove dist folder
npm run dev # Run server.ts directly
npm run mcp # Run MCP server directlyEnvironment
Node.js 18+ recommended (uses native fetch)
TypeScript with strict mode
ES Modules (
type: "module")
License
This project is dedicated to the public domain under the Unlicense.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live TCG card and decklist prices for AI assistants. 22+ games, no account, ready-to-buy links.
Card prices and data for Pokémon, One Piece and 10 more TCGs, from TCGplayer and Cardmarket.
Look up Pokemon TCG Pocket cards, sets, packs, and evaluate decks with battle simulations.
MTG market data: search 114K+ cards, price signals, AI analysis. Free tier available.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables querying Yu-Gi-Oh! TCG card data, such as card information, sets, and prices, through natural language.276 npm1MIT

satorntcg-mcp-serverofficial
AlicenseAqualityBmaintenanceEnables LLM clients to query live TCG inventory, pricing, alerts, profit and loss, and eBay listings directly through natural language tool calls.11MIT- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to look up trading-card market values across Pokémon, Magic, sports and other TCG catalogs, including raw prices by condition, graded ladders, price history, trending movers and set checklists. It also calculates grading ROI — gem premiums, net profit after fees, expected value and break-even gem rates — so collectors can decide whether a card is worth submitting.-

@pokemontcgapi/mcpofficial
AlicenseAqualityBmaintenanceEnables agents to search and query Pokémon TCG cards and sets, retrieve priced card data with provenance, and identify cards from images through eight read-only tools.8150 npmMIT