Skip to main content
Glama
z3ndroot

mewgenics

by z3ndroot

Mewgenics Cat Bridge

Let Claude see and manage your cats in a running game of Mewgenics.

A small mod DLL reads the game's memory live and a Python MCP server turns it into tools an AI assistant can use: your cats' stats, abilities, mutations and family trees, the rooms of your house, and advice on breeding, strays and adventures. It can also edit cats (stats, passives, body parts).

Русская версия

Unofficial fan project. Not affiliated with or endorsed by Edmund McMillen, Tyler Glaiel or the publishers of Mewgenics.

What you can ask

  • "Which two cats should I breed for strength and constitution, without inbreeding?"

  • "Plan three generations of breeding towards all 7s."

  • "Is today's stray worth adopting?"

  • "Which cats aren't needed for breeding? Build me an adventure party and pick their collars."

  • "How should I set up the Floor1_Small room for breeding?"

  • "Show me Sosakus's family tree. Is Dushenka inbred?"

  • "Give Bukhoslav the Toad Style passive." / "Remove Pox from Grimurir."

Related MCP server: ck3-strategy-advisor

Features

Area

Tools

What they do

Cats

list_cats, get_cat

Stats exactly as shown in-game, split into base (heritable) and bonus parts (class, items, passives, mutations, injuries); abilities and passives with in-game names (English and Russian); mutations; room; the daily stray

Family

get_family

Parents, ancestors, siblings, children and inbreeding coefficient for every cat the save has ever had

Breeding

evaluate_pair, suggest_breeding_pairs, plan_breeding

Kinship / kitten COI, sex and orientation compatibility, which stats, mutations and abilities a kitten can inherit and how likely, multi-generation plans

Household

get_house_status, set_house_food, set_furniture_effect

Current day, food and gold, how many nights the food lasts; set the food stock; (experimental) change a furniture's effect values until the game restarts

Strays & roles

evaluate_strays, breeding_roles

Whether to adopt the stray waiting outside; which cats the bloodline needs and which are free to risk

Adventures

suggest_adventure_team

A party of cats not needed for breeding, with a class (collar) for each

House

get_rooms, suggest_room_setup

Room stats as shown in-game (Comfort incl. crowding, Stimulation, Evolution, Health, Appeal), furniture per room, what to move where, what to look for in shops

Editing

set_cat_stat, set_cat_passive, find_passives, set_cat_body_part, add_cat_mutation, find_mutations, set_cat_hp

Change base stats, passives / disorders and body parts; search mutations by effect or stat and give one to a cat; every edit returns the old value so it can be undone

Requirements

Installation

  1. Download mewgenics-cat-bridge-vX.Y.Z.zip from Releases and unzip it anywhere, e.g. C:\mewgenics-cat-bridge.

  2. Install the Python packages — open a terminal in that folder and run:

    pip install -r requirements.txt
  3. Connect it to Claude.

    Claude Desktop — Settings → Developer → Edit Config, and add (use your own path, with double backslashes):

    {
      "mcpServers": {
        "mewgenics": {
          "command": "python",
          "args": ["C:\\mewgenics-cat-bridge\\mcp_server\\server.py"]
        }
      }
    }

    Restart Claude Desktop.

    Claude Code:

    claude mcp add mewgenics -- python C:\mewgenics-cat-bridge\mcp_server\server.py

Every play session

  1. Start Mewgenics and load your save (be in the house).

  2. Double-click inject.bat. It should say injected ... into pid ....

  3. Talk to Claude.

The mod stays loaded until you close the game; run inject.bat again after each game start. eject.bat unloads it without closing the game.

The game folder is found automatically through Steam. If yours isn't found, set the environment variable MEWGENICS_DIR to the folder that contains Mewgenics.exe.

Safety

  • Reading never changes anything. Edits (set_* tools) change the running game's memory, and the game saves them like any other change. Claude should ask before editing — and you can always ask it to undo, since every edit reports the previous value.

  • Save before experimenting. The game also keeps its own backups in %APPDATA%\Glaiel Games\Mewgenics\<id>\saves\backups.

  • The mod checks the game's exact version (SHA-256 of Mewgenics.exe) and stays inactive on any other version instead of guessing.

Game updates

This release is built for Mewgenics 1.1.21239. After a game update the mod stays inactive (tools answer "timed out" / "could not connect") until a new release adds the new version. If you build from source you can usually update it yourself in a minute — see docs/DEVELOPMENT.md.

Troubleshooting

Message

Fix

could not connect to \\.\pipe\cat_bridge

The mod isn't loaded: start the game, load the save, run inject.bat

Mewgenics.exe is not running

Start the game before inject.bat

needs 64-bit Python

Install the 64-bit Python build

timed out waiting for game thread

The game is on a loading screen or frozen in the background; switch back to it. Also the symptom of an unsupported game version

game data unavailable / stats without class bonuses

resources.gpak wasn't found — set MEWGENICS_DIR

Only some cats listed

Be in the house; other screens aren't supported yet

How it works

Mewgenics.exe ── cat_bridge.dll (injected) ── named pipe ── mcp_server (Python) ── Claude
                 reads/writes game memory                   + game data from resources.gpak

The DLL hooks the game's per-frame update and answers one command per frame on the game thread, so it never touches memory while the game is changing it. Everything it knows was reverse-engineered and checked against the game's UI, its data files and its save format; docs/DEVELOPMENT.md lists what is verified and what is still a hypothesis. In short:

  • Verified in-game: displayed stat formula, heritable (base) stats, body-part mutations and how they stack, room Comfort with crowding penalty, pedigree and inbreeding coefficient (matches the game on every cat), who lives in the house vs. the stray, stat / passive / body-part editing.

  • Measured on a real save: ability inheritance (≈32% a parent's innate ability, ≈2% a learned one, ≈66% random).

  • Read from the game's code: the cat info labels (libido, aggression, inbreeding, orientation; checked in-game) and the mating formula (libido, orientation, partner's charisma, room Comfort, fertility).

  • Checked on real births (17 in-game nights, 60 kittens, logged with tools/birth_logger.py): litter size from fertility matches the game's formula; a pair alone in a room breeds about as often as the formula says; which parent a kitten's stat comes from is about a coin flip (55% the better one) at any Stimulation from 0 to 200 — the popular "Stimulation 32 / 95 / 196" tiers did not hold up.

  • Still open: how a cat picks its partner for the night in a shared room, so mating chances there are an upper bound.

Building from source

Needs Visual Studio 2022+ (or Build Tools) with "Desktop development with C++".

git clone https://github.com/z3ndroot/mewgenics-cat-bridge
cd mewgenics-cat-bridge
pip install -r requirements.txt
powershell -ExecutionPolicy Bypass -File mod\build.ps1      # -> bin\cat_bridge.dll

Add -Console to get a log window next to the game. See docs/DEVELOPMENT.md for the architecture, the pipe protocol and how to reverse-engineer new structures.

Credits

License

MIT. Parts of mod/ are © polymeric under MIT; vendored libraries keep their own licenses.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables Claude to read Crusader Kings III save files and retrieve strategic game information such as realm overview, military, succession, diplomacy, vassals, factions, and expansion options.
    11
    3
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables Claude and other MCP clients to play Pokémon games on emulated Game Boy/GBA or real Switch hardware by exposing tools for button input, reading RAM-decoded game state, screenshots, save states, and persistent markdown notes.
    MIT