Packet Tracer MCP
Controls a running Cisco Packet Tracer instance: places routers, switches, PCs and servers; connects real ports; configures PC/IP and Cisco IOS commands; runs pings; saves .pkt projects; and captures screenshots/evidence.
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.
Let your MCP client place routers, switches, PCs and servers in Cisco Packet
Tracer. It can cable the devices, configure IOS and IPv4, test connectivity
from a simulated PC and save the verified .pkt. When you need a report, it
can capture the live simulator and insert those screenshots into a Word template.
Live showcase

The PC in this run reached both the router and server with four replies and zero packet loss. Full-size topology · Ping capture · Test details

Recorded from the live Linux/Xvfb simulator while pt-evidence demo ran.
Related MCP server: Packet Tracer Visual MCP
Build your first LAN
Open a blank Packet Tracer project after setup and tell your MCP client:
Call
pt_build_practice_lanand save the result aspractice-lan.pkt. Report the actual ping results from the PC to the router and server.
The starter LAN uses 192.0.2.0/24 and saves after both pings pass. For a
custom layout, see the AI tool guide.
Quick start
You need Python 3.11 or newer and a running, signed-in copy of Cisco Packet Tracer. Live operation was tested on Linux/X11.
Download the MCP Control Center
.ptsmodule from the upstream releases. In Packet Tracer, open Extensions → Scripting → Configure PT Script Modules, add the module, select it and click Start if prompted. Keep Packet Tracer running.Install the MCP server from the release wheel in a virtual environment.
mkdir -p packet-tracer-mcp cd packet-tracer-mcp python3 -m venv .venv source .venv/bin/activate python -m pip install 'https://github.com/Adam-ZS/packet-tracer-mcp/releases/download/v0.2.0/packettracer_evidence_mcp-0.2.0-py3-none-any.whl' export PT_WORKSPACE="$PWD/workspace" pt-evidence doctor --liveTo develop from a clone, see the source setup.
Copy this into a client that supports the
mcpServersJSON format. Use the absolute path to the directory you created in step 2 for both entries. This gives the terminal and MCP client the same workspace.{ "mcpServers": { "packet-tracer": { "command": "/absolute/path/packet-tracer-mcp/.venv/bin/pt-evidence", "args": ["serve"], "env": { "PT_WORKSPACE": "/absolute/path/packet-tracer-mcp/workspace" } } } }Reconnect the client. Check that it can call
pt_statusand thatextension_aliveis true. Then try the starter LAN.
The server uses local stdio and the Control Center file mailbox. It needs no AI provider API key of its own. To override mailbox discovery or enable the optional Linux desktop controls, see configuration.
You can run the same demo from a terminal with a blank Packet Tracer canvas.
The command returns JSON, including both ping results and the saved path.
To continue working in Packet Tracer, open the .pkt at that path. For a
custom lab, start with the tool guide.
pt-evidence demo --output practice-lan.pktFor a Linux machine without a physical display, run Packet Tracer on Xvfb. The MCP server and terminal demo can connect to the mailbox with no display variables. See the headless setup.
Build a custom network
Task | Tools |
Inspect devices and exact interface names |
|
Place and label nodes |
|
Draw actual cables between ports |
|
Set PC or Server-PT IP, mask and gateway |
|
Configure IOS, run commands and check output |
|
Configure or toggle simulated RADIUS |
|
Open and save Packet Tracer files |
|
Export evidence and fill a report |
|
Supported models are 2911, ISR4331, 2960-24TT, PC-PT, and
Server-PT. For example, a PC on FastEthernet0 can connect to a switch's
FastEthernet0/2 with cable: "straight". Use the port names returned by
pt_devices for the chosen model. The AI tool guide
shows concrete cable, IP, IOS and verification calls.
Ask your agent for something specific, such as:
Build a 2911 router, a 2960 switch, two PCs and a Server-PT. Lay out the router above the switch and the three hosts below it. Use separate switch ports. Assign addresses in 192.0.2.0/24, ping the server from both PCs, and save the verified project as
two-clients.pkt.
Capture evidence
pt_capture returns the actual desktop image and saves the original PNG, an
optional exact crop and a JSON manifest. pt_verify_evidence checks the hashes
and crop pixels against that manifest. Review the visible screen before
capturing or sharing it.
For a report, put text placeholders such as {{NAME}} and standalone image
placeholders such as {{EVIDENCE:ping}} in a DOCX template. pt_fill_report
inserts text and verified crops into a new copy. See the
evidence and Word walkthrough.
Compatibility
Live Packet Tracer and screenshot capture were tested on Linux/X11 and Xvfb. Windows, macOS and Wayland live behavior still need verification.
The available IOS commands depend on the selected simulated device. See troubleshooting for setup dialogs, ports and prompts.
Run one controller per Packet Tracer session. The extension, client and server run with the local user's privileges. See security for details.
Contribute
Try the starter LAN and report your OS, Packet Tracer version and result in GitHub Discussions. Star the project if it helps with your labs. For code changes, start with CONTRIBUTING.md.
Maintained by Adam-ZS. Layout, evidence capture and report tooling use the separately installed Control Center from Mats2208/MCP-Packet-Tracer. See the MIT license and upstream notices.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for network documentation, generated by doc2mcp.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
AI network lab: build and validate real multi-vendor router and switch labs from a prompt.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables control of Cisco Packet Tracer 9.0 via natural language, allowing creation of network topologies, device configuration, and simulation launches through an MCP interface.205 npm17MIT
- AlicenseBqualityDmaintenanceEnables automation of Cisco Packet Tracer simulations by placing devices, connecting links, and generating IOS configurations via MCP, ideal for network coursework and demonstrations.231MIT
- AlicenseAqualityCmaintenanceEnables headless creation, parsing, and grading of Cisco Packet Tracer .pkt/.pka lab files, including CCNA activity scoring, through MCP tools without requiring Packet Tracer to run.26MIT
- AlicenseBqualityBmaintenanceEnables MCP clients to build and troubleshoot Cisco Packet Tracer networks by adding devices, cabling them, pushing IOS configurations, addressing interfaces, configuring routing, running pings, and reading/writing .pkt files without Packet Tracer open.4236 PyPIMIT