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.
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
-
Install deps and build:
- Install:
npm install - Build:
npm run build
- Install:
-
Run directly (for local testing):
node dist/index.js
-
SSE server (HTTP):
- Build first:
npm run build - Start:
npm run start:sse - Env:
PORT=3000(default),CORS_ORIGIN=*(optional)
- Build first:
Optional environment variables:
SCRYFALL_BASE_URL: Override the base API URL (defaults tohttps://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 }
- Input:
get_card:- Input:
{ id?: uuid, name?: string, fuzzy?: boolean }(must provideidorname)
- Input:
random_card:- Input:
{ q?: string }
- Input:
autocomplete:- Input:
{ q: string }
- Input:
list_sets:- Input: none
get_rulings:- Input:
{ id: uuid }
- Input:
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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.