Skip to main content
Glama

mcp-scryfall

MCP server for live Magic: The Gathering card lookup via the Scryfall API. Hand-rolled with the MCP TypeScript SDK, not a wrapper around an existing package.

LLMs confidently misremember card names, costs, and rules text. This grounds every card reference against live Scryfall data. I use it daily for deckbuilding.

Tools

Tool

What it does

card_named

Exact-name lookup (optional set code). Full card object.

card_fuzzy

Fuzzy-name lookup. Handles typos and partial names.

card_search

Scryfall query-syntax search. Returns compact summaries by default (pass full: true for raw objects).

card_random

A random card, optionally filtered by a query.

bulk_default

Lists Scryfall bulk-data endpoints for offline corpus building.

Related MCP server: Scryfall MCP Server

Install

git clone https://github.com/haksanlulz/mcp-scryfall
cd mcp-scryfall
npm install

Runs directly with tsx; no build step.

Use it from an MCP client

Add it to your client's MCP config (e.g. Claude Desktop's claude_desktop_config.json):

{
  "mcpServers": {
    "scryfall": {
      "command": "npx",
      "args": ["tsx", "/absolute/path/to/mcp-scryfall/index.ts"],
      "env": { "SCRYFALL_CONTACT": "you@example.com" }
    }
  }
}

SCRYFALL_CONTACT is optional; it is added to the User-Agent per Scryfall's API guidelines.

Example

card_search with q = "c:rb cmc<=2 t:creature o:haste" returns compact rows plus paging metadata:

{
  "total_cards": 42,
  "has_more": true,
  "page": 1,
  "data": [
    { "name": "Ash Zealot", "mana_cost": "{R}{R}", "type_line": "Creature — Goblin Berserker", "cmc": 2, "set": "rtr" }
  ]
}

Pass full: true to get the raw Scryfall objects instead.

Develop

npm test         # MCP-layer tests over an in-memory transport (fetch mocked, no network)
npm run smoke    # hit the live Scryfall API once per tool
npm run typecheck

API etiquette

Follows Scryfall's guidelines: a 100 ms delay between requests, a descriptive User-Agent, and Accept: application/json.

License

MIT © Abishai James. Card data © Scryfall; this project is unofficial and not affiliated with Scryfall or Wizards of the Coast.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/haksanlulz/mcp-scryfall'

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