Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MTGA_MCP_DATA_DIRNoOverride the data directory where the SQLite database is stored.~/.local/share/mtga-mcp

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_cardsA

Search cards by name/colors/rarity/set/type. colors is WUBRG letters; set_code is the 3-letter set. Set owned_only=true to restrict to cards the player owns.

owned_cardsA

List cards the player owns (owned count >= 1), with the same optional filters as search_cards.

missing_from_setA

Cards in a set the player hasn't completed a playset (4) of. Returns a 'needed' count per card. Optional rarity filter.

collection_summaryA

Collection overview: distinct owned, total copies, per-rarity breakdown, and wildcard/currency balances.

query_sqlA

Run an ad-hoc read-only SELECT against the collection database. Tables: cards, collection(grp_id,count), wildcards(kind,count). Join collection on cards.grp_id for owned counts.

import_deckA

Import a decklist and store it for buildability analysis. Provide exactly one of text (pasted Arena/MTGO list) or url (Archidekt or Moxfield). Optional meta metadata: best_of (1 or 3), tier, meta_share (0..1) feed the best_buildable_deck ranking. Set allow_scrape=true to attempt an MTGGoldfish URL (unreliable). Returns the deck id and any card names that couldn't be matched.

list_decksA

List stored decks with format, best_of, tier and source.

deck_gapA

Cards and wildcards needed to complete a deck (by id or name), given your collection. Basics are excluded; copies are capped at a playset (4).

craft_priorityA

Across all stored decks (optionally one format), rank cards to craft by how many decks they would unlock, then by how many decks need them.

best_buildable_deckA

The best deck you could build given your cards and the meta. Ranks stored decks by meta strength x buildability. Filter by best_of (1 or 3) and format; max_wildcards hides decks needing more than that many wildcards.

delete_deckA

Delete a stored deck by id or name.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/fkadriver/mtga-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server