dbeltra
MCP Serverdbeltrapublic

scryfall mcp

MCP server for the Scryfall API

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

MCP server for the Scryfall API

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

!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

Quick Start

1

Clone the repository

git clone https://github.com/dbeltra/scryfall-mcp
2

Install dependencies

cd scryfall-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerdbeltra
Reposcryfall-mcp
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation