Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-sogl-mikrotik-rest-mcp": {
"command": "uvx",
"args": [
"mikrotik-rest-mcp-server"
],
"env": {
"MIKROTIK_BASE": "<VALUE>",
"MIKROTIK_USERNAME": "<VALUE>",
"MIKROTIK_PASSWORD": "<YOUR_VALUE>",
"MIKROTIK_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_MODE": "<VALUE>",
"MIKROTIK_REDACT": "<VALUE>",
"MIKROTIK_LOCAL_ROOT": "<VALUE>",
"MIKROTIK_YOLO_USERNAME": "<VALUE>",
"MIKROTIK_STRICT_CONFIRM": "<VALUE>",
"MIKROTIK_ENABLE_LOCAL_FILES": "<VALUE>",
"MIKROTIK_YOLO_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_ENABLE_CONTAINER_SHELL": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-sogl-mikrotik-rest-mcp": {
"command": "uvx",
"args": [
"mikrotik-rest-mcp-server"
],
"env": {
"MIKROTIK_BASE": "<VALUE>",
"MIKROTIK_USERNAME": "<VALUE>",
"MIKROTIK_PASSWORD": "<YOUR_VALUE>",
"MIKROTIK_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_MODE": "<VALUE>",
"MIKROTIK_REDACT": "<VALUE>",
"MIKROTIK_LOCAL_ROOT": "<VALUE>",
"MIKROTIK_YOLO_USERNAME": "<VALUE>",
"MIKROTIK_STRICT_CONFIRM": "<VALUE>",
"MIKROTIK_ENABLE_LOCAL_FILES": "<VALUE>",
"MIKROTIK_YOLO_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_ENABLE_CONTAINER_SHELL": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-sogl-mikrotik-rest-mcp": {
"command": "uvx",
"args": [
"mikrotik-rest-mcp-server"
],
"env": {
"MIKROTIK_BASE": "<VALUE>",
"MIKROTIK_USERNAME": "<VALUE>",
"MIKROTIK_PASSWORD": "<YOUR_VALUE>",
"MIKROTIK_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_MODE": "<VALUE>",
"MIKROTIK_REDACT": "<VALUE>",
"MIKROTIK_LOCAL_ROOT": "<VALUE>",
"MIKROTIK_YOLO_USERNAME": "<VALUE>",
"MIKROTIK_STRICT_CONFIRM": "<VALUE>",
"MIKROTIK_ENABLE_LOCAL_FILES": "<VALUE>",
"MIKROTIK_YOLO_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_ENABLE_CONTAINER_SHELL": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-sogl-mikrotik-rest-mcp": {
"command": "uvx",
"args": [
"mikrotik-rest-mcp-server"
],
"env": {
"MIKROTIK_BASE": "<VALUE>",
"MIKROTIK_USERNAME": "<VALUE>",
"MIKROTIK_PASSWORD": "<YOUR_VALUE>",
"MIKROTIK_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_MODE": "<VALUE>",
"MIKROTIK_REDACT": "<VALUE>",
"MIKROTIK_LOCAL_ROOT": "<VALUE>",
"MIKROTIK_YOLO_USERNAME": "<VALUE>",
"MIKROTIK_STRICT_CONFIRM": "<VALUE>",
"MIKROTIK_ENABLE_LOCAL_FILES": "<VALUE>",
"MIKROTIK_YOLO_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_ENABLE_CONTAINER_SHELL": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-sogl-mikrotik-rest-mcp": {
"command": "uvx",
"args": [
"mikrotik-rest-mcp-server"
],
"env": {
"MIKROTIK_BASE": "<VALUE>",
"MIKROTIK_USERNAME": "<VALUE>",
"MIKROTIK_PASSWORD": "<YOUR_VALUE>",
"MIKROTIK_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_MODE": "<VALUE>",
"MIKROTIK_REDACT": "<VALUE>",
"MIKROTIK_LOCAL_ROOT": "<VALUE>",
"MIKROTIK_YOLO_USERNAME": "<VALUE>",
"MIKROTIK_STRICT_CONFIRM": "<VALUE>",
"MIKROTIK_ENABLE_LOCAL_FILES": "<VALUE>",
"MIKROTIK_YOLO_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_ENABLE_CONTAINER_SHELL": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-sogl-mikrotik-rest-mcp": {
"command": "uvx",
"args": [
"mikrotik-rest-mcp-server"
],
"env": {
"MIKROTIK_BASE": "<VALUE>",
"MIKROTIK_USERNAME": "<VALUE>",
"MIKROTIK_PASSWORD": "<YOUR_VALUE>",
"MIKROTIK_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_MODE": "<VALUE>",
"MIKROTIK_REDACT": "<VALUE>",
"MIKROTIK_LOCAL_ROOT": "<VALUE>",
"MIKROTIK_YOLO_USERNAME": "<VALUE>",
"MIKROTIK_STRICT_CONFIRM": "<VALUE>",
"MIKROTIK_ENABLE_LOCAL_FILES": "<VALUE>",
"MIKROTIK_YOLO_PASSWORD_FILE": "<VALUE>",
"MIKROTIK_ENABLE_CONTAINER_SHELL": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| MIKROTIK_BASE | Yes | Base URL of the RouterOS device's REST API, e.g. https://192.168.88.1 |
| MIKROTIK_USERNAME | Yes | RouterOS username for the MCP agent account. |
| MIKROTIK_PASSWORD secret | No | RouterOS password (alternative to MIKROTIK_PASSWORD_FILE). |
| MIKROTIK_PASSWORD_FILE | No | Path to a file containing the RouterOS password (recommended). |
| MIKROTIK_MODE | No | Operating mode. One of readonly, careful (default), or yolo. readonly does not register mutation/execution tools; careful returns requires_confirmation for disruptive operations; yolo removes all gates. |
| MIKROTIK_REDACT | No | Set to 0 to disable field-name based secret redaction in responses. |
| MIKROTIK_LOCAL_ROOT | No | Directory used as the sandbox root for host filesystem access when MIKROTIK_ENABLE_LOCAL_FILES is set. |
| MIKROTIK_YOLO_USERNAME | No | Full-privilege RouterOS account username used in yolo mode. |
| MIKROTIK_STRICT_CONFIRM | No | Set to 1 to gate every mutation behind confirmation. |
| MIKROTIK_ENABLE_LOCAL_FILES | No | Enable host filesystem access for file tools (off by default). |
| MIKROTIK_YOLO_PASSWORD_FILE | No | Path to a file containing the password for the full-privilege yolo account. |
| MIKROTIK_ENABLE_CONTAINER_SHELL | No | Enable the container_shell tool (off by default). |