Packet Tracer MCP — Node.js port
Provides tools for planning, validating, and auto-fixing Cisco Packet Tracer network topologies, generating Packet Tracer JavaScript/CLI, and deploying configurations into a running Cisco Packet Tracer instance via a local HTTP bridge or file-mailbox fallback.
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.
Packet Tracer MCP — Node.js port
An MCP server for Cisco Packet Tracer: topology planning, validation, auto-fix, JS/CLI generation, and live deployment into a running Packet Tracer over a local HTTP bridge (plus a file-mailbox fallback channel).
This is a faithful Node.js port of
Mats2208/MCP-Packet-Tracer
(Python, MIT). Tool names, parameter schemas, descriptions, bridge protocol,
token rules and generated Packet Tracer JavaScript match the Python original;
see PORTING_STATUS.md for the per-module ledger and the golden-test results.
Install
npm installRequires Node.js >= 20. No other dependencies besides
@modelcontextprotocol/sdk.
Related MCP server: pktctl
Run
npm start # stdio transport (for MCP clients)
node src/index.js # streamable HTTP on 127.0.0.1:39400 (like the Python default)
node src/index.js --stdioOn startup the server creates its working directory
(PT_MCP_WORKDIR, default ~/PacketTracerMCP), switches into it, and starts
the Packet Tracer bridge on port 54321.
Environment variables
Variable | Default | Meaning |
| (token file) | Shared secret between server and the PT extension. Must be >= 32 chars from |
|
| Port-only addition. Bind address for the bridge; the configured |
|
| Where exports, screenshots and saved plans go. |
|
| Device-panel presentation mode ( |
How the extension connects
Packet Tracer stays on your machine; only the MCP server is in this repo.
Install the MCP Control Center extension into Packet Tracer from this repo's Releases (the bundled
.ptsis the unchanged upstream build; its source is theextension/folder here:script-engine/+webview/). Windows users: seeSETUP-WINDOWS.mdfor the full walkthrough.Open Packet Tracer and the extension (Extensions > MCP BUILDER). With the window open it polls the bridge over HTTP; with the window closed, the Script Engine keeps working through the file mailbox next to the token file. There is nothing to pair: the extension reads the token file itself.
Check
pt_bridge_statusfrom your MCP client; thenpt_full_buildor the plan → validate → deploy flow.
Remote use (e.g. Tailscale)
Upstream binds the bridge to loopback only, on purpose. This port adds one config knob for the common "server on another machine" setup:
PT_MCP_BRIDGE_HOST=100.x.y.z node src/index.js --stdioWith the host set to the machine's Tailscale IP, the bridge listens only on
that interface and accepts that Host — nothing is exposed on other
interfaces, and every request still needs the bridge token. Point the
extension's bridge address at the same host and port.
Tests
npm test # bridge integration tests (node --test)
node scripts/mcp_handshake.mjs node src/index.js --stdio # MCP handshake / tools list
node scripts/mcp_tool_calls.mjs <calls.json> node src/index.js --stdio
node scripts/mcp_resources.mjs node src/index.js --stdio
# Golden tests (JS generators vs the Python original):
# /tmp/ptpy/bin/python scripts/golden_py.py > py.json
# node scripts/golden_node.mjs > node.json
# python3 scripts/golden_compare.py py.json node.jsonLayout
Mirrors the Python package: src/domain (models, rules, services),
src/application (dto, use_cases), src/infrastructure (catalog, execution,
generator, persistence, ui), src/adapters/mcp (server registries and
tools), src/shared.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
SysML v2 systems engineering: generate, verify, simulate and export system models from text.
Turn outlines and hierarchical notes into interactive mind maps through a hosted remote MCP server.
Related MCP Servers
- 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
- AlicenseBqualityAmaintenanceDrives a running Cisco Packet Tracer over its native IPC protocol (PTMP): build and cable topologies, configure IOS, test with ping and simulation mode, and reach the whole IPC API through 72 tools.723MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to plan, validate, generate, and deploy Cisco Packet Tracer network topologies from natural-language prompts, including routing, switching, DHCP, VLANs, security, IPv6, wireless, live deployment, verification, and .pkt project management.3MIT
- AlicenseAqualityBmaintenanceEnables controlling Cisco Packet Tracer through its native PTMP/IPC interface to create devices and links, configure IOS and PC addresses, run real ping tests, save .pkt files, and export topology as PNG.141MIT