Back to Home
AImaginationLab icon

magic-the-gathering-toolkit

Verified Safe

by AImaginationLab

Overview

Provides an MCP server for AI-powered Magic: The Gathering deck building assistance, card search, and synergy/combo discovery.

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 project adheres to good security practices, utilizing Pydantic for input validation in API endpoints and `aiosqlite` with parameterized queries to prevent SQL injection. Network requests for data sources (Scryfall, MTGJson, GitHub releases) are directed to trusted, hardcoded URLs. The synergy and combo detection mechanisms use regular expressions derived from static, developer-controlled JSON files, mitigating ReDoS risks from user input. There are no apparent hardcoded secrets or direct shell command executions based on unvalidated user input. The server is designed for local integration with MCP clients, limiting external attack surface.

Similar Servers

Stats

Interest Score24
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars1
Forks0
Last Update2026-01-04

Tags

Magic: The GatheringMTGCard GameDeck BuildingAI AssistantToolkitCard DatabaseSynergyLocal Server