cisco-pt-mcp
v0.1.8MCP server that drives Cisco Packet Tracer through a bridge extension.
Let AI clients control a running Cisco Packet Tracer instance. Open source. Install uv if you don't have it, then register with your client: 1. Open Packet Tracer. 2. Go to Extensions → Scripting → Configure PT Script Modules… 3. Click Add and select cisco-pt-mcp.pts. 4. Restart Packet Tracer.
Summary extracted from the README.
cisco-pt-mcp
Let AI clients control a running Cisco Packet Tracer instance. Open source.

Install
Two components. Five minutes.
1. MCP Server
Install uv if you don't have it, then register with your client:
Claude Code
claude mcp add cisco-pt-mcp --scope user -- uvx cisco-pt-mcp
Droid (Factory)
droid mcp add cisco-pt-mcp "uvx cisco-pt-mcp"
Cursor (~/.cursor/mcp.json or .cursor/mcp.json per project)
{
"mcpServers": {
"cisco-pt-mcp": { "command": "uvx", "args": ["cisco-pt-mcp"] }
}
}
VS Code (.vscode/mcp.json)
{
"servers": {
"cisco-pt-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["cisco-pt-mcp"]
}
}
}
Codex CLI (~/.codex/config.toml)
[mcp_servers.cisco-pt-mcp]
command = "uvx"
args = ["cisco-pt-mcp"]
2. Packet Tracer Extension
- Open Packet Tracer.
- Go to Extensions → Scripting → Configure PT Script Modules…
- Click Add and select
cisco-pt-mcp.pts. - Restart Packet Tracer.
3. Run
Click Extensions → Packet Tracer MCP to open the bridge window, then start your MCP client. The status pill flips to connected within a second. Start prompting.
Configuration
The defaults work for most setups. These environment variables can be set in your MCP client's server config:
| Variable | Default | Meaning |
|---|---|---|
CISCO_PT_MCP_TOOL_TIMEOUT |
60 |
Seconds to wait for Packet Tracer to answer one tool call. Raise it for long IOS command bursts. |
CISCO_PT_MCP_BIND_WAIT |
10 |
Seconds to wait for an old instance to free the bridge port at startup. |
CISCO_PT_MCP_LOG_LEVEL |
INFO |
Log level for stderr output. Same as --log-level. |
CISCO_PT_MCP_WATCHDOG_INTERVAL |
0 |
Seconds between checks that the parent process is still alive. The server exits when it is orphaned. 0 turns the check off. |
CISCO_PT_MCP_PORT |
7531 |
Bridge port. The extension always connects to 7531, so only change this for tests. |
Tools
| Tool | Description |
|---|---|
addDevice |
Drop a router, switch, or PC onto the canvas |
addModule |
Install an interface module into a device slot |
addLink |
Connect two devices with a cable |
removeDevice |
Delete one or more devices |
removeLink |
Delete one or more cables |
renameDevice |
Rename an existing device |
moveDevice |
Reposition a device on the canvas |
setPower |
Power a device on or off |
configurePcIp |
Set IP, subnet, gateway, DNS, or enable DHCP on a PC |
configureIosDevice |
Run IOS CLI commands on a router or switch and return each command's output (config, show, ping, traceroute) |
getNetwork |
Snapshot of all devices, interfaces, and cables, including each interface's link light, port status, and line protocol |
getWorkspaceImage |
Screenshot of the logical workspace (PNG or JPG) so the agent can see the topology and link lights |
getDeviceInfo |
Detailed view of a single device |
setSimulationMode |
Switch between simulation and realtime mode |
getSimulationStatus |
Query simulation state and frame count |
stepSimulation |
Step the simulation forward, backward, or reset |
sendPdu |
Add an ICMP ping PDU between two devices |
getPduResults |
Read PDU outcomes after stepping the simulation |
getCommandLog |
Read the IOS command history logged by Packet Tracer |
runPcCommand |
Run a command in a PC's Command Prompt (ping, ipconfig, …) and return its output. Requires an extension build that includes startPcCommand/readPcOutput |
buildTopology |
Add devices, links, and PC IP configs in one call |
License
MIT