Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MikroTik RouterOS over the binary API, addressing rules by real .id not list position.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
MIKROTIK_HOST, MIKROTIK_USERNAME, MIKROTIK_PASSWORD, MIKROTIK_PORT, MIKROTIK_TLS, MIKROTIK_TLS_FINGERPRINT, MIKROTIK_TIMEOUTค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"mikrotik": {
"command": "uvx",
"args": [
"mikrotik-mcp"
],
"env": {
"MIKROTIK_HOST": "ใส่ค่าของคุณ",
"MIKROTIK_USERNAME": "ใส่ค่าของคุณ",
"MIKROTIK_PASSWORD": "ใส่ค่าของคุณ",
"MIKROTIK_PORT": "ใส่ค่าของคุณ",
"MIKROTIK_TLS": "ใส่ค่าของคุณ",
"MIKROTIK_TLS_FINGERPRINT": "ใส่ค่าของคุณ",
"MIKROTIK_TIMEOUT": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add mikrotik --env MIKROTIK_HOST='ใส่ค่าของคุณ' --env MIKROTIK_USERNAME='ใส่ค่าของคุณ' --env MIKROTIK_PASSWORD='ใส่ค่าของคุณ' --env MIKROTIK_PORT='ใส่ค่าของคุณ' --env MIKROTIK_TLS='ใส่ค่าของคุณ' --env MIKROTIK_TLS_FINGERPRINT='ใส่ค่าของคุณ' --env MIKROTIK_TIMEOUT='ใส่ค่าของคุณ' -- uvx mikrotik-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"mikrotik": {
"command": "uvx",
"args": [
"mikrotik-mcp"
],
"env": {
"MIKROTIK_HOST": "ใส่ค่าของคุณ",
"MIKROTIK_USERNAME": "ใส่ค่าของคุณ",
"MIKROTIK_PASSWORD": "ใส่ค่าของคุณ",
"MIKROTIK_PORT": "ใส่ค่าของคุณ",
"MIKROTIK_TLS": "ใส่ค่าของคุณ",
"MIKROTIK_TLS_FINGERPRINT": "ใส่ค่าของคุณ",
"MIKROTIK_TIMEOUT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"mikrotik": {
"type": "stdio",
"command": "uvx",
"args": [
"mikrotik-mcp"
],
"env": {
"MIKROTIK_HOST": "ใส่ค่าของคุณ",
"MIKROTIK_USERNAME": "ใส่ค่าของคุณ",
"MIKROTIK_PASSWORD": "ใส่ค่าของคุณ",
"MIKROTIK_PORT": "ใส่ค่าของคุณ",
"MIKROTIK_TLS": "ใส่ค่าของคุณ",
"MIKROTIK_TLS_FINGERPRINT": "ใส่ค่าของคุณ",
"MIKROTIK_TIMEOUT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
MIKROTIK_PORT envMIKROTIK_TLS envMIKROTIK_TLS_FINGERPRINT envMIKROTIK_TIMEOUT envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub StefanKnol ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: MIKROTIK_HOST, MIKROTIK_USERNAME, MIKROTIK_PASSWORD
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Thalovant MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว 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.
Connect MCP clients to Thalovant control-plane and hub runtime APIs over stdio or Streamable HTTP.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
mcp-name: io.github.StefanKnol/mikrotik-mcp
An MCP server for MikroTik RouterOS, over the binary API rather than by driving the CLI over SSH.
That distinction is the whole point. The CLI prints *positional* numbers, which are not a rule's identity. A server that lists rules by position and then writes by position either fails outright — where .id=3 matches nothing, so every write reports "not found" for rules that plainly exist — or, worse, succeeds against a different rule once the order has shifted. On a firewall that means deleting the wrong rule.
The binary API returns the real .id (*7, *1f) on every read. So:
id, and every write takes one back;position, which is display-only and refused for writes, with an error that explains why;remove_firewall_rule takes an optional confirm_comment and returns the rule it deleted.uvx mikrotik-mcp
Configure through the environment — ps would show a password passed as a flag:
| Variable | Default | Meaning |
|---|---|---|
MIKROTIK_HOST | — | Router address. Required. |
MIKROTIK_USERNAME | — | Required. |
MIKROTIK_PASSWORD | — | |
MIKROTIK_PORT | 8729 | 8729 for api-ssl, 8728 for plaintext. |
MIKROTIK_TLS | true | |
MIKROTIK_TLS_FINGERPRINT | — | SHA-256 of the router certificate, to pin it. |
MIKROTIK_TIMEOUT | 10 |
In an MCP client's config:
{
"mcpServers": { "mikrotik": { "command": "uvx", "args": ["mikrotik-mcp"], "env": { "MIKROTIK_HOST": "192.168.88.1", "MIKROTIK_USERNAME": "mcp-agent", "MIKROTIK_PASSWORD": "..." } } } }
/ip service enable api-ssl
/user group add name=mcp policy=api,read,write,test /user add name=mcp-agent group=mcp password=
The api policy is not optional, and its absence produces a login error identical to a wrong password — so if credentials look right and login still fails, check the group first.
Set MIKROTIK_TLS_FINGERPRINT if you can. MikroTik's API-SSL certificate is self-signed, so ordinary CA validation cannot succeed against a stock device; pinning is what makes the connection authenticated rather than merely encrypted.
34 of them, covering system info, interfaces, IP addressing, firewall filter (IPv4 and IPv6), firewall address lists, NAT, DHCP leases, DNS, routes and logs — plus ros_list, which reads any RouterOS path and so covers everything without a dedicated tool.
There is deliberately no generic write escape hatch.
Three things worth knowing before the first call:
id (*7), never a position.** Both appear in every list result. position is where a rule currently sits in evaluation order; it shifts whenever anything is added, removed or moved, and it is counted across the whole table rather than within the chain you filtered to. Passing one to a write is rejected rather than guessed at.family and default to ipv4, so a device can read as locked down while its IPv6 table is empty and therefore accepting everything. Listing IPv4 reports the IPv6 rule count for exactly this reason.list_address_list_entries for a count_only first: a populated block list can hold tens of thousands.mcphub puts MCP servers behind one sign-in and grants them out per account. One router is one backend, at its own /mcp/ , registered in a client as its own connector.
From the registry — the better default. *Add from registry*, search for mikrotik-mcp, and the hub builds the settings form from server.json and launches uvx mikrotik-mcp when you enable the backend. It runs in its own process and cannot read credentials the hub holds for anything else. Backends added this way start disabled: open it, look at the tool list, then enable.
As a plugin — install this package into the hub's own environment and mikrotik appears as a backend kind, with typed fields and a Test button that reports the router's identity and RouterOS version. Nicer to configure, but an in-process plugin can read every credential the hub holds. Use it when you build your own hub image.
Either route asks for the same things. As environment variables:
| Variable | Default | |
|---|---|---|
MIKROTIK_HOST | — | Router address. Required. |
MIKROTIK_USERNAME | — | Required. A dedicated user, not admin; its group needs the api policy. |
MIKROTIK_PASSWORD | — | Required. |
MIKROTIK_PORT | 8729 | 8729 for api-ssl, 8728 for plaintext. |
MIKROTIK_TLS | true | Turning it off sends the router password over the network in the clear. |
MIKROTIK_TLS_FINGERPRINT | — | SHA-256 of the router certificate. Pinning it is what makes the TLS connection authenticated rather than merely encrypted. |
MIKROTIK_TIMEOUT | 10 | Seconds. |
No data directory: everything this server reads and writes lives on the router, so there is no local state to keep. Leave Give this server a data directory unticked.
The hub reads readOnlyHint and destructiveHint from each tool and enforces the grant's level from those alone — a tool above the level is left out of tools/list and refused if called anyway.
| Level | Gets | |
|---|---|---|
viewer | 17 tools | Reads the whole configuration and changes nothing. |
user | +7 tools | Adds rules and entries, and disables or re-enables them. |
admin | +10 tools | Deletes, edits in place, and reorders. |
viewer — connectivity_check, get_dns_settings, get_firewall_rule, get_logs, get_nat_rule, list_address_list_entries, list_address_lists, list_dhcp_leases, list_dns_adlist, list_dns_static, list_firewall_rules, list_interfaces, list_ip_addresses, list_nat_rules, list_routes, ros_list, system_info.
user adds add_address_list_entry, add_dns_static, add_firewall_rule, add_nat_rule, make_lease_static, set_firewall_rule_enabled, set_nat_rule_enabled. Each of these writes, and none of them takes anything away: adding a rule is a write, not a destruction, and disabling one keeps the rule, its comment and its position so that re-enabling restores exactly what was there. Disabling is the reversible way to find out whether a rule is responsible for something, so it sits here rather than behind admin — the alternative would leave a user with no safe way to test at all.
admin adds the destructive ten:
| Tool | What is lost |
|---|---|
remove_firewall_rule | The rule. The returned copy is the only record. |
remove_nat_rule | The rule. |
remove_dns_static | The entry. |
remove_address_list_entry | The entry. A dynamic one returns when its rule next matches; a static one does not. |
update_firewall_rule | The previous values of whatever it sets or clears. |
update_nat_rule | The same. |
update_dns_static | The same. |
move_firewall_rule | The previous order, which is the entire semantics of a firewall. |
move_nat_rule | The same. |
set_interface_enabled | Nothing on disk — but disabling the interface the request came in through severs the only route back, and nothing here can undo that remotely. |
A test pins every one of these assignments by name, so a tool added later fails the suite until someone decides which level it belongs to.
server.json is the manifest for the official MCP registry, validated against the published schema. It declares the uvx mikrotik-mcp command and every MIKROTIK_* variable, marking which are required and which are secret — so a client that browses the registry can generate a correct settings form without knowing anything about this server.
Publishing has an order to it, because the registry verifies that whoever publishes an entry actually owns the package it points at.
1. The package must already be on PyPI. The registry fetches pypi.org/pypi/mikrotik-mcp/ /json and refuses an entry whose package does not exist. Tag a release and let CI publish it:
git tag v0.1.0 && git push --tags
That needs a PyPI Trusted Publisher first, and because this project does not exist on PyPI yet it has to be a pending publisher — the per-project Publishing tab only appears once a project exists, which is the chicken-and-egg this page solves:
pypi.org → Account settings → Publishing → *Add a new pending publisher*
| Field | Value |
| --- | --- |
| PyPI Project Name |
mikrotik-mcp|
| Owner |
StefanKnol|
| Repository name |
mikrotik-mcp|
| Workflow name |
ci.yml|
| Environment name |
pypi|
The environment name matters: the publish job declares environment: pypi, and PyPI rejects the upload if they disagree.
2. The README must carry the ownership token. The registry looks for mcp-name: io.github.StefanKnol/mikrotik-mcp in the PyPI description, which is this file — it is at the top, on its own line. That is what proves the person publishing the registry entry controls the PyPI package.
3. The registry entry publishes itself. The registry job in ci.yml runs after the PyPI upload on the same tag, authenticating with mcp-publisher login github-oidc. GitHub signs a short-lived OIDC token, the registry verifies it and grants the io.github.StefanKnol/* namespace from the repository owner. There is no secret to store and no device-flow login to sit through on each release.
It waits for PyPI to actually serve the new version first. The registry fetches pypi.org/pypi/mikrotik-mcp/ /json and refuses an entry whose package it cannot see, and that endpoint lags the upload by some seconds — long enough that publishing straight afterwards races it.
Re-running it is safe: a version already in the registry is the outcome the job exists to produce, so it reports that and passes rather than failing on the registry's duplicate refusal.
To publish by hand — recovering a failed run, or a version released before this job existed:
curl -sL https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz | tar xz mcp-publisher
./mcp-publisher login github && ./mcp-publisher publish
login github opens the device flow and proves you are StefanKnol, which authorises the same namespace the OIDC path gets without asking.
The version appears in four places — pyproject.toml, __version__, server.json, and again inside that file's packages entry. Rather than edit them by hand:
uv run python scripts/release.py 0.2.0 --tag
It sets all four, verifies them, commits and tags. The registry treats each version as its own row and checks PyPI has the package at exactly that version, so the nested packages[].version matters as much as the top-level one — and it is the one that gets missed, because the manifest still validates without it. A test enforces that they agree.
uv sync --extra dev
uv run pytest
MIT