SuperAPI AI Directory

pktctl

pktctl is an MCP (Model Context Protocol)-based server that lets AI agents programmatically control Cisco Packet Tracer, building, configuring, and testing networks the way a person would. It communicates with the simulator through Packet Tracer's native PTMP protocol and provides 72 tools covering the logical and physical workspaces, simulation mode, end-device applications and activities, and direct access to the full IPC API. AI clients (such as Claude Code, Claude Desktop, and Cursor) can use it to place devices, connect cables, type IOS configuration at consoles, run pings from end hosts, and read the results. The project is distributed as a single static binary, supports Linux, macOS, and Windows, is licensed under MIT, is not affiliated with Cisco, and requires users to install Packet Tracer themselves.

Open website

About this tool

pktctl is an MCP server for giving AI agents a programmatic interface to control Cisco Packet Tracer, replacing mouse operations to complete network building, configuration, and testing. After the user describes the desired network, the agent can place devices in an open Packet Tracer window, connect cables, enter IOS configuration at each console, run pings from end hosts, and read the results.

Key capabilities: it provides 72 tools to MCP clients such as Claude Code, Claude Desktop, and Cursor, covering Packet Tracer's logical and physical workspaces, simulation mode, end-device applications and activities, and direct access to the full IPC API. It communicates through Packet Tracer's native PTMP protocol for registering external applications, so there is no need to keep an extension window open or poll a bridge inside Packet Tracer; a single registration is enough. Call round trips are well under a millisecond, and call_ipc validates every parameter against the official API before sending. Errors are returned as typed messages the agent can handle, rather than modal dialogs that freeze the application.

Usage: install as a single self-contained binary with no runtime, interpreter, or package manager required. Releases provide macOS 11+ (Apple Silicon and Intel), Linux glibc 2.39+ (Ubuntu 24.04, Debian 13; x86_64 and ARM64), and Windows archives; it can also be installed via cargo-binstall or from crates.io, and the development version is available with cargo install --git https://github.com/TantiE100/pktctl pktctl --locked. After installation, choose a reverse-domain app id and generate a random key, add pktctl to the MCP client configuration (such as claude_desktop_config.json or ~/.cursor/mcp.json, using the absolute path to the binary), then have the agent run setup_exapp to generate the registration file, add it in Packet Tracer under Extensions → IPC → Configure Apps and exit normally once to save, and finally have the agent check the status; a return of connected: true means the connection succeeded. Settings are read from environment variables.

Use cases: students practicing CCNA labs, instructors preparing and checking activities, and anyone who wants to automate or record network scenarios in Packet Tracer. In the example, the agent can complete and verify the setup of two sites interconnected via OSPF, with DHCP enabled on each LAN and a web server deployed at headquarters.

Limitations: the project builds on Linux, macOS, and Windows, but all live verification so far has run on macOS; registration paths for other systems are in the ExApp registration documentation. The binary is not notarized by Apple, so downloads via macOS browsers require clearing the quarantine flag. Users must install Packet Tracer themselves; the project does not include Packet Tracer code, files, or documentation, and is not affiliated with or endorsed by Cisco.