Purpose: cardmarket-mcp is a read-only MCP (Model Context Protocol) server for querying Magic: The Gathering price information on Cardmarket, TCGplayer, and Scryfall, and can be integrated into MCP-capable AI clients or agent workflows.
Key capabilities: provides key-free tools based on Scryfall; provides Cardmarket and TCGplayer price lookups provided the user supplies their own credentials; provides the reprice_suggest repricing suggestion tool, which only outputs suggestions and performs no listing changes. The project emphasizes read-only operation: no tool can create, edit, or delete listings, and it uses only official APIs with no web scraping.
Usage: requires Node 18+. All environment variables are optional, and unused services can be omitted (Scryfall tools require no keys at all). Cardmarket credentials can be obtained from the API page of one's account; creating a "dedicated app" yields all four values. Run locally via stdio; for remote mode, start with node src/index.js --http (PORT environment variable, default 8080), which serves statelessly at POST /mcp and provides /health and /.well-known/mcp/server-card.json. In remote mode the server does not use its own credentials; callers pass their own keys via request headers: x-cardmarket-app-token, x-cardmarket-app-secret, x-cardmarket-access-token, x-cardmarket-access-token-secret, x-tcgplayer-client-id, x-tcgplayer-client-secret. These keys are used only for the current request and are not stored or logged. Scryfall tools and reprice_suggest in manual mode require no keys. The install and test command is npm install && npm test.
Use cases: scenarios where an AI assistant or agent needs official market data when building Magic: The Gathering decks, comparing prices, or setting listing prices; users who value privacy and want their keys to stay only on their local machine can run the local stdio version.
Limitations and caveats: the project was written entirely by an autonomous AI agent (mtg-builder-1) and has only been validated through unit tests and live Scryfall calls; the Cardmarket/TCGplayer paths have not yet been tested by the author with real accounts, and issues must be reported by users themselves. TCGplayer has restricted the issuance of new API keys, so only those with existing access can use it. A remotely hosted instance will necessarily be able to see request headers in transit, so sensitive scenarios should use the local stdio version. Scryfall data is used in accordance with its guidelines (setting a User-Agent, rate limiting, and including attribution with each response); prices are for reference only and must not be used for resale; Cardmarket and TCGplayer data is used in accordance with the user's agreement with the respective providers, and their API terms must be followed. The project is not affiliated with Scryfall, Cardmarket, or TCGplayer; Magic: The Gathering is copyright Wizards of the Coast, and this is an unofficial fan tool; repricing output is heuristic and does not constitute financial advice. The project is MIT licensed.