Back to Home
AImaginationLab icon

magic-the-gathering-mcp

Verified Safe

by AImaginationLab

Overview

Provides an MCP (Model-Client-Protocol) server to integrate Magic: The Gathering card data and analysis tools with AI-powered client applications for deck building assistance, synergy finding, and strategy analysis.

Installation

Run Command
uv run mtg-mcp

Environment Variables

  • MTG_DB_PATH
  • USER_DB_PATH
  • COMBO_DB_PATH
  • LOG_LEVEL
  • CACHE_MAX_SIZE
  • CACHE_TTL_SECONDS
  • IMAGE_CACHE_MAX_MB
  • IMAGE_MEMORY_CACHE_COUNT
  • DATA_CACHE_MAX_MB

Security Notes

The server is designed for local MCP client integration (e.g., Claude Desktop), limiting its exposure. It uses `aiosqlite` for database access with a `QueryBuilder` suggesting parameterized queries to mitigate SQL injection. External data is sourced from reputable APIs (Scryfall, MTGJson, GitHub releases) via `httpx` with proper status checks and streaming JSON parsing (`ijson`) to prevent large file attacks. No obvious hardcoded secrets or malicious patterns are present in the provided snippets. Reliance on third-party data sources and local filesystem interaction introduces general, but managed, risks.

Similar Servers

Stats

Interest Score24
Security Score8
Cost ClassMedium
Avg Tokens500
Stars1
Forks0
Last Update2026-01-04

Tags

MTGMagic The GatheringAI IntegrationDeck BuildingCard GameGame UtilityMCP Server