Installation¶
Requirements¶
| Requirement | Version | Notes |
|---|---|---|
| Python | 3.11+ | |
mcp[cli] |
≥ 1.13, < 2 | Installed automatically |
pydantic |
≥ 2.11, < 3 | Installed automatically |
| Cisco Packet Tracer | 8.2+ (tested on 9.0) | Only for live deploy |
| MCP Control Center extension | latest | This project's own PT extension (.pts in Releases), only for live deploy — see Live Deploy Setup |
pydantic ≥ 2.11 is required
Modern mcp builds tool output schemas from return annotations and needs
pydantic ≥ 2.11. An older pydantic makes the server crash on startup. The
pinned dependencies handle this for you; just don't force an older pydantic.
Install the server¶
After pip install -e ., the packet_tracer_mcp module is importable from any
directory, so python -m packet_tracer_mcp --stdio works from anywhere — no need
to cd into the repo or keep a server running.
Connect your MCP client¶
Linux · macOS · Git Bash · Windows cmd.exe:
Windows PowerShell — quote the -- separator:
claude mcp add --scope user --transport stdio packet-tracer "--" python -m packet_tracer_mcp --stdio
PowerShell eats a bare --
In Windows PowerShell the bare -- separator is consumed before it reaches the
claude CLI, so Claude treats the following -m as one of its own options and
aborts with error: unknown option '-m'. Quoting it ("--") passes it through
literally. Alternatively use the cmd.exe/Git Bash form above, or wrap the whole
command in cmd /c "…".
Verify (any shell):
Remove later with claude mcp remove packet-tracer --scope user.
Add to your MCP config (.vscode/mcp.json or user settings):
Live deploy extension (optional)¶
To stream topologies into a running Packet Tracer, also install this project's own MCP Control Center extension:
- Download
V5.ptsfrom Releases (latest). - In Packet Tracer: Extensions → Scripting → Configure PT Script Modules → Add…,
select
V5.pts, and confirm. - Open Extensions → MCP BUILDER — it auto-connects to the bridge.
Full walkthrough → Live Deploy Setup.
Claude Code Skill (recommended)¶
The repo ships a companion Agent Skill (skill/SKILL.md) that teaches the model the exact tool
catalog, the discover→plan→validate→deploy workflow, and the precise Script-Engine API — so the AI
drives the MCP from verified facts instead of guessing. Install it globally from the repo root:
Then run /reload-skills (or restart Claude Code) and confirm with /skills. Full details, including
what it covers and a project-local alternative → Claude Code Skill.
Transport modes¶
- stdio (recommended for desktop clients): the client spawns the server as a
child process. The internal HTTP bridge to Packet Tracer (
:54321) still starts automatically inside that process — live deploy works the same. - streamable-http (
http://127.0.0.1:39000/mcp): start the server yourself withpython -m packet_tracer_mcpand let multiple clients share one instance.
On Windows, python must be on PATH
If your client can't spawn the server, use the full interpreter path in the
command field (e.g. C:\\Users\\you\\AppData\\Local\\Programs\\Python\\Python312\\python.exe).
Next: run the Quick Start example.