English | 中文
A server based on Model Context Protocol (MCP) for interacting with the Baige (ygocdb.com) API. Provides a set of tools for querying Yu-Gi-Oh! card information in Chinese.
This server is based on the public API of Baige (ygocdb.com).
- Card Search:
https://ygocdb.com/api/v0/?search=keyword - Card Images:
https://cdn.233.momobako.com/ygopro/pics/<id>.jpg
-
search_cards
Search Yu-Gi-Oh! cards by keywords, including card names and effect text. -
get_card_by_id
Get detailed information about a single Yu-Gi-Oh! card by its ID. -
get_card_image
Get the image of a Yu-Gi-Oh! card by its ID.
# Global installation
npm install -g ygocdb-mcp-server
# Or run directly (recommended)
npx ygocdb-mcp-server# Clone the project
git clone <repository-url>
cd ygocdb-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run STDIO mode
npm run start:stdio
# Run HTTP mode
npm run start:httpThe server supports two running modes:
For direct integration with MCP clients like Claude Desktop:
npm run start:stdioFor container deployment or HTTP client access:
npm run start:httpThe HTTP server will start on port 8081 with endpoint http://localhost:8081/mcp
Add configuration to claude_desktop_config.json:
{
"mcpServers": {
"ygocdb": {
"command": "npx",
"args": ["ygocdb-mcp-server"]
}
}
}{
"mcpServers": {
"ygocdb": {
"command": "node",
"args": ["path/to/ygocdb-mcp/dist/index.js"],
"cwd": "path/to/ygocdb-mcp"
}
}
}# Build image
docker build -t ygocdb-mcp .
# Run STDIO mode (for integration)
docker run -i --rm ygocdb-mcp
# Run HTTP mode (for service)
docker run -p 8081:8081 ygocdb-mcpThe project uses cross-env to ensure proper environment variable setting across all platforms:
- Windows:
npm run start:httpornpm run start:stdio - macOS/Linux:
npm run start:httpornpm run start:stdio - Docker: Automatically uses HTTP mode