Open Source · MIT Not affiliated with Cisco

Build Packet Tracer labs with AI.

Describe a network in plain English, and the MCP server creates it for you — devices, cables, IPs, routing, configs, and all.

packet-tracer · mcp
> "Build a 3-router OSPF lab with DHCP and 2 PCs per LAN"

✓ Plan created — 3 routers, 3 switches, 6 PCs
✓ IP addressing: 192.168.1.0/24, .2.0/24, .3.0/24
✓ WAN links: 10.0.0.0/30, 10.0.0.4/30
✓ DHCP pools configured on all routers
✓ OSPF area 0 — all interfaces advertised
✓ Deployed to Packet Tracer
36
MCP tools
74
Device models
151
Modules
15
Cable types
9
Templates

Three steps. That's it.

01

Describe what you need

Tell the AI what kind of network you want, in plain English. No need to know the exact commands.

02

The server builds a plan

Devices, cables, IPs, DHCP, routing — everything is planned and validated automatically.

03

Deploy to Packet Tracer

Your topology appears in Packet Tracer in real-time. Configs applied, ready to test.

Just tell the AI what you need.

These are real prompts you can use. The server handles the rest.

"Build me a 2-router OSPF lab with DHCP"

→ 2 routers, 2 switches, 4 PCs, DHCP pools, OSPF area 0

"I need a simple LAN with 1 router and 3 PCs"

→ 1 router, 1 switch, 3 PCs, static IP addresses

"Create a branch office topology with 4 routers and WAN"

→ 4 routers, 4 switches, 8 PCs, WAN cloud, EIGRP routing

"3-router triangle with redundant links and OSPF"

→ 3 routers in mesh, 3 switches, 6 PCs, full redundancy

74 device models ready to use.

Every device is verified against Packet Tracer 8.2+ with real port definitions.

Routers

2911 2901 1941 1841 2811 ISR4321 ISR4331 2620XM 2621XM 829 CGR1240 819HGW

Switches L2

2960-24TT 2950-24 2950T-24 IE-2000

Switches L3

3560-24PS 3650-24PS

End Devices

PC Laptop Server Tablet Smartphone Printer TV VoIP Phone

Security

ASA 5505 ASA 5506-X

Wireless

AccessPoint-PT WLC-PT WLC-2504 LAP-PT 3702i Linksys WRT300N

WAN & Cloud

Cloud-PT DSL Modem Cable Modem

Other

Hub Bridge Repeater Sniffer MCU SBC

Auto-selected cables.

The server picks the right cable for every connection. You don't need to think about it.

straight Router ↔ Switch, Switch ↔ PC
cross Router ↔ Router, Switch ↔ Switch
serial WAN serial connections
fiber High-speed uplinks
console Management access
wireless WiFi connections

Need serial ports? Add a module.

The server auto-installs modules when your topology needs ports that aren't built-in.

HWIC-2T 1941, 2901, 2911
2-port Serial WAN card
HWIC-4ESW 1941, 2901, 2911
4-port Ethernet Switch
NIM-2T ISR4321, ISR4331
2-port Serial for ISR 4000
HWIC-1GE-SFP 1941, 2901, 2911
1-port GigE SFP
NM-4A/S Legacy routers
4-port Async/Sync Serial
NM-ESW-161 Legacy routers
16-port Ethernet Switch module

Full L3 automation built in.

IP addressing, DHCP pools, and routing configs are generated automatically.

OSPF

Open Shortest Path First — area 0 with automatic network statements

EIGRP

Enhanced Interior Gateway — auto AS and network configuration

Static

Static routes generated for each router based on topology

RIP

Routing Information Protocol — simple distance-vector

9 built-in topology templates.

Start from a template or build a fully custom topology from scratch.

Template 01

Single LAN

1 router + 1 switch + PCs

Template 02

Multi LAN

N routers in chain, each with a LAN

Template 03

Multi LAN + WAN

Multiple LANs with WAN cloud connection

Template 04

Star (Hub & Spoke)

1 central router, N switches

Template 05

Hub and Spoke

1 hub router + N spoke routers with LANs

Template 06

Branch Office

HQ + branches connected by WAN

Template 07

Three Router Triangle

3 routers with redundant links

Template 08

Router on a Stick

Inter-VLAN routing setup

Template 09

Custom

Full manual control over every parameter

Install, connect, build.

git clone https://github.com/Mats2208/MCP-Packet-Tracer
cd MCP-Packet-Tracer
pip install -e .

# Connect your MCP client (Claude Code shown)
claude mcp add --scope user --transport stdio packet-tracer -- python -m packet_tracer_mcp --stdio

# → Then just ask your AI to build a topology

Works with any MCP client (Claude Code, VS Code / Copilot, …). Need Python 3.11+. Full setup in the installation docs ↗.

Like it? Give it a star.

Every star helps more people discover the project. And if you want to contribute, we'd love to have you.