MikroTik MCP for n8n
Provides tools to manage MikroTik routers over SSH, enabling configuration of firewall rules, DNS, DHCP, WireGuard VPNs, interfaces, QoS queues, backups, user accounts, system logs, and routing tables.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MikroTik MCP for n8nlist all firewall filter rules with comments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MikroTik MCP for n8n
Fork do mikrotik-mcp configurado para rodar como container Docker com transporte SSE, pronto para integração com n8n.
O que muda neste fork
Transporte SSE por padrão — o container já sobe em modo SSE (HTTP), sem precisar configurar
Docker Compose pronto — aponte o Portainer para este repo e deploy
Log configurável — variável
LOG_LEVELpara debug sem rebuildDocumentação em PT-BR — instruções completas em README-N8N.md
Related MCP server: RouterOS MCP Server
Arquitetura
┌─────────────────┐ HTTP/SSE ┌─────────────────────┐ SSH ┌──────────────┐
│ n8n │ ──────────────► │ mikrotik-mcp:8000 │ ──────────► │ MikroTik │
│ (AI Agent) │ porta 3000 │ (Docker Container) │ porta 22 │ Router │
└─────────────────┘ └─────────────────────┘ └──────────────┘Quick Start
1. Deploy via Portainer (recomendado)
Stacks → Add Stack
Repository:
https://github.com/Foninhoiuri/mcp-mikrotik-for-n8n.gitCompose path:
docker-compose.ymlAjuste as variáveis de ambiente (IP, usuário, senha do MikroTik)
Deploy the stack
2. Deploy manual
git clone https://github.com/Foninhoiuri/mcp-mikrotik-for-n8n.git
cd mcp-mikrotik-for-n8n
# Edite o docker-compose.yml com suas credenciais
docker compose up -d3. Conectar no n8n
No n8n, vá em Settings → MCP Servers
Transporte: SSE
URL:
http://IP_DO_SEU_SERVIDOR:3000/sse
As ferramentas do MikroTik aparecem automaticamente no AI Agent.
Variáveis de Ambiente
Variável | Padrão | Descrição |
|
| IP do roteador MikroTik |
|
| Usuário SSH |
| (vazio) | Senha SSH |
|
| Porta SSH |
|
| Transporte: |
| (vazio) | Use |
|
| Nível de log: |
|
| Nome da rede Docker do seu n8n para comunicação interna |
Ferramentas disponíveis
Todas as 173+ tools do projeto original, incluindo:
🔥 Firewall — regras de filter e NAT
🌐 DNS — registros estáticos e configurações
📡 DHCP — leases e configuração de servidor
🔒 WireGuard — peers e interfaces VPN
🖧 Interfaces — VLANs, bridges, ethernet
📊 Queues — controle de banda
🗂️ Backup — export e backup do sistema
👥 Usuários — gerenciamento de contas
📋 Logs — consulta de logs do sistema
🛣️ Rotas — tabela de roteamento
Documentação completa
📚 Veja README-N8N.md para instruções detalhadas incluindo:
Deploy via Portainer
Configuração multi-device (vários MikroTiks)
Troubleshooting
Créditos
Baseado no projeto mikrotik-mcp por Jeff Nasseri.
Licença
MIT License — veja LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
- emisarOAuthdev.emisar
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Gives AI agents a public IPv6 identity, hostname, port forwarding, web fetch, team mesh. Free tier.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA bridge between AI assistants and MikroTik RouterOS devices, allowing natural language interaction to manage network configurations including VLANs, firewalls, DNS settings, and more.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with MikroTik RouterOS devices through API and SSH connections, supporting network monitoring, configuration management, and diagnostics across multiple routers with automatic connection fallback.3MIT
- AlicenseCqualityAmaintenanceProvides a bridge between AI assistants and MikroTik RouterOS devices, enabling natural language management of VLANs, firewall rules, DNS settings, and more.174269MIT
- AlicenseNot gradedqualityFmaintenanceEnables natural language management of MikroTik routers through Cursor IDE by translating requests into RouterOS commands via API or SSH.4MIT