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 "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA bridge between AI assistants and MikroTik RouterOS devices, allowing natural language interaction to manage network configurations including VLANs, firewalls, DNS settings, and more.1MIT
- Alicense-qualityDmaintenanceEnables 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.100245MIT
- Alicense-qualityFmaintenanceEnables natural language management of MikroTik routers through Cursor IDE by translating requests into RouterOS commands via API or SSH.4MIT
Related MCP Connectors
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
The agent-native cloud: database, functions, AI, storage, computers. 55 tools, one API key.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Foninhoiuri/mcp-mikrotik-for-n8n'
If you have feedback or need assistance with the MCP directory API, please join our Discord server