Packet Tracer MCP logo

Packet Tracer MCP

Community
Mats2208

AI-powered Cisco Packet Tracer automation over MCP. Describe a network in natural language and it generates, validates and deploys full topologies (OSPF, EIGRP, RIP, DHCP).

PublisherMats2208
RepositoryMCP-Packet-Tracer
LanguagePython
Forks
18
Stars
202
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Packet Tracer MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    202 stars and 18 forks from the linked repository.

Tell your AI "create a network with 3 routers, OSPF and DHCP" — it plans, validates, generates, and deploys the topology directly into Cisco Packet Tracer in real time.

PyPI Python Pydantic v2 MCP Website Docs License

MCP Registry

🌐 Website: https://www.mcpnetwork.top  •  📚 Documentation: https://mats2208.github.io/MCP-Packet-Tracer/


Showcase


What it does

A Model Context Protocol (MCP) server that gives any LLM (Claude, GitHub Copilot, Codex, …) full programmatic control over Cisco Packet Tracer.

FeatureDetails
PlanningNatural language → topologyA single prompt becomes a complete TopologyPlan
IP / DHCPAuto /24 LANs + /30 links, DHCP poolsSequential, gateway at .1
RoutingStatic · OSPF · EIGRP · RIPFull IOS generation
SwitchingVLANs, trunks, inter-VLAN routing (router-on-a-stick), STP, port-security.1q subinterfaces + per-VLAN DHCP
SecurityDevice hardening (SSH, local users, enable-secret, banner), ACL/NATOn live devices via the bridge
IPv6Dual-stack addressingRouters via CLI, hosts via SLAAC
WirelessWiFi laptops + auto-associated Access PointsNIC swap → Wireless0, default-SSID assoc
ValidationTyped errors + auto-fixerWrong cables, missing ports, model upgrades
VerificationPlan-vs-live diff, health check, real ping (pt_verify_connectivity)Drift, down links, duplicate IPs — and actual reachability
Security auditpt_audit_security grades the live config: missing enable secret, reversible (type 7) credentials, service password-encryption off, config-register 0x2142Reads the device, not the plan. Credentials never leave it — only the algorithm label
Live inspectionpt_inspect_ports, pt_read_vlans, pt_device_powerPer-port protocol/duplex/NAT/ACL state, real VLAN database, power-cycle with read-back
Packet tracingpt_simulation_mode, pt_simulation_step, pt_read_packet_traceStep the simulation and read why each packet did what it did — PT's own per-OSI-layer decision log, not just pass/fail
Telemetrypt_apply_netflow configures a NetFlow exporter directly and reads it back; pt_read_qos verifies class-maps and policy-mapsCollector address, UDP port, version, source interface
Backuppt_backup_config, pt_project_metadata, pt_workspace_optionsReal startup-config + serial + config-register; project info; auto-cabling and real-network-access toggles
DeployReal-time bridge to PT (auto-reconciles)No copy-paste — commands stream directly
Two channelsHTTP when the extension window is open, file-bridge when it's closedPT keeps executing with the window minimized/closed
ProjectsSave / open the real .pkt (pt_save_project / pt_open_project)Persist the running topology, not just the plan JSON
ExportPlans, JS scripts, CLI configsReusable project files on disk

👉 Full tool reference, device catalog, networking guides and architecture live in the documentation site.

Installation

1. Install the server

bash
pip install packet-tracer-mcp

Or from source, if you want to modify it:

bash
git clone https://github.com/Mats2208/MCP-Packet-Tracer
cd MCP-Packet-Tracer
pip install -e .

2. Connect your MCP client (Claude Code shown)

Linux · macOS · Git Bash · Windows cmd.exe:

bash
claude mcp add --scope user --transport stdio packet-tracer -- python -m packet_tracer_mcp --stdio

Windows PowerShell — quote the -- separator, or PowerShell swallows it and Claude aborts with error: unknown option '-m':

powershell
claude mcp add --scope user --transport stdio packet-tracer "--" python -m packet_tracer_mcp --stdio

Verify with claude mcp list (look for packet-tracer … ✓ Connected).

3. Install the live-deploy extension — only if you want real-time deploy into a running Packet Tracer

Download V5.2.pts from Releases, then in Packet Tracer go to Extensions → Scripting → Configure PT Script Modules → Add… and select it. Full walkthrough in Live deploy below.

v0.6.0+ requires V5. The bridge now authenticates with a per-machine token that the V5 extension reads automatically; builds before V5 can't authenticate.

4. Install the Claude Code Skill — recommended; makes the AI use the MCP correctly instead of guessing

The repo ships a companion Agent Skill that teaches the model the exact tool catalog, the discover→plan→validate→deploy workflow, and the precise Script-Engine API (so it never invents method/model/port names). Install it globally from the repo root:

Linux · macOS · Git Bash:

bash
mkdir -p ~/.claude/skills/packet-tracer && cp skill/SKILL.md ~/.claude/skills/packet-tracer/SKILL.md

Windows PowerShell:

powershell
New-Item -ItemType Directory -Force "$HOME\.claude\skills\packet-tracer" | Out-Null; Copy-Item skill\SKILL.md "$HOME\.claude\skills\packet-tracer\SKILL.md"

Then run /reload-skills in Claude Code (or restart it) and confirm with /skills. Details → Skill docs.

Requires Python 3.11+ (deps mcp[cli]>=1.13, pydantic>=2.11 install automatically). Full setup for every client → Installation docs.

Quick start

Just talk to your AI:

"Build a network with 2 routers, 2 switches, 4 PCs, DHCP and static routing."

The LLM calls pt_full_build, which plans → validates → generates → deploys. See the Quick Start guide.

Live deploy

Stream topologies into a running Packet Tracer in real time. Install this repo's own MCP Control Center extension once — the .pts from Releases — via Extensions → Scripting → Configure PT Script Modules → Add…, then open Extensions → MCP BUILDER. It auto-connects to the bridge — no snippet to paste.

📖 Full steps → Live Deploy Setup.

Clients

Any MCP client drives this server — Claude Code, Cursor, Claude Desktop, VS Code with Copilot, Codex. Nothing in it is client-specific.

There is also one built on it: PacketSmith, a terminal app that runs these 61 tools with the network drawn beside the conversation — a fabric tree and a canvas plan derived from the pt_* results themselves, so a device the model says it created but did not never shows up.

This server aloneThis server + PacketSmith
Where you talkthe MCP client you already usea terminal app built for this one job
What you seea chat log, plus PT in another windowsplit screen: reply left, live topology right
Topologyread out of the tool outputfabric tree and canvas plan, drawn for you
Tools loadedevery MCP server you have configuredthis one only — measurably faster to start
Enginewhatever your client speaksClaude, or ~150 providers

You need this server either way — PacketSmith runs it underneath, and its setup installs it for you. If you already live in Claude Code, you are done here; the client is for when you want the topology in front of you instead of buried in a scrollback.

bash
npm i -g packetsmith    # beta · MIT

Credits & Acknowledgements

Live deploy runs through our own Packet Tracer extension — the MCP Control Center (the .pts in Releases). Its Script-Engine helper layer was inspired by PTBuilder by Kim Knight (@kimmknight), who pioneered driving Packet Tracer's Script Engine from JavaScript — thanks for the groundwork. 🙏

PTBuilder and Packet Tracer MCP are separate, independent projects. You install our extension, not PTBuilder. Full Credits & Attribution.

Security

Driving Packet Tracer from outside means running a local HTTP bridge whose whole job is to hand JavaScript to PT's Script Engine — code that executes with PT's own privileges, including disk access. That makes the bridge a genuine attack surface, not an implementation detail, and it is hardened accordingly.

The attack this design exists to stop. Binding to 127.0.0.1 is not a security control. A POST with Content-Type: text/plain is a CORS simple request: any web page open in your browser can send it to a loopback port without a preflight and without needing to read the response. An unauthenticated bridge therefore lets any website you visit — while Packet Tracer happens to be open — queue arbitrary code inside it. Injection never needed to read anything back, so same-origin policy alone never closed this.

What actually closes it is a secret the attacking page cannot guess:

ControlImplementation
Token on every endpointEvery route except /ping requires a shared token (?t= or X-PT-Token). Compared with hmac.compare_digest — constant time, no early-exit oracle.
/ping leaks nothingDeliberately unauthenticated so the server can tell who owns the port before trusting it — but it returns only a SHA-256 fingerprint of the token, never the token.
Foreign-bridge detectionBefore sending any payload, the server checks that /ping identity matches its own token fingerprint. If a stranger holds the port, it refuses to hand code to it instead of blindly trusting a 200.
DNS-rebinding defenseThe Host header is validated against 127.0.0.1 / localhost / [::1] + the real port. A rebound request arrives as Host: evil.com:<port> and is rejected.
Loopback bindThreadingHTTPServer(("127.0.0.1", port)) — never 0.0.0.0, so the bridge is not reachable from the LAN.
Token at restsecrets.token_urlsafe(32), created with O_EXCL (race-safe when two servers start at once) at mode 0o600, under %LOCALAPPDATA% on Windows — deliberately not roaming %APPDATA%, so a loopback secret never syncs to a file server.
Body size capOversized bodies are rejected with 413 and are not read into memory.
Silent failuresError responses carry no CORS headers, so a hostile page cannot even distinguish why it failed.
Tamper visibilityUnauthorized attempts are counted and surfaced by pt_bridge_status, so a stale or rogue client is diagnosable instead of silent.

Regression coverage lives in tests/test_bridge_security.py and tests/test_injection_regressions.py; the full suite runs offline with python -m pytest — no Packet Tracer required.

v0.6.0+ requires the V5 extension. Versions before v0.6.0 shipped an unauthenticated bridge and are vulnerable to exactly the attack above. Upgrade — there is no safe configuration of the old bridge.

Deliberate, documented behaviour: pt_send_raw executes arbitrary JavaScript inside Packet Tracer by design — it is the escape hatch for exploring the IPC API. It is reachable only by an MCP client you have already authorised, over the authenticated bridge. That is a capability, not a vulnerability.

Found a vulnerability? Report it privately via GitHub Security Advisories, not a public issue. SECURITY.md documents the full threat model.

What's new

v0.9.0 — the first release you can pip install, and the one that went hunting for silent false OKs: a topology split into islands that validation approved with error_count: 0, a bridge handing back the previous operation's result, a "CONECTIVIDAD OK" reported with 75% packet loss. None of them crashed; all of them lied. The server also reports its own version during the MCP handshake now — it used to announce the version of the mcp SDK. v0.8.0 let the agent show the network instead of only describing it: canvas screenshots plus notes and drawings, for topologies that document themselves. v0.7.0 made the server read a live topology, not just build one: security auditing, per-port inspection, packet tracing with Packet Tracer's own per-layer decision log, NetFlow, and config backup. Full list in the Changelog.

Contributing

See CONTRIBUTING.md. Tests run offline with python -m pytest; no Packet Tracer needed.

License

Released under the MIT License — © 2026 Mateo (@Mats2208).

Built with MCP · Powered by Pydantic · Deploys to Cisco Packet Tracer · Script-engine logic inspired by PTBuilder

Terminal client built on this server → PacketSmith

If this project is useful to you, star it ⭐ and share it with the community.

Installation

TypingMind
{
  "mcpServers": {
    "mcp-packet-tracer": {
      "command": "python",
      "args": [
        "-m",
        "src.packet_tracer_mcp"
      ]
    }
  }
}

Use Packet Tracer MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Packet Tracer MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Packet Tracer MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Packet Tracer MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-packet-tracer": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Packet Tracer MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Packet Tracer MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Packet Tracer MCP to help me with this task?
Packet Tracer MCP
Sure. I read it.
Here is what I found using Packet Tracer MCP.

Frequently asked questions

What is the Packet Tracer MCP MCP server used for?

Packet Tracer MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Packet Tracer MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Packet Tracer MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Packet Tracer MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Packet Tracer MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Packet Tracer MCP MCP to TypingMind?

Packet Tracer MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Packet Tracer MCP MCP provide in TypingMind?

Packet Tracer MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Packet Tracer MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Packet Tracer MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇