Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
MCP server for LenelS2 S2 NetBox access control via the NBAPI. Read-only by default.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
NETBOX_BASE_URL, NETBOX_USERNAME, NETBOX_PASSWORD, NETBOX_ENABLE_WRITES, NETBOX_ENABLE_DESTRUCTIVE标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"s2-netbox": {
"command": "npx",
"args": [
"-y",
"s2-netbox-mcp"
],
"env": {
"NETBOX_BASE_URL": "your-value",
"NETBOX_USERNAME": "your-value",
"NETBOX_PASSWORD": "your-value",
"NETBOX_ENABLE_WRITES": "your-value",
"NETBOX_ENABLE_DESTRUCTIVE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add s2-netbox --env NETBOX_BASE_URL=your-value --env NETBOX_USERNAME=your-value --env NETBOX_PASSWORD=your-value --env NETBOX_ENABLE_WRITES=your-value --env NETBOX_ENABLE_DESTRUCTIVE=your-value -- npx -y s2-netbox-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"s2-netbox": {
"command": "npx",
"args": [
"-y",
"s2-netbox-mcp"
],
"env": {
"NETBOX_BASE_URL": "your-value",
"NETBOX_USERNAME": "your-value",
"NETBOX_PASSWORD": "your-value",
"NETBOX_ENABLE_WRITES": "your-value",
"NETBOX_ENABLE_DESTRUCTIVE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"s2-netbox": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"s2-netbox-mcp"
],
"env": {
"NETBOX_BASE_URL": "your-value",
"NETBOX_USERNAME": "your-value",
"NETBOX_PASSWORD": "your-value",
"NETBOX_ENABLE_WRITES": "your-value",
"NETBOX_ENABLE_DESTRUCTIVE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
NETBOX_ENABLE_WRITES envNETBOX_ENABLE_DESTRUCTIVE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 J-MaFf 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:NETBOX_BASE_URL, NETBOX_USERNAME, NETBOX_PASSWORD
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.3.0)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Brontide agent arena
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
THE MECH ARENA BUILT FOR AI AGENTS. HUMANS WELCOME. Pilot mech duels over MCP, free, no sign-in.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A local MCP server that exposes LenelS2 S2 NetBox NBAPI operations — persons/credentials, access levels, portals/readers/outputs, time specs, holidays, portal/reader groups, threat levels, events/activity, and partitions/UDF lists — as MCP tools usable from any MCP-compatible client (Claude, Gemini/Antigravity, etc.).
Not the open-source netboxlabs.com "NetBox" DCIM/IPAM tool. This targets
LenelS2's S2 NetBox physical access-control appliance and its NBAPI
(
Web-Based API for S2 NetBox and S2 Global, LenelS2 doc #API-UG-14).
Newer NBAPI v1 (doc #API-UG-22, April 2024) and v2 (doc #API2-UG-8,
April 2025) guides also exist — see
docs/reference/
for reference copies. Both have now been diffed against this server's tool
surface command by command and parameter by parameter:
docs/reference/nbapi-command-diff.md
records the result, including which documented commands are deliberately
not implemented and why.
[!WARNING]
This connects to a real physical security system. With the wrong
configuration, an AI agent using this server could unlock doors or modify
access-control data on a live building. It is read-only by default —
writes and destructive operations (lock/unlock, add/modify/delete) each
require their own explicit opt-in environment variable (see **Write
access** below) — but you are responsible for what you enable and which
MCP client/model you point at it. See
SECURITY.mdbefore deploying
anything beyond read-only against a production controller.
Three steps, plus an optional fourth: check the requirements, install the server, register it with your MCP client, and optionally add the workflow skill. Before the first real call, also check the controller prerequisites.
node/npm are on your PATH: winget install OpenJS.NodeJS.LTS
Two ways to get the server:
Option A — npm (no clone needed):
npm install -g s2-netbox-mcp
This installs the s2-netbox-mcp binary; point your MCP client's command at s2-netbox-mcp directly (no node dist/index.js needed).
Option B — clone and build:
npm install
npm run build
Either way, copy .env.example to .env and fill in real values (or provide the same variables directly in your shell / in the Claude Code MCP server config's env block — see below). Never commit `.env` — it's already gitignored.
cp .env.example .env
Keeping the password out of plaintext (1Password). NETBOX_PASSWORD may be a 1Password secret reference such as op:// / /password, both in .env and in an MCP client's env block. Launch the server (or any script that talks to the controller) under op run, which resolves the reference into a real environment variable before node starts. For an MCP client, make op run the command and the node invocation its arguments:
op run --account <account> --no-masking -- node /path/to/s2-netbox-mcp/dist/index.js
dotenv never overrides a variable that is already set, so the resolved value wins over the literal op://… text in .env. Without op run, that literal text is sent as the password and login fails with NBAPI error 5 (authentication failure).
Start the server directly to sanity-check it boots (it just waits on stdio for an MCP client — Ctrl+C to stop; this also sends Logout if a session was opened):
npm start
This server works with any MCP client that speaks the standard mcpServers stdio config shape — Claude Code, Antigravity, and Gemini CLI have all been verified against it directly. Which JSON to use depends on which install option you picked above:
If you installed via npm (Option A above):
{
"mcpServers": { "s2-netbox-mcp": { "command": "s2-netbox-mcp", "env": { "NETBOX_BASE_URL": "https://netbox.example.internal", "NETBOX_USERNAME": "svc-account", "NETBOX_PASSWORD": "REPLACE_ME", "NETBOX_ALLOW_INSECURE_TLS": "false" } } } }
If you cloned and built locally (Option B above):
{
"mcpServers": { "s2-netbox-mcp": { "command": "node", "args": ["/absolute/path/to/s2-netbox-mcp/dist/index.js"], "env": { "NETBOX_BASE_URL": "https://netbox.example.internal", "NETBOX_USERNAME": "svc-account", "NETBOX_PASSWORD": "REPLACE_ME", "NETBOX_ALLOW_INSECURE_TLS": "false" } } } }
Replace the args path with the actual absolute path to dist/index.js on your machine, and replace the env values with your real controller details (or omit env entirely and rely on a .env file next to the project if you prefer — either works, since src/index.ts loads .env via dotenv before reading process.env). Run npm run build first so dist/index.js exists.
Where to put that JSON depends on the client:
| Client | Config file | Notes |
|---|---|---|
| Claude Code | .mcp.json in your project, or claude_desktop_config.json | Or add non-interactively via claude mcp add-json s2-netbox-mcp ' ' |
| Antigravity | ~/.gemini/config/mcp_config.json (Windows: %USERPROFILE%\.gemini\config\mcp_config.json) | Global — applies to every Antigravity session |
| Gemini CLI | ~/.gemini/settings.json, under its own mcpServers key | Or add non-interactively via gemini mcp add s2-netbox-mcp [args] -e KEY=value |
All three use the identical mcpServers object shape shown above — only the surrounding file and location differ.
The s2-netbox-workflows Agent Skill adds step-by-step onboard, offboard, event-unlock, and badge-denied workflows on top of this server's tools. It needs the server registered above.
Install in Claude Code (plugin):
/plugin marketplace add J-MaFf/s2-netbox-mcp
/plugin install s2-netbox-workflows@s2-netbox-mcp
The plugin, in plugins/s2-netbox-workflows/, ships only the skill. It doesn't bundle or launch the MCP server, so it won't start a second server next to the one you already registered. To pick up a newer version, run claude plugin marketplace update s2-netbox-mcp, then claude plugin update s2-netbox-workflows@s2-netbox-mcp, then restart Claude Code.
Install manually (Claude Code or any agent that reads Agent Skills): copy or symlink plugins/s2-netbox-workflows/skills/s2-netbox-workflows/ into your agent's skills directory. For Claude Code that's ~/.claude/skills/ for every project, or .claude/skills/ in a single project. The skill loads on its own when a request matches it, for example "onboard Jane Doe with card 12345", "unlock the lobby Friday 8 to 5", or "why was badge 4471 denied at the dock door?".
Before this server can talk to your controller, on the NetBox web UI go to Configuration → Site Settings → Network Controller → Data Integration and confirm all three of these are checked:
The NBAPI user account also needs a role with NBAPI read access (see the NBAPI doc's "Setting Up User Roles for the API" section) — a login that succeeds but can't read the resources this server queries will surface as FAIL or APIERROR responses per tool call. If you set NETBOX_ENABLE_WRITES, that role needs Read-Write API privilege instead (Configuration → Site Settings → User Roles → API Privilege) — Read-Only suffices only for the read tools.
Login still returns SUCCESS with a session ID, but every subsequent command — including Logout — fails with APIERROR 5. Fix: tick that checkbox on the *Data Integration* tab. This server's client detects this exact pattern (a successful re-login followed by another APIERROR 5) and surfaces a tool error naming the checkbox directly.NETBOX_API_PATH is not served by this controller. NetBox 6.x serves the NBAPI at /nbws/goforms/nbapi (the default this server uses); the 2020 doc's /goforms/nbapi path is deregistered on 6.x and returns 410 for every request. If you're on a pre-6.x controller, set NETBOX_API_PATH=/goforms/nbapi explicitly; if you're on 6.x and still see this, double-check NETBOX_API_PATH isn't set to something else by mistake.| Variable | Required | Default | Description |
|---|---|---|---|
NETBOX_BASE_URL | Yes | — | Base URL of the NetBox controller's web interface, e.g. https://netbox.example.internal. No trailing slash or path — the client appends NETBOX_API_PATH itself. |
NETBOX_USERNAME | Yes | — | NBAPI session-login username. |
NETBOX_PASSWORD | Yes | — | NBAPI session-login password. Never logged, never written to any tracked file. |
NETBOX_ALLOW_INSECURE_TLS | No | false | Set to true/1/yes to accept a self-signed/on-prem TLS certificate. Explicit opt-in only — any other value (including unset) keeps normal certificate verification. |
NETBOX_API_PATH | No | /nbws/goforms/nbapi | The NBAPI path appended to NETBOX_BASE_URL. The default is the verified path on NetBox 6.x controllers. Only set this to override the default — e.g. to the legacy, pre-6.x path /goforms/nbapi, which returns HTTP 410 Gone on 6.x controllers (see Controller prerequisites below). A value without a leading / has one added automatically. |
NETBOX_ENABLE_WRITES | No | false | Set to true/1/yes to register the write tools (see Write access below). Unset (or any other value) leaves the server strictly read-only. |
NETBOX_ENABLE_DESTRUCTIVE | No | false | Set to true/1/yes, together with NETBOX_ENABLE_WRITES, to additionally register the 11 destructive tools (see Write access below). |
NETBOX_EVENT_API_PATH | No | tracks NETBOX_API_PATH | Request path used only for trigger_event. Unset/empty tracks whatever NETBOX_API_PATH resolves to; a non-empty override is used verbatim (leading / added if missing) — e.g. the doc's pre-6.x Event API path /appd/nbapi, if your controller serves it separately. |
| NETBOX_UNLOCK_HOLIDAY_GROUPS | No | 8,7,6 | The holiday groups reserved for the m
只显示了开头部分;其余内容请在仓库中阅读