
cryppadotta/scryfall-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
cryppadotta/scryfall-mcp — кандидат на сервер MCP, импортированный из https://github.com/cryppadotta/scryfall-mcp.
Обзор
cryppadotta/scryfall-mcp — кандидат на сервер MCP, импортированный из https://github.com/cryppadotta/scryfall-mcp.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP) для взаимодействия с API Scryfall. Он предоставляет инструменты для поиска информации о картах Magic: The Gathering, правилах карт и ценовой информации.
Особенности
** Search cards** Выполните текстовый поиск по Scryfall. Возвращает список совпадающих карт. get card by id Восстановление карты непосредственно через Scryfall UUID. get card by name Получите карточку с точным английским именем. random card Получите случайную карту из всей базы данных Scryfall. get rulings Извлеките официальные решения для карты, которые могут прояснить взаимодействие карты или правила. get prices by id Получите текущую информацию о ценах (USD, USD foil, EUR, TIX) для данной карты по идентификатору Scryfall. get prices by name Получите текущую информацию о ценах (USD, USD foil, EUR, TIX) для данной карты по точному названию.
Использование
Сервер может работать в двух режимах:
- Стандартный режим работы (по умолчанию) 2.Режим событий отправки сервера (SSE) с конечными точками HTTP
Использование NPX
Если у вас установлен Node.js локально:
###Подключение к серверу
####Студенческий режим
Ваше приложение или среда (например, Claude Desktop) могут напрямую связываться с сервером.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Scryfall MCP Server
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 claude_desktop_config.json
Example snippet for stdio mode:
{
"mcpServers": {
"scryfall": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/scryfall"]
}
}
}
Or with npx:
{
"mcpServers": {
"scryfall": {
"command": "npx",
"args": ["scryfall-mcp-server"]
}
}
}
Building from Docker
docker build -t mcp/scryfall .
Then you can run in stdio mode:
docker run -i --rm mcp/scryfall
Or in SSE mode:
docker run -i --rm -p 3000:3000 mcp/scryfall --sse
License
Licensed under the MIT License.
Установка
docker run -i --rm mcp/scryfallКонфигурация
{
"mcpServers": {
"scryfall": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/scryfall"]
}
}
}