cz-mtg-compare-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MKM_API_BASE | No | Override Cardmarket API base URL. | https://api.cardmarket.com/ws/v2.0/output.json |
| MKM_APP_TOKEN | No | Cardmarket OAuth1 app token. Unset means Cardmarket disabled. | |
| MKM_APP_SECRET | No | Cardmarket OAuth1 app secret. | |
| MKM_EUR_TO_CZK | No | EUR to CZK conversion rate for Cardmarket prices. | 24.5 |
| MKM_ACCESS_TOKEN | No | Cardmarket OAuth1 access token. | |
| CZ_MTG_UNTAP_PASS | No | Untap account password or 1Password reference. | |
| CZ_MTG_UNTAP_USER | No | Untap account username or 1Password reference. | |
| CZ_MTG_NAJADA_PASS | No | Najada account password or 1Password reference. | |
| CZ_MTG_NAJADA_USER | No | Najada account username or 1Password reference. | |
| CZ_MTG_DATABASE_URL | No | SQLAlchemy URL for the web app's database. | sqlite+aiosqlite:///:memory: |
| CZ_MTG_RISHADA_PASS | No | Rishada account password or 1Password reference. | |
| CZ_MTG_RISHADA_USER | No | Rishada account username or 1Password reference. | |
| CZ_MTG_TOLARIE_PASS | No | Tolarie account password or 1Password reference. | |
| CZ_MTG_TOLARIE_USER | No | Tolarie account username or 1Password reference. | |
| CZ_MTG_COOKIE_DOMAIN | No | Cookie Domain attribute. | |
| CZ_MTG_COOKIE_SECURE | No | Whether session/CSRF cookies require HTTPS. | true |
| CZ_MTG_DATABASE_ECHO | No | Log all SQL emitted by the web app's engine. | false |
| CZ_MTG_DISABLED_SHOPS | No | Comma-separated list of shop IDs to drop at startup. | |
| CZ_MTG_SCRYFALL_CACHE | No | Override Scryfall on-disk cache directory. | ~/.cache/cz-mtg-compare/scryfall/ |
| CZ_MTG_BLACKLOTUS_PASS | No | Blacklotus account password or 1Password reference. | |
| CZ_MTG_BLACKLOTUS_USER | No | Blacklotus account username or 1Password reference. | |
| CZ_MTG_CERNYRYTIR_PASS | No | Černý rytíř account password or 1Password reference. | |
| CZ_MTG_CERNYRYTIR_USER | No | Černý rytíř account username or 1Password reference. | |
| CZ_MTG_COOKIE_SAMESITE | No | SameSite flag for both cookies. | lax |
| CZ_MTG_PUBLIC_BASE_URL | No | Origin used when building links in outbound mail and Google's OAuth redirect URI. | http://localhost:8080 |
| CZ_MTG_CSRF_COOKIE_NAME | No | Cookie name carrying the CSRF token. | cz_csrf |
| CZ_MTG_MAX_UNIQUE_CARDS | No | Hard cap on unique cards per optimize_decklist call. | 100 |
| MKM_ACCESS_TOKEN_SECRET | No | Cardmarket OAuth1 access token secret. | |
| CZ_MTG_SESSION_COOKIE_NAME | No | Cookie name carrying the opaque server-side session id. | cz_session |
| CZ_MTG_SESSION_TTL_SECONDS | No | Session lifetime in seconds. | 2592000 |
| CZ_MTG_OAUTH_GOOGLE_CLIENT_ID | No | OAuth 2.0 client id from Google Cloud Console. | |
| CZ_MTG_EMAIL_VERIFY_TTL_SECONDS | No | Email-verification token lifetime in seconds. | 86400 |
| CZ_MTG_CONSOLIDATE_TOLERANCE_PCT | No | Percentage tolerance for fewest_shops strategy. | 10 |
| CZ_MTG_OAUTH_GOOGLE_REDIRECT_URI | No | Override the callback URL. | |
| CZ_MTG_OAUTH_GOOGLE_CLIENT_SECRET | No | OAuth 2.0 client secret. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_cardA | Search a Magic: The Gathering single card across Czech shops. Returns a flat list of offers sorted by price_czk ascending. Each offer has shop, edition, condition, language, foil, price_czk, stock_qty, and a deep-link url. Shop selection:
Display-only products (Art Series, oversized, helper / tip / checklist cards,
spindowns) are excluded by default because they aren't legal in constructed
Magic formats. Pass |
| list_shopsA | List configured shops with their last-call status. |
| lookup_cardA | Resolve a Magic: The Gathering card name via Scryfall. Returns canonical name, set code/name, oracle text, mana cost, image URL, Scryfall URI. Useful for disambiguating reprints, validating spelling, or fetching multilingual names. Set |
| optimize_decklistA | Resolve a Magic decklist (Arena/MTGO text) against all shops in parallel
and return a Strategies (
Response shape:
When presenting results to the user, render the The decklist must contain at most 100 cards in total (Commander deck size)
AND at most 100 unique cards (one HTTP request per unique card per shop —
the unique-cards cap exists to keep a single tool call from spawning a
runaway number of requests). Override the unique cap via the
Display-only products (Art Series, oversized, helper cards) are excluded by
default. Pass Shop selection mirrors
|
| shop_account_capabilitiesA | Per-shop account-feature support and credential status. Returns one entry per enabled shop with:
Use this to tell the user which shops they can actually log into and which account actions are available before attempting them. |
| shop_loginA | Authenticate against a shop using its CZ_MTG__USER / _PASS credentials. The credentials may be literal strings or 1Password secret references of the
form Returns |
| add_to_cartA | Add
Logs in automatically on first call and transparently re-logs in if the cached token expires. Returns the shop's raw response (e.g. the updated cart-item record). |
| view_cartA | Return the current contents of the shop's online cart for the authenticated user. Logs in automatically if needed. |
| clear_cartA | Remove every item from the shop's online cart for the authenticated user. Returns |
| add_to_watchlistA | Add an offer to the shop's wishlist / watchlist / wantlist if the shop
supports it. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xvyslo05/czech-mtg-price-comparator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server