Skip to main content
Glama

manapool-mcp

MCP server for ManaPool's Commander decks and card prices, with a bracket auditor that checks the list instead of trusting the site's tag.

CI License: MIT

Tools

Tool

What it does

search_decks

Browse pre-built decks by commander, bracket, theme, colours and price.

get_deck

One deck: commander(s), seller, price, sections, every card.

audit_deck

Game Changers, mass land denial, extra turns, combos → lowest bracket the list permits.

search_cards

Card search (Scryfall syntax) priced against ManaPool stock.

get_card

One printing's prices and every condition/finish listing.

price_deck

Price a decklist: cheapest printing per line, total, missing, short stock.

validate_decklist

ManaPool's Commander rules check: legality, singletons, colour identity, partners. Needs API credentials.

optimize_cart

Quote a decklist as one cart, including availability, shipping and buyer fees. Needs API credentials.

Resources: manapool://rules/game-changers, manapool://rules/brackets.

Related MCP server: scryfall-mcp

Install

The default is a local binary; Docker is optional.

git clone https://github.com/abominox/manapool-mcp.git
cd manapool-mcp
uv tool install --constraints constraints.txt .
opencode mcp add manapool --global -- ~/.local/bin/manapool-mcp

Add a longer timeout after mcp add — a wide price scan or the first price_deck (53 MB price snapshot) exceeds the 30 s default:

{
  "mcp": {
    "servers": {
      "manapool": {
        "type": "local",
        "command": ["/Users/you/.local/bin/manapool-mcp"],
        "timeout": { "execution": 180000 }
      }
    }
  }
}

For development install editable: uv tool install --force -e .

Docker (optional)

docker build -t manapool-mcp:latest .
docker run -i --rm -v manapool-cache:/cache manapool-mcp:latest

-i is required for stdio; never add -t. The volume keeps the price snapshot between runs. Published images are at ghcr.io/abominox/manapool-mcp.

opencode mcp add manapool --global -- \
  docker run -i --rm -v manapool-cache:/cache manapool-mcp:latest

For HTTP mode, bind the container to 0.0.0.0 and publish on loopback only: -e MANAPOOL_TRANSPORT=streamable-http -e MANAPOOL_HOST=0.0.0.0 -p 127.0.0.1:8765:8765. It has no authentication.

Configuration

Variable

Default

MANAPOOL_EMAIL

unset

Account e-mail. With the token, unlocks the keyed tools.

MANAPOOL_ACCESS_TOKEN

unset

API token (mpat_...). MANAPOOL_API_KEY is accepted as an alias.

MANAPOOL_TRANSPORT

stdio

or streamable-http

MANAPOOL_HOST / MANAPOOL_PORT

127.0.0.1 / 8765

HTTP mode

MANAPOOL_CACHE_DIR

~/.cache/manapool-mcp

price snapshot location

MANAPOOL_PRICES_TTL

86400

seconds before refreshing prices

MANAPOOL_CACHE_TTL

600

page cache lifetime

MANAPOOL_MIN_INTERVAL

0.2

seconds between upstream requests

API credentials (optional)

Everything works anonymously except two tools. Set both variables to enable validate_decklist and optimize_cart, and to have audit_deck include ManaPool's own rules check alongside its bracket verdict:

export MANAPOOL_EMAIL="you@example.com"
export MANAPOOL_ACCESS_TOKEN="mpat_..."

Both headers are required by ManaPool's API. A half-configured environment fails at startup rather than silently falling back to anonymous access. A rejected token surfaces once, immediately, as a credentials error — it is not retried.

Two caveats worth knowing:

  • Keyed tools are for stdio or loopback HTTP. Streamable-HTTP mode has no authentication of its own, so anything that can reach the port would be spending your account's API quota. Bind 127.0.0.1 as above.

  • audit_deck without credentials is still complete for brackets. It just reports what the card list permits; the authoritative legality block is only present when a key is configured.

Notes

  • ManaPool's deck pages have no API, so deck tools parse HTML; card tools use the public JSON API (/api/v1/products/singles, /prices/singles). Most of the 53 documented paths require a key; /deck and /buyer/optimizer are wrapped only when credentials are configured. /card_info overlaps with the Scryfall-backed card tools and is not wrapped; the account, seller, order and inventory-write endpoints are deliberately out of scope.

  • The deck validator resolves cards by name and ManaPool renames some cards ("Memories of Nibelheim (Stroke of Midnight)"), so the alias in the parenthetical is stripped before sending. cards_not_found means "not resolved", not "illegal".

  • ManaPool's bracket tag is generated and optimistic. audit_deck reports what the cards permit, not how the deck plays.

  • Its price sort is only mostly ascending, so wide price windows are sampled and returned with truncated: true.

  • Decks are rebuilt when stock changes; re-read before buying. Not affiliated with ManaPool or Wizards of the Coast.

Development

make install && make check    # venv, ruff, pytest
make docker                   # optional image

License

MIT — see LICENSE.

Available Tools

6 tools
audit_deckA

Check a ManaPool deck against the official Commander bracket criteria.

Counts Game Changers, mass land denial, extra turns and tutors, and asks Commander Spellbook for combos fully present in the list. Returns the lowest bracket the card list mechanically permits.

This checks the list, not intent: a zero-Game-Changer deck can still play like Upgraded, and an accidental two-card combo will flag higher than the pilot means. Report it as "what the cards permit", not as a verdict on power.

Inputs: deck (required). Returns: id, url, name, notes, +13 more

get_cardA

Get one card's ManaPool prices and per-listing availability.

Args: card: A card name, a Scryfall id, or a ManaPool card URL such as https://manapool.com/card/sld/2683/sol-ring.

Inputs: card (required). Returns: url, name, stock, nm_usd, +9 more

get_deckA

Fetch one ManaPool deck by URL or list id.

Args: deck: https://manapool.com/lists/ or the bare uuid. include_types: Also resolve each card's Scryfall type line. Useful for multi-type payoffs (e.g. Rendmaw) but costs extra requests.

Inputs: deck (required), include_types. Returns: id, url, name, cards, +8 more

price_deckA

Price a decklist against ManaPool's live singles inventory.

Accepts any text list ("1 Card Name", "4x Card Name", "Card Name") and prices each line at the cheapest in-stock printing. Use this to budget a custom build; ManaPool's own pre-built decks are always a single seller's stock, so their cart total and this estimate differ.

Args: decklist: Newline-separated list. Blank lines and "//" comments ignored. commander: Optional commander, priced and reported separately.

Inputs: decklist (required), commander. Returns: note, as_of, lines, short, +5 more

search_cardsA

Search cards and price them against ManaPool stock.

Args: query: Scryfall search syntax, e.g. !"Sol Ring", t:elf ci:bg, oracle:"draw a card" o:commander, set:dsk rarity:mythic. limit: Maximum cards to return (1-50).

ManaPool's public API has no name search, so the search runs on Scryfall and each result is then priced from ManaPool's /products/singles.

Inputs: query (required), limit. Returns: cards, query, total_cards, missing_from_manapool

search_decksA

Search ManaPool's pre-built Commander deck listings.

Args: commander: Text query matched against deck/commander names, e.g. "Rendmaw" or "Zada". ManaPool's own search box. bracket: 2, 3 or 4. This is ManaPool's generated tag, not a verified bracket - use audit_deck before recommending anything. min_price: Lower bound in USD on the listing price (includes the seller's basic lands). ManaPool has no price filter, so this walks pages and filters locally. max_price: Upper bound in USD, same basis as min_price. theme: ManaPool theme label, matched exactly, e.g. "Aristocrats", "Spellslinger", "Landfall", "Goad", "Group Hug", "Cascade". colors: Colour identity letters, e.g. "WU" or "BRG". sort: "rank" (recommended), "price-asc", "price-desc" or "bracket". A price window forces "price-asc" because the scan needs it. page: Zero-based page of listings. When a price window is supplied this is an offset into the filtered matches instead. limit: Maximum decks to return (1-96).

Inputs: page, sort, limit, theme, +5 more. Returns: note, page, decks, truncated, +2 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 6 tools

    Disambiguation5/5

    The six tools split cleanly across deck and card resources, with distinct actions: search, get, audit, and price. get_deck vs audit_deck vs price_deck could superficially overlap, but each description defines a different operation and output.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern: get_deck, search_decks, audit_deck, search_cards, get_card, price_deck. The singular/plural noun variation reflects resource scope rather than inconsistent convention.

    Tool Count5/5

    Six tools is well-scoped for a deck/card research and pricing server. Each tool covers a meaningful operation and none feels redundant or padded.

    Completeness4/5

    The surface covers the core read-only workflow: search decks, fetch a deck, audit it, search cards, get card pricing, and price a custom decklist. Minor gaps exist around broader marketplace/account actions such as cart or collection management, but those are outside the apparent research-focused scope.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Read-only MCP tools for Mana public creations, tags, creator profiles, and share pages.

      https://mana.am/webmcp
    • Extension and app analytics across Chrome, Edge, Firefox, Google Play, and the Apple App Store. Search and compare extensions and apps; inspect trends, rankings, reviews, and version history; and search supported extension source code. Connect via Streamable HTTP with OAuth. API keys are also supported. Data availability and limits depend on the platform and plan. Documentation: https://chrome-stats.com/docs/mcp Privacy policy: https://chrome-stats.com/privacy Support: support@chrome-stats.com

      https://chrome-stats.com/api/mcp
    • MarketMan MCP server for ChatGPT, Claude and any AI agent: list purchase orders, create purchase order, list inventory items, set par level, list inventory counts, get actual vs theoretical usage, get menu profitability and list invoices in your own MarketMan account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to MarketMan yourself; Cotlet does not store your password and you need no MarketMan API key. About the official MarketMan API: MarketMan has a REST API (V3), but it needs an API Partner key and password, and its pricing page lists Open API Access as read-only in Enterprise or a paid add-on on Starter and Growth (checked 28 Oct 2026). MarketMan has no official MCP server. Setup and FAQ: https://cotlet.dev/integrations/marketman-api-mcp-server

    • Manatal MCP server for ChatGPT, Claude and any AI agent: search candidates, create candidate, add candidate to job, move candidate to stage, drop candidate with reason, add candidate note and list job pipeline in your own Manatal account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Manatal yourself; Cotlet does not store your password and you need no Manatal API key. About the official Manatal API: Yes, but only on the top plan (checked 20 Oct 2026). Manatal's Open API and its official MCP server come with Enterprise Plus, $55 to $59 per user per month, and an admin sets them up. Setup and FAQ: https://cotlet.dev/integrations/manatal-api-mcp-server

      https://cotlet.dev/mcp/v1/manatal

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables searching public decklists, fetching deck card lists and prices from Moxfield's deckbuilding platform through Claude.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides access to Magic: The Gathering card data via Scryfall API, including search, rulings, sets, and local deck management with multi-owner support.
      -
    • F
      license
      A
      quality
      B
      maintenance
      Enables natural language querying of your Magic: The Gathering Arena collection, including owned cards, missing cards, deck building, and collection analysis via MCP.
      11
      -