mcpField
M
MCP Server – Scryfall API Interface

MCP Server – Scryfall API Interface

Local
github.com/dbeltraDeveloper Tools0Updated 79w ago

About MCP Server – Scryfall API Interface

This MCP server connects to the Scryfall API so Magic: The Gathering players and tools can search cards and inspect their details. Searches cover names, colors, type lines, and Oracle text, with card attributes and prices in the results.

Key features

  1. 01Search by card name
  2. 02Filter by colors and type line
  3. 03Search Oracle text
  4. 04View card stats, rarity, and set
  5. 05View regular and foil prices in USD and EUR

Use cases

  1. 01Find cards by name or rules text
  2. 02Explore cards matching colors and types
  3. 03Check a card’s attributes and set
  4. 04Review regular and foil prices

MCP support

The MCP server exposes Scryfall card search and detail retrieval to MCP clients, including Claude Desktop.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Tests codecov

MCP Server – Scryfall API Interface

This is an MCP server that interfaces with the Scryfall API to fetch and display detailed Magic: The Gathering card data. It supports searching cards by name, color, type, and text content.

Features

  • Search MTG cards via Scryfall by:
    • Card name
    • Color(s)
    • Type line
    • Oracle text
  • Detailed card data output:
    • Oracle text, mana cost, colors
    • Type, power/toughness, rarity
    • Set name
    • Prices in USD/EUR (regular and foil)

Project Setup

This project uses uv for Python environment and dependency management. All dependencies are declared in pyproject.toml.

Requirements
  • Python 3.12+
  • uv (install with cargo install uv)
Installation
uv venv
source .venv/bin/activate  # or `.venv/Scripts/activate` on Windows
uv pip install -r pyproject.toml
Running the project

Running the project with uv run scryfall.py "Atraxa" should display the scryfall results for the Atraxa card in the console, however this is intended to be ran by an MCP host, like Claude Desktop.

Integration with Claude Desktop

Claude Desktop can run the MCP server to interact with the Scryfall API and use the results. You need to install or update to the latest Claude version and create the claude_desktop_config.json file if it doesn't exist yet:

~/Library/Application\ Support/Claude/claude_desktop_config.json in MacOS $env:AppData\Claude\claude_desktop_config.json in Windows

{
    "mcpServers": {
        "scryfall": {
            "command": "/ABSOLUTE/PATH/TO/BIN/uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/mcp-server",
                "run",
                "scryfall.py"
            ]
        }
    }
}

Testing

This project uses pytest for unit testing. Tests are located in the tests/ directory.

Running Tests

To run the full test suite:

pytest

To run a specific test:

pytest tests/test_scryfall.py::test_get_cards_no_query

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.