Create the connector
Sign in to the YasnaMCP panel with your organisation’s account and open Connectors. Create a new connector and name it whatever you like — the name is free and is what appears in your connector list.
راهنمای کامل اتصال روتر MikroTik به YasnaMCP؛ بدون روشنکردن API و بدون بازکردن پورت. دریافت کلید اتصال، اجرای یک فرمان دو خطی، و کارهایی که هوش مصنوعی میتواند روی روتر انجام دهد.
Your MikroTik router is the centre of most networks, yet almost every question about it still means opening a terminal. With the YasnaMCP MikroTik connector, the router itself connects securely to the assistant: ask “is the firewall configured correctly?”, “which clients are on Wi-Fi?” or “block this address for an hour” in plain language.
The architectural point matters: nothing is enabled on the router. No api, no www-ssl, no listening port. The router dials out to YasnaMCP, exactly as it already does for WireGuard — so no new inbound door is opened into your network.
The router joins your own organisation, so it starts with a connector you create in the YasnaMCP panel. Three steps, under a minute:
Sign in to the YasnaMCP panel with your organisation’s account and open Connectors. Create a new connector and name it whatever you like — the name is free and is what appears in your connector list.
The panel shows a token starting with ymc_ct_. Copy it: it authorises this router to join your organisation, and handing it out is like handing out a building key.
The token is checked against YasnaMCP immediately. A valid one returns a ready-to-paste install command and confirms your organisation; a wrong or revoked one is reported here, not after installing on the router.
نام سایت یا شعبه را وارد کنید؛ یک کلید یکتا برای همین روتر ساخته میشود و فرمان نصب، آمادهٔ کپی تحویل داده میشود.
New Terminal را باز کنید.YasnaMCP connector installed را میبینید.
این کلید به روتر شما تعلق دارد؛ در اختیار دیگران نگذارید. برای ابطال، تیم YasnaMCP میتواند توکن را باطل کند و روتر با فرمان بعدی از دسترس خارج میشود.
In WebFig press New Terminal, or open New Terminal in WinBox. A full administrator account is required: the installer creates a script, a scheduler and a downloaded file.
The first line stores three values in the router’s own environment; the second fetches the installer from the site and runs it. Paste both lines at once:
:global YasnaEdge "https://humanfree.ir/mt"; :global YasnaDevice "mt-xxxxxxxxxx"; :global YasnaToken "ysm_...";
/tool fetch url=("https://humanfree.ir/mt/install/yasna-mt-install.rsc") dst-path="yasna-mt-install.rsc" check-certificate=yes; :delay 1s; /import file-name="yasna-mt-install.rsc"
The values above are a sample; copy the real ones from the Step 1 card. The installer finishes by reporting the router id, the access level and the operations it may run.
Three objects and nothing else: the script yasna-mt-agent, a scheduler of the same name that runs one cycle every few seconds, and a downloaded install file. The script runs with read,write,policy,test,ftp,sensitive so that reads, command execution and backups are possible.
/system ntp client set enabled=yes servers=pool.ntp.orgIt reports RouterOS version, clock, the service URL, scheduler state, connectivity and the connector’s most recent log lines:
/system script run yasna-mt-selftest
The router appears in the control panel as its own connector, with its name, board model and RouterOS version. “Online” next to the name means the whole path works. Changing configuration needs two permissions at once: the grant in the panel, and write access on the router itself.
mikrotik.cli) — full coverage, including menus added after this connector shippedyasnamcp)The two-line command is all you normally need. If you want to keep the files, or install on a network without internet access, the current build is here:
No. This connector never uses /ip service api or REST. The router is only an outbound client.
Nothing breaks. The router keeps trying every few seconds and resumes by itself. Meanwhile an assistant call answers “the router is offline” instead of an obscure failure.
Two layers: the grant in the YasnaMCP panel, and the operation allow-list on the router. A router enrolled here is read-only; opening configuration changes is a deliberate act by the YasnaMCP team or the router’s administrator.
Run yasna-mt-uninstall to delete the scheduler, scripts and install files, then revoke the key. Leaving the key unrevoked does not harm the router, but it is a leaked credential.
Any device running RouterOS 7 — hAP and hEX through CCR and CHR, on any architecture (arm64, arm32, mipsbe, x86).