magic-the-gathering-mcp
Verified Safeby 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
uv run mtg-mcpEnvironment 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
mcp-manager
A web GUI to easily manage and configure Model Context Protocol (MCP) servers for the Claude Desktop app on MacOS, generating terminal commands for installation and setup.
magic-api-mcp-server
Provides a Model Context Protocol (MCP) server to enhance Magic-API development workflows, enabling advanced interactions for script writing, API management, debugging, and deployment.
awesome-mcp
This project provides a curated list of Model Context Protocol (MCP) servers and tools, accessible via a desktop application, designed to enhance Claude Desktop and other AI assistants.
claude-faf-mcp
Optimizes AI understanding of software projects by providing persistent context, fixing context-drift, and enabling bi-directional synchronization between project metadata and AI documentation.