The first MCP (Model Context Protocol) server for NetLogo — enabling AI assistants to create, run, and analyze agent-based models through natural conversation.
Works with: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code (Copilot), Cline, Continue, Roo Code, Zed, OpenCode, Codex — any tool that supports MCP.
As an AI student taking an Agent-Based Modeling course, I searched for an MCP server to control NetLogo — nothing existed. So I built one.
Instead of manually writing NetLogo code, clicking buttons, and tweaking sliders, you tell your AI assistant what you want in plain English:
"Create a predator-prey model with 100 sheep and 20 wolves. Run it for 500 ticks and show me the population dynamics."
The AI writes the code, runs the simulation, and shows you the results — all through conversation.
By default a real NetLogo window opens (on first use) so you can watch your simulations run live. Headless mode is available for CI or servers.
- Create models from code — with real interface widgets: sliders, switches, buttons, monitors
- Run simulations and collect tick-by-tick data as markdown tables
- Run BehaviorSpace experiments — parallel parameter sweeps via the headless launcher
- Export the view as PNG — visible inline in chat
- Inspect everything — world state, agent samples, patch grids for heatmaps
- CoMSES Net integration — search and safely run models from the largest peer-reviewed ABM library
- Built-in references — NetLogo primitives, programming guide, and 6→7 transition guide as MCP resources
- Lazy startup — the NetLogo window only opens when you actually use a tool, not when your AI client connects
See