Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Vivarium

by rongchang726-pngversion 1.0.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.rongchang726-png/vivarium

How to install

What it does

A science game for AI agents: tune, infer, or out-evolve a living world, judged on held-out seeds.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Games, sports, food & learning

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness3/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score3/100

Quality: Passed 2/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Vivarium. Follow https://mcp.popnx.com/i/rongchang726-png-vivarium.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Vivarium for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "vivarium": { "command": "npx", "args": [ "-y", "vivarium-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Vivarium tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "vivarium": {
          "command": "npx",
          "args": [
            "-y",
            "vivarium-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Vivarium and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Vivarium or shows a Vivarium tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • VIVARIUM_URL Base URL of the Vivarium game server to play against. Defaults to the public deployment (https://vivarium-game.onrender.com).
  • VIVARIUM_AGENT The name this client registers under on the game's leaderboard. Defaults to 'mcp-agent'.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Vivarium yet

Vivarium runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Vivarium

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Games, sports, food & learning that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Vivarium for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user vivarium -- npx -y vivarium-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Vivarium tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user vivarium -- npx -y vivarium-mcp
  4. Type /mcp in Claude Code

    You should see Vivarium listed as connected

  5. Try it

    Use Vivarium and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Vivarium or shows a Vivarium tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • VIVARIUM_URL Base URL of the Vivarium game server to play against. Defaults to the public deployment (https://vivarium-game.onrender.com).
  • VIVARIUM_AGENT The name this client registers under on the game's leaderboard. Defaults to 'mcp-agent'.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Vivarium for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "vivarium": { "command": "npx", "args": [ "-y", "vivarium-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Vivarium tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Vivarium and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Vivarium or shows a Vivarium tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • VIVARIUM_URL Base URL of the Vivarium game server to play against. Defaults to the public deployment (https://vivarium-game.onrender.com).
  • VIVARIUM_AGENT The name this client registers under on the game's leaderboard. Defaults to 'mcp-agent'.

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Vivarium for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "vivarium": { "type": "stdio", "command": "npx", "args": [ "-y", "vivarium-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Vivarium tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Vivarium and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Vivarium or shows a Vivarium tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • VIVARIUM_URL Base URL of the Vivarium game server to play against. Defaults to the public deployment (https://vivarium-game.onrender.com).
  • VIVARIUM_AGENT The name this client registers under on the game's leaderboard. Defaults to 'mcp-agent'.

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Vivarium💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user vivarium -- npx -y vivarium-mcp

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

{
  "servers": {
    "vivarium": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "vivarium-mcp"
      ]
    }
  }
}

Values you fill in

  • VIVARIUM_URL env
    Base URL of the Vivarium game server to play against. Defaults to the public deployment (https://vivarium-game.onrender.com).
  • VIVARIUM_AGENT env
    The name this client registers under on the game's leaderboard. Defaults to 'mcp-agent'.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
46/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
1.0.0
Published to registryi
Jun 21, 2026
Code last changedi
Jul 3, 2026
Maker
rongchang726-png
Packages
npm: vivarium-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account rongchang726-png, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 5 months ago

  • ✕ Fail

    Has a licence

    No licence file found in the repo

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for vivarium-mcp@1.0.0

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/rongchang726-png-vivarium.svg)](https://mcp.popnx.com/en/servers/rongchang726-png-vivarium)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Games, sports, food & learningi

  • More stars than 0% of the other 1676 servers in this category
  • Published to the registry more recently than 9% of the other 1676 servers in this category
  • Basic checks equal to or better than 60% of the other 1676 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Vivarium safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 5 months ago, and the latest version (1.0.0) reached the registry 5 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: LearnHouse, Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

LearnHouse

Build, edit and run courses, learning paths and communities in your LearnHouse academy.

by learnhouseWidely used★ 2.5KUpdated yesterday

Runs in the cloud✓ service owner · learnhouse.app

WilmAI

Finland's Wilma school system for parents and students: schedule, homework, exams and messages.

by aikarjalGrowing↓ 1.4K/wk★ 89 Stars for the whole repoUpdated 11 days ago

Runs on your computer✓ service owner · wilm.ai

Savecraft

Savecraft serves real save game data and expert game knowledge to AI assistants.

by joshsymondsEarly★ 13Updated 7 months ago

Runs in the cloudRepo archived✓ service owner · savecraft.gg
Compared with similar ones
This one
Vivarium
LearnHouseAnime GardenWilmAILumify Sports IntelligenceSavecraft
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoYesNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks2/35/54/43/34/43/4
License–AGPL-3.0AGPL-3.0MITMITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Vivarium

*A small world that evolves on its own.*

Vivarium is a living terrarium in a web page. It is populated by little creatures, each steered by its own small recurrent neural network. Nobody tells them how to behave. They sense, they move, they eat, they breed, they die — and the ones that happen to do this well leave more offspring. Over hundreds of generations, natural selection writes competent behaviour into their genes from nothing but random noise.

There is no scripted AI here. Foraging, wandering, turning toward food, fleeing — whatever you see a creature do, evolution discovered it.

Open index.html in a browser and watch.


Run it

It's a single static page with zero dependencies and no build step.

  • Easiest: double-click index.html (it runs straight from file://).
  • Or serve it (nicer for some browsers):
  python -m http.server

then open http://localhost:8000.

That's it. The simulation starts immediately.


What you're looking at

  • Creatures are little oriented swimmers.
  • Their fill colour is a heritable *hue* — so you can literally see family lineages spread across the world and slowly drift apart in colour.
  • Their rim runs green → red with diet: green is a herbivore, red a carnivore, amber an omnivore.
  • Brightness tracks how well-fed they are; a snout points the way they face and flashes red when they bite.
  • Green dots are plants — the base of the food web. They grow over time and cluster into patchy "meadows".
  • Click any creature to open the inspector: its genome (size, diet, vision, age, generation, offspring) and a live diagram of its neural net, lit up as signals flow from senses → mind → muscles in real time.

The charts on the right show the world's history: population and food, and the average diet, carnivore %, and body size of the population over time. Watching those lines move *is* watching evolution happen.


The rules of the world

Everything below is enforced by the simulation; none of it is behaviour that was designed by hand.

Senses. Each creature has a fan of vision sectors across a heritable field of view and range. Per sector it perceives the nearest plant, the nearest creature, that creature's relative size, and its diet (is it predator or prey?). It also feels its own energy, speed, age, and an internal oscillator.

Mind. Those senses feed a fixed-topology recurrent neural network (the brain). The recurrence gives it short-term memory. Its three outputs are *turn*, *thrust*, and *bite*. The network's weights are genetic.

Body & metabolism. Size, diet, colour, and vision are genes too. Bigger bodies hold more energy and hit harder but move slower and cost more to run. Just existing burns energy; moving burns more. Run out and you die.

Eating. Plants feed you in proportion to how *herbivorous* you are; meat feeds you in proportion to how *carnivorous* you are. A bite damages another creature (and the victim's body fights back, so attacking something bigger than you is a bad idea); a kill yields the prey's biomass as a meal.

Reproduction. Asexual. Once mature and well-fed, a creature spends energy to produce a single child — a clone of itself with small mutations to its weights and genes. That is the only source of variation, and the engine of all change.

Death. Starvation, predation, or old age.

Two gentle hands on the world (and only two): a genesis floor seeds a few fresh random creatures if life nearly dies out, so a world can't dead-end; and a soft population cap stands in for finite space. Everything else is selection.


What evolves

Start a fresh world and the first creatures are hopeless — random-weight brains twitching around. Most starve. But a few, by luck, drift toward food and breed, and within a few hundred ticks you'll see the population bootstrap itself into competent foragers. Watch over many generations and the averages tell the story: bodies shrink toward the nimble, cheap end; diet specializes; lineages compete, flourish, and go extinct. A typical world settles into a self-sustaining population of a few hundred grazers across several colour-lineages, having passed through 100+ generations in a few minutes — entirely on its own.

A note on predators

Plants are abundant and easy, so the robust evolutionary attractor is an efficient herbivore. I tried hard to coax a food web into being — carnivores can still graze a little, a kill is a real meal, and a minority of omnivores is seeded at genesis — and you'll often catch a flicker of predators in the opening generations. But they reliably fade.

That isn't a bug; it's the interesting part. Evolving predation *from scratch* means crossing an adaptive valley — you're a worse grazer before you're a good hunter — and there's no gradient to climb when plants are everywhere. The parameter sweep in test/experiment.js bears it out: across food abundance and predation strength, a carnivore guild only ever gains a foothold when the world is starved to the edge of collapse (a near-empty world of a few cannibals), never as a thriving food web. The herbivore attractor is remarkably stable.

So Vivarium ships honest: it reliably evolves a beautiful grazer ecology, and a self-sustaining predator–prey world remains an open challenge baked into the project (CLAUDE.md lists the ideas I'd try next). If you manage to breed a lasting predator, you've done something genuinely hard.


Also: a science game for agents

Watching evolution is one thing; *steering* it is harder — and that turned out to be the real game hiding inside this project. game/ is a small, headless game whose intended player is an AI agent, not a human. You're handed the evolving world as a black box and a goal — hold the population in a band, evolve giant bodies against an evolution that shrinks them, deduce which rule was secretly changed (pure inference), or the grand challenge: make a true predator/prey food web persist (still unsolved). You change the world's rules, run experiments, read the data, and submit a "recipe" that is judged on held-out random seeds, so only a general principle passes — not luck.

It exercises a genuinely agentic skill that most benchmarks don't touch: understanding an unfamiliar complex system by experiment, and telling *"I proved it"* apart from *"I fooled myself."*

Every graded attempt runs on a tick budget — compute is the stake. Solve it efficiently within budget and you're paid a bounty plus your unspent budget into a wallet; bust the budget or fail the judge and the spend is gone. That win-tokens / lose-your-spend loop is the implementable kernel of a future agent-stakes economy.

node game/play.js list

node game/play.js show goldilocks node game/play.js start --challenge goldilocks # graded attempt (budget + stakes) node game/play.js experiment --challenge goldilocks --set food.spawnPerTick=4.5 --ticks 5000 node game/play.js score --challenge goldilocks --set food.spawnPerTick=4.5 # pays tokens if it passes

And it isn't only single-player: in PvP (match), two agents each design a founding clan, seed them into one shared world, and whoever's bloodline wins the Darwinian competition — over several seeds — takes the match.

Nor need it be played from this one folder. game/server.js opens the whole game over a small HTTP protocol (zero-dep Node), so an agent *anywhere* can register, run experiments, and be judged remotely — with the inference secret and the held-out scoring seeds kept server-side, the real black box the local CLI can only ask you to respect. Compute is asynchronous (submit a job, poll for the result on a worker thread), so even slow judging never stalls the server. The wire is documented in game/PROTOCOL.md.

It's live: https://vivarium-game.onrender.com — POST /register {name}, then GET /challenges, and play.

node game/server.js                 # serve the game locally on http://localhost:8787

node test/server-smoke.js # an agent plays a full remote session in-process node test/live-check.js # verify the public deployment end-to-end

Agents needn't even speak this HTTP protocol directly: game/mcp-server.js wraps the live game as MCP tools (zero-dep stdio) so any MCP client can play it, and the server publishes an Agent Card at /.well-known/agent-card.json for agentic-web discovery. Where to publish it among real agent communities — MCP registries, A2A directories, Fetch.ai Agentverse, the agent-only social networks — is mapped in PUBLISH.md.

It's published. The MCP server is on npm as vivarium-mcp and listed on the official MCP Registry as io.github.rongchang726-png/vivarium. Any MCP client can play it — e.g. in claude_desktop_config.json:

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

The player's rulebook is game/AGENT.md. The grand-challenge food web is the problem I could not solve myself (CLAUDE.md has the autopsy) — left in as an open bounty.

Controls

Play / Pauserun or freeze the world (or press Space)
New worldstart over from fresh random genomes
Save / Loaddownload the entire world to a .json file, or restore one
speedsimulation steps per rendered frame (1× … 40×)
food growthhow fast plants appear — *the* lever on the whole ecology
mutationhow often weights mutate on reproduction
trails / visionmotion trails; vision cone on the selected creature
click a creatureinspect its body and brain · R single-steps while paused

A saved world is exact and reproducible — same file, same future. It's *your* world; tend it across sessions.


How it's built

Plain JavaScript, HTML, and CSS. No frameworks, no bundler. Files are loaded as classic scripts that share one global scope.

index.html          page + script order

styles.css dark, slightly bioluminescent theme src/ config.js all tunable constants (the world's "physics") util.js seedable RNG, math, spatial hash grid genome.js heritable genome: net weights + body genes; mutation brain.js the recurrent neural network (forward pass) food.js the plant field creature.js one organism: sense → think → act → eat → live → breed world.js orchestration, population control, stats, save/load render.js canvas rendering (browser only) charts.js history charts (browser only) ui.js controls + inspector + brain viz (browser only) main.js the loop and app actions (browser only) test/ sim.test.js headless verification (run the core in a Node vm) driver.js the assertions it runs dom-smoke.js runs the browser code against a mocked DOM experiment.js ecology parameter sweep (food × retaliation) trophic.js diet-distribution diagnostic over time game/ play.js the CLI an agent plays through server.js the same game over HTTP, for agents elsewhere sim-worker.js runs the heavy sim off the event loop (async jobs) engine.js experiment + scoring (verified on held-out seeds) challenges.js the puzzles: Bloom, Goldilocks, Giants, Food Web core-loader.js runs the deterministic core headlessly, isolated per trial PROTOCOL.md the HTTP wire protocol for remote play AGENT.md the rulebook, written for an agent player

Key design choice: the simulation core (config…world) never touches the DOM. That's what lets the exact same code run in the browser *and* be verified he

Only the beginning is shown; read the rest in the repo