MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.
registry version 0.26.2.0
Python
uvx mcp-server-mikrotikPython
uvx mcp-server-mikrotik@0.26.2.0
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}{
"mcpServers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik@0.26.2.0"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env MIKROTIK_PASSWORD=<YOUR_MIKROTIK_PASSWORD> mikrotik-mcp-wiresage -- uvx mcp-server-mikrotik
claude mcp add --env MIKROTIK_PASSWORD=<YOUR_MIKROTIK_PASSWORD> mikrotik-mcp-wiresage -- uvx mcp-server-mikrotik@0.26.2.0
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}{
"mcpServers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik@0.26.2.0"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}{
"servers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik@0.26.2.0"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}{
"mcpServers": {
"mikrotik-mcp-wiresage": {
"command": "uvx",
"args": [
"mcp-server-mikrotik@0.26.2.0"
],
"env": {
"MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
MIKROTIK_HOST — IP address or hostname of the MikroTik router (single-device mode; default: 127.0.0.1). Not needed when an inventory is configured.MIKROTIK_USERNAME — SSH username for the MikroTik router (single-device mode; default: admin)MIKROTIK_PASSWORD secret — SSH password for the MikroTik router (single-device mode)MIKROTIK_PORT — SSH port of the MikroTik router (single-device mode; default: 22)MIKROTIK_KEY_FILENAME — Path to SSH private key file for key-based authentication (single-device mode)MIKROTIK_READ_ONLY — When true, expose only tools that do not modify RouterOS or its file store. Use a read-only RouterOS account as defence in depth.MIKROTIK_SENSITIVE_HIDING — When true, redact recognized credentials and private key material from tool results, MCP notifications, and logs, and omit tools that return opaque sensitive payloads.MIKROTIK_INVENTORY_FILE — Path to a YAML file listing multiple MikroTik devices (title, host, port, username, password, key_filename, tags, region). See docs/reference/inventory.Distributed as Python, listed under Developer Tools. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/wiresage/mikrotik-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/mikrotik-mcp-wiresage/)
HTML
<a href="https://mcpnav.net/server/mikrotik-mcp-wiresage/"><img src="https://mcpnav.net/badge/mikrotik-mcp-wiresage.svg" alt="Listed on MCPNav" height="20"></a>