
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 標誌、硬幣和模型專案,回傳套用樣式的編輯器連結、預覽和分享連結。