Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Mats2208/MCP-Packet-Tracer/llms.txt

Use this file to discover all available pages before exploring further.

MCP Packet Tracer supports two transport modes: stdio, where the AI client spawns the server as a child process on demand (recommended for all desktop clients), and streamable-HTTP, where you start the server yourself and multiple clients or editor windows share the same instance via http://127.0.0.1:39000/mcp. Choose stdio for the simplest zero-configuration experience; choose streamable-HTTP when you need persistent shared state across multiple windows or remote scenarios.
All examples below assume you have already installed the package by running:
git clone https://github.com/Mats2208/MCP-Packet-Tracer && cd MCP-Packet-Tracer && pip install -e .
After pip install -e ., the packet_tracer_mcp module is importable from any directory, so python -m packet_tracer_mcp --stdio works without cd-ing into the repo first.

Choose Your Client

Claude Code accepts a single CLI command that registers the server globally in ~/.claude.json, making it available from every directory you launch claude in.
claude mcp add --scope user --transport stdio packet-tracer -- python -m packet_tracer_mcp --stdio
  • --scope user writes to your global profile — no per-project setup needed.
  • The -- separator passes everything after it verbatim to the spawned process.
Verify the connection:
claude mcp list
# packet-tracer: python -m packet_tracer_mcp --stdio - ✓ Connected
Remove later if needed:
claude mcp remove packet-tracer --scope user

After Connecting

Once your client shows the server as connected, you can immediately ask your LLM to build a network:
"Create a network with 2 routers, 2 switches, 4 PCs, DHCP and static routing"
The server handles the full pipeline automatically: planning → validation → generation → deploy. For live deployment into a running Packet Tracer instance, see Live Deploy Setup.

Build docs developers (and LLMs) love