ScryfallSAFE
A mcp server for interacting with the Scryfall Magic The Gathering API
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server for interacting with the Scryfall API. It provides tools to look up Magic: The Gathering card details, card rulings, and price information.
Features
- search_cards
Perform a text-based search on Scryfall. Returns a list of matching cards.
- get_card_by_id
Retrieve a card directly via its Scryfall UUID.
- get_card_by_name
Retrieve a card by exact English name.
- random_card
Get a random card from the entire Scryfall database.
- get_rulings
Retrieve official rulings for a card, which may clarify card interactions or rules.
- get_prices_by_id
Retrieve current pricing information (USD, USD foil, EUR, TIX) for a given card by Scryfall ID.
- get_prices_by_name
Retrieve current pricing information (USD, USD foil, EUR, TIX) for a given card by exact name.
Usage
The server can be run in two modes:
- Standard stdio mode (default)
- Server-Sent Events (SSE) mode with HTTP endpoints
Using NPX
If you have Node.js installed locally:
# Stdio mode npx scryfall-mcp-server # SSE mode npx scryfall-mcp-server --sse
Connecting to the Server
Stdio Mode
Your application or environment (like Claude Desktop) can communicate directly via stdio with the server.
SSE Mode
When running in SSE mode (with --sse), you can connect using the MCP CLI:
npx @wong2/mcp-cli --sse http://localhost:3000/sse
The server will be available at:
- SSE endpoint:
http://localhost:3000/sse - Message endpoint:
http://localhost:3000/messages
Integration in claudedesktopconfig.json
Example snippet for stdio mode:
{
"mcpServers": {
"scryfall": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/scryfall"]
}
}
}Or with npx:
{
"mcpServers": {
"scryfall": {
02c2ed916d49OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add scryfall-mcp-server -- npx -y [email protected]
{
"mcpServers": {
"scryfall-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (7)
7 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_card_by_id | read | Retrieve a card by its Scryfall ID (a 36-char UUID). Returns the card data in JSON. |
get_card_by_name | read | Retrieve a card by its exact English name, e.g. |
get_prices_by_id | read | Retrieve price information for a card by its Scryfall ID. Returns JSON with usd, usd_foil, eur, tix, etc. |
get_prices_by_name | read | Retrieve price information for a card by its exact name. Returns JSON with usd, usd_foil, eur, tix, etc. |
get_rulings | read | Retrieve official rulings for a specified card by Scryfall ID or Oracle ID. |
random_card | read | Retrieve a random Magic card from Scryfall. Returns JSON data for that random card. |
search_cards | read | Search for MTG cards by a text query, e.g. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
node-fetch, yargs, express, @types/node, @types/node-fetch, @types/yargs, @types/express, shx
Gates applied: no_behavioural_pass, no_license.
02c2ed916d49full audit observations/trust-audit/mcp-server/cryppadotta__scryfall.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 02c2ed916d49 | SAFE | B | 89 | first audit |
Questions
What is the Scryfall MCP server?
A mcp server for interacting with the Scryfall Magic The Gathering API
What tools does Scryfall expose?
7 in total: 7 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Scryfall safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Scryfall need?
No credential environment variables were found in its source, so it appears to need none.
How does Scryfall run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on npm as scryfall-mcp-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (02c2ed916d49), read on 2026-10-08. The repository is watched and re-audited when it changes.