Packet Tracer MCP
Provides programmatic control over Cisco Packet Tracer, enabling AI agents to plan, validate, generate, and deploy network topologies in real time. Supports routers, switches, VLANs, inter-VLAN routing, OSPF/EIGRP/RIP/static routing, DHCP, IPv6, wireless, ACL/NAT, device hardening, live connectivity verification, and saving/opening .pkt projects.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Tell your AI "create a network with 3 routers, OSPF and DHCP" — it plans, validates, generates, and deploys the topology directly into Cisco Packet Tracer in real time.
🌐 Website: https://www.mcpnetwork.top • 📚 Documentation: https://mats2208.github.io/MCP-Packet-Tracer/
What it does
Related MCP server: Packet Tracer MCP Server
Configuraciones de laboratorio incluidas
Esta copia incluye proyectos de Cisco Packet Tracer listos para abrir en la carpeta projects/:
topologia_RIP_5_routers.pkt: anillo de cinco routers con RIP v2, cinco LAN y dos PCs por LAN.topologia_excel_tipoA_tipoB.pkt: topología basada en el ejercicio de subneteo.
Consulta INSTALACION.md para instalar el MCP y CREDITOS.md para conocer la procedencia del código y las referencias utilizadas.
A Model Context Protocol (MCP) server para usar desde ChatGPT/Codex u otro cliente de chat compatible con MCP, con control programático de Cisco Packet Tracer.
Feature | Details | |
Planning | Natural language → topology | A single prompt becomes a complete |
IP / DHCP | Auto /24 LANs + /30 links, DHCP pools | Sequential, gateway at |
Routing | Static · OSPF · EIGRP · RIP | Full IOS generation |
Switching | VLANs, trunks, inter-VLAN routing (router-on-a-stick), STP, port-security |
|
Security | Device hardening (SSH, local users, enable-secret, banner), ACL/NAT | On live devices via the bridge |
IPv6 | Dual-stack addressing | Routers via CLI, hosts via SLAAC |
Wireless | WiFi laptops + auto-associated Access Points | NIC swap → |
Validation | Typed errors + auto-fixer | Wrong cables, missing ports, model upgrades |
Verification | Plan-vs-live diff, health check, real ping ( | Drift, down links, duplicate IPs — and actual reachability |
Deploy | Real-time bridge to PT (auto-reconciles) | No copy-paste — commands stream directly |
Two channels | HTTP when the extension window is open, file-bridge when it's closed | PT keeps executing with the window minimized/closed |
Projects | Save / open the real | Persist the running topology, not just the plan JSON |
Export | Plans, JS scripts, CLI configs | Reusable project files on disk |
👉 Full tool reference, device catalog, networking guides and architecture live in the documentation site.
Installation
1. Install the server
git clone https://github.com/Arminfx7/mcp-packet-tracer-configurado
cd mcp-packet-tracer-configurado
python -m venv .venv
# Windows PowerShell: .\\.venv\\Scripts\\Activate.ps1
# Linux/macOS: source .venv/bin/activate
pip install -e .2. Conecta tu cliente de chat
En ChatGPT/Codex o en otro cliente de chat compatible con MCP, registra el servidor local con esta configuración:
{
"mcpServers": {
"packet-tracer": {
"command": "C:/ruta/al/repositorio/.venv/Scripts/python.exe",
"args": ["-m", "packet_tracer_mcp", "--stdio"],
"cwd": "C:/ruta/al/repositorio"
}
}
}En Linux/macOS usa .venv/bin/python. La ruta debe apuntar a la carpeta donde clonaste este repositorio.
3. Install the live-deploy extension — only if you want real-time deploy into a running Packet Tracer
Download V5.pts from Releases, then in Packet Tracer go to Extensions → Scripting → Configure PT Script Modules → Add… and select it. Full walkthrough in Live deploy below.
v0.6.0+ requires V5. The bridge now authenticates with a per-machine token that the V5 extension reads automatically; builds before V5 can't authenticate.
4. Usa el chat para solicitar la topología
Ejemplo de prompt:
Crea una topología RIP v2 con cinco routers en anillo, cinco switches y dos PCs por LAN. Usa las IP indicadas en el Excel, configura las interfaces, agrega etiquetas de IP y verifica con ping.
Consulta INSTALACION.md para la configuración completa. Requiere Python 3.11+.
Quick start
Just talk to your AI:
"Build a network with 2 routers, 2 switches, 4 PCs, DHCP and static routing."
The LLM calls pt_full_build, which plans → validates → generates → deploys.
See the Quick Start guide.
Live deploy
Stream topologies into a running Packet Tracer in real time. Install this repo's
own MCP Control Center extension once — the .pts from
Releases — via
Extensions → Scripting → Configure PT Script Modules → Add…, then open
Extensions → MCP BUILDER. It auto-connects to the bridge — no snippet to paste.
📖 Full steps → Live Deploy Setup.
Credits & Acknowledgements
Live deploy runs through our own Packet Tracer extension — the MCP Control
Center (the .pts in Releases).
Its Script-Engine helper layer was inspired by
PTBuilder by
Kim Knight (@kimmknight), who pioneered driving
Packet Tracer's Script Engine from JavaScript — thanks for the groundwork. 🙏
PTBuilder and Packet Tracer MCP are separate, independent projects. You install our extension, not PTBuilder. Full Credits & Attribution.
Security
The live-deploy bridge requires a per-machine token as of v0.6.0. Earlier versions had an unauthenticated bridge — any web page open while Packet Tracer was running could execute code inside it. Upgrade.
Found a vulnerability? Report it privately via
GitHub Security Advisories,
not a public issue. SECURITY.md also documents the threat model —
worth reading before reporting, since some behaviour (like pt_send_raw
executing arbitrary JavaScript) is deliberate.
Contributing
See CONTRIBUTING.md. Tests run offline with
python -m pytest; no Packet Tracer needed.
License
Released under the MIT License — © 2026 Mateo (@Mats2208).
Built with MCP · Powered by Pydantic · Deploys to Cisco Packet Tracer · Script-engine logic inspired by PTBuilder
If this project is useful to you, star it ⭐ and share it with the community.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
AI network lab: build and validate real multi-vendor router and switch labs from a prompt.
IP intelligence, network diagnostics, and AI service availability tools for AI agents.
AI helper for choosing and speccing network & security products from Cisco, Arista, Juniper and more
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Cisco Packet Tracer in real time, allowing natural language-driven creation and configuration of network topologies.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI models to generate, validate, and deploy network topologies directly into Cisco Packet Tracer from natural-language prompts.-
- AlicenseNot gradedqualityBmaintenanceEnables LLMs to turn natural-language prompts into validated, deployed Cisco network topologies, including routing, switching, DHCP, VLANs, security auditing, and live device inspection.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to build and configure Cisco Packet Tracer topologies, run device and connectivity commands, and inspect simulation-mode packet explanations through natural language.451BSD 2-Clause "Simplified"