| Crates.io | mtg-mcp |
| lib.rs | mtg-mcp |
| version | 0.1.0 |
| created_at | 2025-07-21 21:11:49.686406+00 |
| updated_at | 2025-07-21 21:11:49.686406+00 |
| description | An MCP server for Magic: The Gathering card data resources |
| homepage | |
| repository | https://github.com/pato/mtg-mcp |
| max_upload_size | |
| id | 1762686 |
| size | 2,404,128 |

A Model Context Protocol server for Magic: The Gathering card data using the Scryfall API.
This MCP server lets LLMs look up MTG cards and search through them. Pretty straightforward - you ask about a card, it fetches the data from Scryfall.
If you're using Claude or another LLM that supports MCP, this gives it access to the entire MTG card database. This means you can:
Basically, it turns your LLM into a deck building assistant that actually knows what cards do.
Here's the MCP server in action - looking up specific cards and getting detailed information:

And here's an example of using it for deck building, analyzing card synergies and getting suggestions:

cargo install mtg-mcp
The server exposes these tools:
get_card - Look up a specific card by name (fuzzy search works)search_cards - Search for cards using Scryfall syntaxGet a card:
get_card("Lightning Bolt")
Search for cards:
search_cards("color:red type:creature cmc:3")
Add this to your MCP settings:
{
"mcpServers": {
"mtg": {
"command": "path/to/mtg-mcp"
}
}
}
Standard Rust project. Uses tokio for async and reqwest for HTTP requests.
cargo test
cargo run
MIT