Scryfall MCP Server

Scryfall MCP Server

Enables AI assistants to search and retrieve Magic: The Gathering card data through the Scryfall API. Supports card searches, random card generation, autocomplete, set listings, and rulings lookup.

Category
Visit Server

README

Scryfall MCP Server

A Model Context Protocol (MCP) server that exposes Scryfall (Magic: The Gathering) API as tools for AI assistants and MCP-compatible clients (e.g., Claude Desktop, Cursor, Continue, Zed).

Features

  • Search cards with Scryfall's full-text syntax (search_cards)
  • Fetch a single card by id or name (get_card)
  • Get a random card, optionally filtered (random_card)
  • Autocomplete card names (autocomplete)
  • List all sets (list_sets)
  • Get card rulings (get_rulings)

Requirements

  • Node.js 18.17 or newer (provides built-in fetch)

Setup

  1. Install deps and build:

    • Install: npm install
    • Build: npm run build
  2. Run directly (for local testing):

    • node dist/index.js
  3. SSE server (HTTP):

    • Build first: npm run build
    • Start: npm run start:sse
    • Env: PORT=3000 (default), CORS_ORIGIN=* (optional)

Optional environment variables:

  • SCRYFALL_BASE_URL: Override the base API URL (defaults to https://api.scryfall.com).

MCP Client Integration

Configure your MCP client to launch the built JS with Node. Example (Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "scryfall": {
      "command": "node",
      "args": ["C:\\path\\to\\your\\repo\\dist\\index.js"],
      "env": {
        "SCRYFALL_BASE_URL": "https://api.scryfall.com"
      }
    }
  }
}

If you npm link, you can also use the installed binary scryfall-mcp as the command with no args.

Exposed Tools

  • search_cards:
    • Input: { q: string, unique?: 'cards'|'art'|'prints', order?: 'name'|'set'|'released'|'rarity'|'color'|'usd'|'tix'|'eur'|'cmc'|'power'|'toughness'|'edhrec'|'penny'|'artist'|'review', dir?: 'auto'|'asc'|'desc', page?: number, include_extras?: boolean, include_multilingual?: boolean, include_variations?: boolean }
  • get_card:
    • Input: { id?: uuid, name?: string, fuzzy?: boolean } (must provide id or name)
  • random_card:
    • Input: { q?: string }
  • autocomplete:
    • Input: { q: string }
  • list_sets:
    • Input: none
  • get_rulings:
    • Input: { id: uuid }

Notes

  • Scryfall rate limits: be respectful (they suggest up to ~10 requests/sec). This server does not add extra rate limiting; your client should avoid flooding requests.
  • Responses are returned as JSON content for maximum fidelity; clients can post-process or render summaries.

SSE Transport Endpoints

  • Events stream (server -> client via EventSource): GET /sse
  • Messages endpoint (client -> server): POST /messages

Point your MCP client’s SSE transport at these endpoints on your configured host/port.

Development

  • Build: npm run build
  • Start (built): npm start
  • Edit source in src/ and rebuild.

License

No license specified. Add one if you plan to distribute.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured