
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@marcelo-ochoa/server-mikrotik
Advanced tools
A Read-Only MCP server implementation for interacting with MikroTik routers using the RouterOS API.
This server exposes MikroTik entities as MCP resources for direct inspection:
mikrotik://interface/{name}
mikrotik://interface/ether1mikrotik://bridge/{name}
mikrotik://bridge/bridge1mikrotik://bridge/{bridge_name}/{interface_name}
mikrotik://bridge/bridge1/ether2mikrotik://route/{id}
mikrotik://route/400AF317 (Note: internal IDs are used for routing entries)mk-connect: Connects to a router.
host: IP address of the router.user: Username.password: Password.secure: (Optional) Use SSL/TLS. Default is false.Example: mk-connect 192.168.88.1 admin mypassword
mk-report: Generates a comprehensive system report.
monitor-traffic once).mk-get: Returns a JSON array with the result of a MikroTik API /print command.
sentence: The API path (e.g., /ip/route, /interface, /log)./ and ends with /print.mk-awr: Generates an Automatic Workload Repository (AWR) style report for MikroTik.
The server provides several pre-defined prompts for common tasks:
The MikroTik server can use environment variables or the mk-connect tool for secure credential management:
MK_USER: MikroTik username (required if providing host at startup)MK_PASSWORD: MikroTik password (required if providing host at startup)You can optionally provide the host and security setting as command-line arguments:
host: (Optional) IP address of the router.secure: (Optional) Use SSL/TLS. Default is false.If these are provided, the server will attempt to connect automatically on startup using MK_USER and MK_PASSWORD.
cd src/mikrotik
npm install
npm run build
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"mikrotik": {
"command": "npx",
"args": [
"-y",
"@marcelo-ochoa/server-mikrotik",
"192.168.88.1"
],
"env": {
"MK_USER": "ai_agent",
"MK_PASSWORD": "ai_password"
}
}
}
}
Sample using Docker:
{
"mcpServers": {
"mikrotik": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MK_USER=admin",
"-e",
"MK_PASSWORD=password",
"mochoa/mcp-mikrotik",
"192.168.88.1",
"false"
]
}
}
Note: Arguments and environment variables are optional. You can connect later using mk-connect.
Using the information of mk-get:
See Demos for usage examples with Claude Desktop, Gemini CLI, and Antigravity Code Editor.
See MikroTik AWR in action for an example of an Automatic Workload Repository (AWR) style report generated by the mk-awr tool for a MikroTik router, highlighting performance metrics and security risks.
Building the container:
docker build -t mochoa/mcp-mikrotik -f src/mikrotik/Dockerfile .
Running the container:
docker run -i --rm -e MK_USER=admin -e MK_PASSWORD=mypassword mochoa/mcp-mikrotik 192.168.88.1
See Change Log for the history of changes.
As usual, the code of this extension is at GitHub, feel free to suggest changes and make contributions.
This project is licensed under the Apache License, Version 2.0 for new contributions, with existing code under MIT - see the LICENSE file for details.
FAQs
An MCP server for MikroTik RouterOS API.
The npm package @marcelo-ochoa/server-mikrotik receives a total of 38 weekly downloads. As such, @marcelo-ochoa/server-mikrotik popularity was classified as not popular.
We found that @marcelo-ochoa/server-mikrotik demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.