MCP Packet Tracer is an open-source server that turns high-level lab descriptions into topology plans, PTBuilder scripts, IOS configs, and real-time deployment into Cisco Packet Tracer.
$ python -m src.packet_tracer_mcp
INFO Packet Tracer MCP v0.4.0
INFO Transport: streamable-http
INFO http://127.0.0.1:39000/mcp
> pt_plan_topology(
routers=3,
pcs_per_lan=2,
dhcp=True,
routing="ospf",
has_wan=True
)
✓ Plan created — 3 routers, 6 PCs
✓ 3 LANs + 2 WAN links
✓ DHCP pools configured
✓ OSPF area 0 on all routers Core Capabilities
Describe a network lab in plain language. The MCP server translates intent into a full topology plan with devices, links, and addressing.
Plans are validated against real Packet Tracer constraints. The auto-fixer corrects cables, upgrades models, and reassigns ports automatically.
Not just files — deploy directly into a running Packet Tracer session via the HTTP bridge. Watch your topology appear in real-time.
Generate PTBuilder scripts, IOS CLI configs, project files, and natural language explanations. Everything you need to reproduce or teach.
Who is it for?
Generate repeatable LAN, WAN, and multi-router labs faster than building every Packet Tracer file by hand.
Create demos with addressing, DHCP, static routing, or OSPF — with topology plans and CLI output for step-by-step classes.
A concrete MCP use case where natural language results in a visible network simulation, not just text output.
Use the tool catalog, plan JSON, and execution layer as a base for custom lab generators or agent workflows.
Ready to automate?
Clone the repo, start the MCP server, connect your AI agent, and generate your first topology in minutes.
git clone https://github.com/Mats2208/MCP-Packet-Tracer.git cd MCP-Packet-Tracer pip install -e . python -m src.packet_tracer_mcp