原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

NetLogo MCP

作者:Razee4315版本 1.0.2i★ –i在你的电脑上运行
注册名称io.github.Razee4315/netlogo-mcp

安装

概览

作者提供的说明(英文原文)

Create, run, and analyze NetLogo agent-based models through natural conversation

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:NETLOGO_HOME, JAVA_HOME

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: NETLOGO_HOME, JAVA_HOME, NETLOGO_GUI

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "netlogo": {
      "command": "uvx",
      "args": [
        "netlogo-mcp"
      ],
      "env": {
        "NETLOGO_HOME": "your-value",
        "JAVA_HOME": "your-value",
        "NETLOGO_GUI": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add netlogo --env NETLOGO_HOME=your-value --env JAVA_HOME=your-value --env NETLOGO_GUI=your-value -- uvx netlogo-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "netlogo": {
      "command": "uvx",
      "args": [
        "netlogo-mcp"
      ],
      "env": {
        "NETLOGO_HOME": "your-value",
        "JAVA_HOME": "your-value",
        "NETLOGO_GUI": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "netlogo": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "netlogo-mcp"
      ],
      "env": {
        "NETLOGO_HOME": "your-value",
        "JAVA_HOME": "your-value",
        "NETLOGO_GUI": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • NETLOGO_HOME 必填 env
    Path to the NetLogo 7.0+ installation directory (e.g. C:/Program Files/NetLogo 7.0.3)
  • JAVA_HOME 必填 env
    Path to a Java JDK 11+ installation (not a JRE)
  • NETLOGO_GUI env
    Set to false for headless mode (no NetLogo window); default true

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Razee4315 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18345 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18345 个服务器的 10% 更新
  • 基础检查结果等于或优于此分类中其他 18345 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

NetLogo MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:NETLOGO_HOME, JAVA_HOME

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.2)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, ScienceShot science reference

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

ScienceShot science reference

作者:scienceshot.com

Sourced, citable answers in radiation and particle physics, photonics, electronics and quantum.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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.

Why NetLogo 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.

Features

  • 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 docs/TOOLS.md for the full reference of all 25 tools, widget schema, and prompts.

Prerequisites

RequirementInstall via terminal?How
Python 3.10+YesWindows: winget install Python.Python.3.12 · macOS: brew install python@3.12 · Linux: sudo apt install python3.12
Java JDK 11+YesWindows: winget install EclipseAdoptium.Temurin.21.JDK · macOS: brew install --cask temurin · Linux: sudo apt install openjdk-21-jdk
NetLogo 7.0+No — manualDownload from ccl.northwestern.edu/netlogo

Only NetLogo requires manual download. Everything else can be installed via terminal, and the Zero-Config Setup prompt below handles those automatically.

Zero-Config Setup (Recommended)

If you're using an AI coding tool, copy the prompt below into your chat. The AI will detect your OS, find your NetLogo and Java installations, clone the repo, install dependencies, configure your MCP client, and tell you how to use it.

Click to copy the setup prompt

Please set up the NetLogo MCP server for me end-to-end. Follow these steps carefully:
  1. Detect my environment
  • Identify my OS (Windows / macOS / Linux).
  • Check Python version (need 3.10+). If missing, tell me to install it first and stop.
  • Check for Java JDK 11+ (not JRE). Look in common locations (JAVA_HOME env var, standard install dirs). If missing, tell me to install Adoptium Temurin JDK 11+ and stop.
  • Check for NetLogo 7.0+. Look in common locations:
  • Windows: C:/Program Files/NetLogo*
  • macOS: /Applications/NetLogo*
  • Linux: /opt/netlogo*, ~/netlogo* If NetLogo isn't installed, tell me to download it from https://ccl.northwestern.edu/netlogo/download.shtml and stop.
  1. Install
  • Run: pip install netlogo-mcp
  • Verify the netlogo-mcp command is now available on my PATH.
  1. Identify my MCP client
  • Figure out which AI tool I'm using (Claude Code, Cursor, Windsurf, Cline, Continue, Roo Code, Zed, OpenCode, VS Code Copilot, Codex, or Claude Desktop).
  • If you're not sure, ask me.
  1. Configure the MCP client
  • Locate (or create) the correct config file for my client (see https://github.com/Razee4315/NetLogo-MCP/blob/main/docs/CLIENTS.md for exact paths and schemas per client).
  • Add a netlogo server entry with:
  • command: netlogo-mcp
  • env.NETLOGO_HOME: the NetLogo path you detected
  • env.JAVA_HOME: the JDK path you detected
  • Use the exact JSON schema for my specific client (e.g. "type": "stdio" for Cursor, "servers" key for VS Code).
  • Preserve any existing config entries — merge, don't overwrite.
  • IMPORTANT: configure it for THIS project only (project-scope config file), not globally, unless I say otherwise — a global entry loads the server in every session.
  1. Tell me what to do next
  • Tell me to fully restart my AI tool for the new MCP server to load.
  • Tell me the NetLogo window opens on the FIRST model tool call, and that call takes 30–60 seconds while the Java Virtual Machine starts. Tell me NOT to click stop during this wait.
  • Give me this exact test prompt to try after restart:

"Create a simple predator-prey model with wolves and sheep on a green landscape. Run setup, then run 100 ticks while tracking wolf and sheep counts. Export the view before and after so I can see how the world evolved."

  • Tell me where models and exports are saved (by default, the current working directory's models/ and exports/ folders) and that I can browse them with the list_models tool.

Do not skip any verification step. If something fails, stop and tell me exactly what failed and how to fix it.

Manual Installation

pip install netlogo-mcp

Then add the server to your MCP client. For Claude Code, add to your project's .mcp.json:

{

"mcpServers": { "netlogo": { "command": "netlogo-mcp", "args": [], "env": { "NETLOGO_HOME": "C:/Program Files/NetLogo 7.0.3", "JAVA_HOME": "C:/Program Files/Eclipse Adoptium/jdk-25.0.2.10-hotspot" } } } }

Restart Claude Code and verify with /mcp.

Tip: prefer project-scope config (.mcp.json in one project) over global config — a global entry loads the server in every session of every project.

Using Cursor, Windsurf, VS Code, Cline, Continue, Roo Code, Zed, OpenCode, Codex, or Claude Desktop? See docs/CLIENTS.md for exact config for all 11 clients. All configuration options (GUI/headless mode, directories, limits) are in docs/CONFIGURATION.md.

Developing or contributing? Clone the repo and install editable instead:

git clone https://github.com/Razee4315/NetLogo-MCP.git

cd NetLogo-MCP pip install -e ".[dev]"

Docker

The image bakes in NetLogo (headless) with its bundled JRE — no host install needed:

docker build -t netlogo-mcp .

docker run -i --rm netlogo-mcp

MCP client config:

{

"mcpServers": { "netlogo": { "command": "docker", "args": ["run", "-i", "--rm", "netlogo-mcp"] } } }

Docker runs headless only (no GUI mode). Add -v ./exports:/data/exports to keep exported views and worlds on the host.

Quick Start

Once connected, try these prompts in any MCP client:

> Create a simple NetLogo model with 50 turtles doing a random walk.

Run setup, simulate 100 ticks, and export the view.

Open the Wolf Sheep Predation model and run a parameter sweep

on initial-number-wolves from 10 to 100.

Build a disease spread model with sliders for population size and

infection chance.

The first model tool call takes 30-60 seconds while the JVM starts — the NetLogo window appears when it's ready. Don't click stop. Every call after that is instant.

Troubleshooting

ProblemSolution
NETLOGO_HOME is not setSet the environment variable to your NetLogo install directory
JAVA_HOME is not setSet it to your JDK directory (not JRE)
JVM crashes on startupMake sure JAVA_HOME points to JDK 11+, not an older version
No model is loadedCall open_model or create_model before using other tools
First model call hangs for 30-60sNormal — JVM is warming up. Don't click stop.
NetLogo window opens when my AI client startsYou have NETLOGO_EAGER_START=true set, or an old version — by default the window only opens on first tool use
Server won't connectRun netlogo-mcp manually in terminal to see error output

Documentation

  • docs/TOOLS.md — Full tool reference, widget schema, BehaviorSpace & CoMSES guides
  • docs/CONFIGURATION.md — All environment variables, GUI vs headless, startup timing
  • docs/SECURITY.md — Security model and trust boundary
  • docs/CLIENTS.md — Setup for all 11 MCP clients
  • docs/DEVELOPMENT.md — Project structure, running tests, architecture notes
  • CONTRIBUTING.md — How to contribute
  • CHANGELOG.md — Version history

Listed on

Citing

If you use NetLogo MCP in research or teaching, please cite it — click "Cite this repository" in the GitHub sidebar, or see CITATION.cff.

Author

Saqlain Abbas Email: saqlainrazee@gmail.com GitHub: @Razee4315 LinkedIn: @saqlainrazee

License

This project is licensed under the MIT License — free to use, modify, and distribute for any purpose.

问 PopNx