Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP server for the Zabbix API — daily brief, problems, hosts, items
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"zapi": {
"command": "uvx",
"args": [
"zapi-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add zapi -- uvx zapi-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"zapi": {
"command": "uvx",
"args": [
"zapi-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"zapi": {
"type": "stdio",
"command": "uvx",
"args": [
"zapi-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub shigechika ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.14.0) เข้า registry 20 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Rystic
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
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.
Start, seed, clock, inspect and diff Rystic API simulators from your agent.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
English | 日本語
MCP (Model Context Protocol) server for the Zabbix API.
Built for network operations: a single daily_brief call summarizes active problems plus site-specific categories (DHCP pool usage, SNAT session usage, core-network problems, …), and individual tools query problems, hosts, and item values. Organization-specific tags live in a config file, not the code, so the server stays generic.
Version-adaptive auth: works against Zabbix 6.0 LTS (user + auth field) and forward-compatible with 6.4 / 7.0 (username + Authorization: Bearer).
Documentation: https://shigechika.github.io/zapi-mcp/
| Tool | Description |
|---|---|
health_check | Server version, Zabbix connectivity/auth, detected API version, and configured daily_brief categories — call at session start or after a timeout |
daily_brief | Morning patrol: active problems (Warning+), hosts currently in maintenance, plus one section per configured category |
get_problems | Active problems by severity and tag, newest-first with age; header shows the true total (showing N of TOTAL when capped); problems on disabled triggers, hosts or items are hidden as in the Zabbix frontend (include_disabled=True lists them); output includes eventid |
get_hosts | List hosts filtered by role/tag/group, with IP and tags |
get_host_items | Current item values for a host (server-side host filter) |
acknowledge_problem | Acknowledge problems and add a message (does not close them) |
set_maintenance | Open an idempotent Zabbix maintenance window, selecting hosts by location tag or by exact host name (exactly one of the two) |
get_maintenance_windows | List maintenance windows (Active/Upcoming/Expired) — cross-check before treating another tool's alert as a new incident |
# uv
uv pip install zapi-mcp
pip install zapi-mcp
Or from source:
git clone https://github.com/shigechika/zapi-mcp.git
cd zapi-mcp
uv sync
pip install -e .
Set the following environment variables:
| Variable | Description | Default |
|---|---|---|
ZABBIX_URL | Zabbix base URL (e.g. https://zabbix.example.com); /api_jsonrpc.php is appended if absent | *required* |
ZABBIX_API_TOKEN | Zabbix API token (Zabbix 5.4+), used instead of ZABBIX_USER/ZABBIX_PASSWORD | *one of the two* |
ZABBIX_USER | Zabbix API user | *one of the two* |
ZABBIX_PASSWORD | Zabbix API password | *one of the two* |
ZABBIX_CATEGORIES_INI | Path to a categories INI file for daily_brief (optional) | — |
ZABBIX_BRIEF_RECENT_HOURS | daily_brief "recent" window in hours; problems older than this are folded to a count | 24 |
ZABBIX_BRIEF_PROBLEM_LIMIT | Max active problems daily_brief fetches per call before counting the rest | 1000 |
ZABBIX_READ_ONLY | true (or 1/yes/on) keeps acknowledge_problem and set_maintenance from being registered, so the model never sees them. Any other non-false value is also treated as read-only and reported by health_check | unset (write tools on) |
The API user needs read permission for the host groups you query, plus acknowledge permission if you use acknowledge_problem, maintenance-write permission if you use set_maintenance, and maintenance-read permission (usually included by default) for get_maintenance_windows and the daily_brief "In Maintenance" section.
Authenticate with either ZABBIX_API_TOKEN or ZABBIX_USER + ZABBIX_PASSWORD. When a token is set, a leftover ZABBIX_USER is ignored; a token together with both ZABBIX_USER and ZABBIX_PASSWORD is a configuration error. A token needs no login and keeps a password out of the client configuration; it can be given an expiry and revoked on its own on Zabbix's API tokens page.
daily_briefProblems are grouped by severity and listed newest-first, each annotated with its age (e.g. 3h ago). Problems older than the recent window (ZABBIX_BRIEF_RECENT_HOURS, default 24h) are folded to a single … and N older (stale; oldest …) line — so a backlog of alerts that Zabbix keeps active because their recovery is never auto-confirmed (ICMP ping down, RDP down, …) doesn't bury what just happened. Section headers carry the true total and show showing N of TOTAL when the fetch is capped, never a silent truncation.
daily_briefRight after Active Problems, daily_brief lists hosts covered by a maintenance window that's active now, plus any window starting later today — so a planned outage isn't mistaken for a new incident by whatever else is watching those hosts. The ## In Maintenance section is omitted entirely when there's nothing to show (no news is no maintenance). Windows starting tomorrow or later, and expired windows, aren't included here; call get_maintenance_windows (optionally with include_expired=True) for the full picture.
daily_brief (optional)daily_brief always lists active problems. To add site-specific sections — DHCP pool exhaustion, SNAT session usage, core-network problems — point ZABBIX_CATEGORIES_INI at an INI file. Each [section] is one category:
[dhcp]
name = DHCP Pool Usage
tag = dhcp-pool-usage
item_key = usage
threshold = 80
[snat] name = SNAT Session Pool tag = snat-pool-usage
item_key_search = .usage threshold = 80
[core] name = Core Network tag = role
tag_value = main
tag (required): host tag identifying the category. With tag_value, the tag must equal it (Equal); without, any host carrying the tag matches (Exists).item_key / item_key_search: when either is set, the section reports current item values sorted high-to-low. item_key matches the key exactly; use item_key_search for keys that embed an id (e.g. .usage catches pool.node0.usage). When neither is set, it reports active problems for the tag.threshold: optional; values at or above it are flagged.See categories.ini.example. When the variable is unset or the file is missing, daily_brief reports active problems only.
Two tools change state. Everything else only reads.
| Tool | Zabbix API call |
|---|---|
acknowledge_problem | event.acknowledge |
set_maintenance | maintenance.create |
acknowledge_problem needs acknowledge permission on the API user; set_maintenance needs maintenance-write permission. Leave either off and the server stays read-only for that one tool: the call fails against the Zabbix API and every other tool keeps working, so an API user can be handed to an AI assistant for investigation without granting it any ability to change Zabbix configuration. Grant the permission only when acknowledging alerts or opening maintenance windows through the assistant is part of the job.
To keep the write tools away from the model altogether, set ZABBIX_READ_ONLY=true: the two tools are not registered, so a client never sees them, and they refuse to run if called anyway. This lets one Zabbix user serve both a read-only and a write-enabled MCP client. Every tool also carries MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint), so a client can tell read and write tools apart.
This repository doubles as a single-plugin marketplace, so Claude Code can install the server for you:
/plugin marketplace add shigechika/zapi-mcp
/plugin install zapi-mcp@zapi-mcp
The plugin launches uvx zapi-mcp and reads the same environment variables described in Configuration; export them before starting Claude Code. ZABBIX_CATEGORIES_INI may stay unset.
uvx must be on the PATH of the process that runs Claude Code — a login shell usually has it, but a GUI-launched app may not; install uv system-wide if the plugin fails to start.
Add to .mcp.json:
{
"mcpServers": { "zapi-mcp": { "type": "stdio", "command": "zapi-mcp", "env": { "ZABBIX_URL": "https://zabbix.example.com", "ZABBIX_USER": "api-user", "ZABBIX_PASSWORD": "", "ZABBIX_CATEGORIES_INI": "/path/to/categories.ini" } } } }
Add to claude_desktop_config.json:
{
"mcpServers": { "zapi-mcp": { "command": "zapi-mcp", "env": { "ZABBIX_URL": "https://zabbix.example.com", "ZABBIX_USER": "api-user", "ZABBIX_PASSWORD": "" } } } }
codex mcp add zapi-mcp \
--env ZABBIX_URL=https://zabbix.example.com \ --env ZABBIX_USER=api-user \ --env ZABBIX_PASSWORD=your-password \ --env ZABBIX_CATEGORIES_INI=/path/to/categories.ini \ -- zapi-mcp
Any other MCP client that launches stdio servers works the same way: give it zapi-mcp as the command and set the ZABBIX_* variables in its environment.
export ZABBIX_URL=https://zabbix.example.com
export ZABBIX_USER=api-user export ZABBIX_PASSWORD=your-password
zapi-mcp
zapi-mcp --version # Print version and exit
zapi-mcp --check # Verify environment variables and authentication, then exit zapi-mcp --brief # Print the daily_brief to stdout and exit (handy for cron) zapi-mcp # Start MCP server (STDIO, default)
--check exit codes: 0 success, 1 config error, 2 auth/connection error.
--brief exit codes: 0 success, 1 a section failed (auth, the active-problems fetch, or category loading — see the embedded Error: line in the output).
git clone https://github.com/shigechika/zapi-mcp.git
cd zapi-mcp
uv sync --dev uv run pytest -v uv run ruff check .
python3 -m venv .venv .venv/bin/pip install -e . && .venv/bin/pip install pytest pytest-cov respx ruff .venv/bin/pytest -v .venv/bin/ruff check .
pytest checks logic against fixtures; it cannot tell you that a tool has stopped returning real data. scripts/smoke_test.py runs every registered tool against the configured Zabbix and fails on empty, malformed or error answers:
# needs the same ZABBIX_* environment variables as the server
uv run python scripts/smoke_test.py uv run python scripts/smoke_test.py --only get_problems --traceback
acknowledge_problem and set_maintenance are skipped by name — an acknowledgement is visible to every operator and cannot be quietly undone, and set_maintenance opens a real maintenance window that suppresses alerts — and a test enforces that. The report prints tool names and statuses only, never payloads; server-authored error text is redacted too, since Zabbix quotes the host it was asked about. --traceback still shows the full text on the operator's own terminal.scripts/smoke_probes.py. Two tests enforce that: one refuses those parameters as literals, the other bans anything address-shaped (mail address, URL, hostname, IPv4, IPv6) anywhere in the file.tests/test_smoke_probes.py), so adding aตัดมาแค่ช่วงต้น อ่านต่อใน repo