
NetLogo MCP
io.github.Razee4315由 GitHub 账号 Razee4315 发布v1.0.2更新于 Oct 27, 2026
Create, run, and analyze NetLogo agent-based models through natural conversation
发布方自己的服务:Official Logo.dev MCP
概览
让 AI 助手用自然语言创建、运行、检查并导出 NetLogo 基于智能体的模型,包括 BehaviorSpace 参数扫描。
- 可以做什么
- 创建和打开模型,含滑块、开关、按钮、监视器等界面控件
- 运行仿真并以 Markdown 表格收集逐 tick 数据
- 运行 BehaviorSpace 实验,并通过无界面启动器做并行参数扫描
- 将视图导出为 PNG,并检查世界状态、智能体样本和 patch 网格
- 搜索并运行 CoMSES Net 模型库中的模型,读取内置 NetLogo 参考资料
- 适用场景
- 适合 NetLogo 基于智能体建模的教学、课程作业或研究工作,尤其是希望用对话描述模型与实验、而不想手写 NetLogo 代码并手动点击界面的场景。
- 运行要求
- 以 Python 包形式在本机运行(需 Python 3.10+),仅支持桌面端。需要 Java JDK 11+ 并通过 JAVA_HOME 指定,以及 NetLogo 7.0+ 安装目录并通过 NETLOGO_HOME 指定;NetLogo 需手动下载。可将 NETLOGO_GUI 设为 false 以无界面运行。另提供内置 NetLogo 的 Docker 镜像。
安装
在 SourceWeft 中
- 打开 控制台中的 NetLogo MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[NetLogo MCP — Talk to NetLogo. AI runs the simulation.]
[PyPI] [CI] [Python 3.10+] [Ruff] [mypy] [MIT License]
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.
[NetLogo MCP demo — AI creating and running a simulation through conversation]
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.
[You → AI Assistant → NetLogo MCP Server → NetLogo (GUI or headless JVM)]
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
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
Manual Installation
Then add the server to your MCP client. For Claude Code, add to your project's .mcp.json:
Restart Claude Code and verify with /mcp.
Tip: prefer project-scope config (
.mcp.jsonin 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:
Docker
The image bakes in NetLogo (headless) with its bundled JRE — no host install needed:
MCP client config:
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:
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
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: [email protected] GitHub: @Razee4315 LinkedIn: @saqlainrazee
License
This project is licensed under the MIT License — free to use, modify, and distribute for any purpose.
来源:README.md,提交 14d9464
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Logo 集成
Official Logo.dev MCP
dev.logo官方发布者
远程 Logo.dev MCP 服务器,让助手查找品牌、标志与品牌标识,并管理品牌订阅和 Webhook。

ScienceLogo
由 GitHub 账号 ScienceLogo 发布
让 AI 助手编写、调整并校验 ScienceLogo 工作流与库文件,每次写入都由 ScienceLogo 读取器检查。

LogoLab
由 GitHub 账号 Blaxzter 发布
LogoLab 在本地把位图描摹成干净可编辑的 SVG,并导出完整的应用图标集,可由编码助手调用。

Logo.dev MCP
由 GitHub 账号 pvliesdonk 发布
本地 MCP 服务器,让助手通过 logo.dev API 获取公司标志并查询品牌数据。
3DLogo.io
由 GitHub 账号 cottom 发布
3DLogo.io 让助手在浏览器工作室中创建和管理 3D 标志、硬币与模型项目,返回带样式的编辑器链接、预览和分享链接。