nomgacha-mcp

NomGacha (nomgacha.com) için 224 gerçek Open Food Facts TCG kartını arayan, paket açan ve günlük kalori baskınlarını simüle eden ücretsiz, API anahtarı gerektirmeyen MCP sunucusu.

Dokümantasyon

NomGacha MCP Server

Official Model Context Protocol (MCP) server for NomGacha — the free, zero-login browser trading card game and Daily Calorie Raid Boss challenge powered by curated real-world nutrition data from Open Food Facts.

Official MCP Guide & Live Setup: https://nomgacha.com/mcp/
Play Free in Browser: https://nomgacha.com/ · Collection Dex · Daily Raid Boss


Features (Zero API Key Required)

All tools run directly against NomGacha's public Series 01 dataset (https://nomgacha.com/data/cards.min.json, 224 studio-clean Open Food Facts cards) with in-memory caching and zero authentication required.

Tools (6)

ToolDescription
search_food_cardsSearch & filter all 224 Series 01 cards by keyword, rarity (N–UR), Nutri-Score (A–E), category, country, kcal range, or Healthy Counter ×1.5 eligibility.
get_food_cardInspect a single card by barcode ID, serial number (#001–#224), or name — with exact per-100g nutrition, transparent ATK/DEF equation breakdown, and Open Food Facts links.
open_booster_packSimulate ripping 1–10 Standard or 10-Pack Mythic Gold Pity booster packs using exact production slot weights, returning pulled cards and a live nomgacha.com/share/ URL.
get_daily_raid_bossDeterministically compute today's (or any UTC date's) global Daily Calorie Raid Boss, Boss HP, UTC reset countdown, and top Healthy Counter picks.
simulate_raid_battleDraft up to 5 cards (or auto-pick the optimal Healthy Counter squad) to simulate a full 5-turn Raid Boss battle with ×1.5 CRIT math and a copyable Wordle-style grid.
calculate_nutrition_card_statsConvert any real-world snack's per-100g nutrition label into official NomGacha ATK, DEF, estimated Rarity, Raid damage, and closest Series 01 rivals.

Resources (2) & Prompts (2)

  • Resources: nomgacha://series01/overview (live pool stats & leaders), nomgacha://rules/formulas (exact ATK/DEF/Raid/Drop-Rate specs)
  • Prompts: daily_raid_strategy, rate_my_snack

Quick Start (stdio)

Option A: Run via npx (Recommended after npm publish)

Add this to your Claude Desktop, Cursor, Windsurf, or generic MCP client configuration:

{
  "mcpServers": {
    "nomgacha": {
      "command": "npx",
      "args": ["-y", "nomgacha-mcp-server"]
    }
  }
}

Option B: Run Locally from Source

git clone https://github.com/double2dev/nomgacha-mcp.git
cd nomgacha-mcp
npm install
npm run build

Then point your MCP client to the compiled entry point:

{
  "mcpServers": {
    "nomgacha": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/mcp-server/dist/index.js"],
      "env": {
        "NOMGACHA_DATA_URL": "https://nomgacha.com/data/cards.min.json"
      }
    }
  }
}

Environment Variables (All Optional)

See .env.example:

  • NOMGACHA_DATA_URL — Custom URL for cards.min.json (default: https://nomgacha.com/data/cards.min.json)
  • NOMGACHA_DATA_PATH — Absolute path to a local cards.min.json file for offline usage
  • NOMGACHA_CACHE_TTL_SEC — In-memory dataset cache TTL in seconds (default: 3600)

Remote Transport Note (Streamable HTTP / SSE)

This package defaults to local stdio transport so it runs with zero hosting cost and zero rate limits on any developer's machine. If you want to expose a hosted remote MCP endpoint in the future, wrap registerNomGachaTools and registerNomGachaResourcesAndPrompts inside @modelcontextprotocol/sdk's StreamableHTTPServerTransport on Node.js or Cloudflare Workers.


Attribution & License

  • Code License: MIT
  • Nutrition Data: Curated from Open Food Facts under ODbL 1.0 / CC-BY-SA 3.0.
  • Disclaimer: NomGacha is strictly an entertainment trading card game — not medical, dietary, or health advice.