MCP Servers

A collection of Model Context Protocol servers, templates, tools and more.

P
Packettracer MCP Bridge

ExApp-powered MCP bridge for Cisco Packet Tracer

Created 4/21/2026
Updated about 4 hours ago
Repository documentation and setup instructions

Packet Tracer MCP Bridge

This workspace contains the ExApp-only Packet Tracer bridge:

  • a host-side stdio MCP server
  • a PT-side Java ExApp that runs inside Packet Tracer

Together they let MCP clients launch Packet Tracer, inspect bridge readiness, and execute bridge-backed operations through the PT-side app.

Demo

Demo preview (click to open full video):

This is the best place to put the video because it is the landing page for the whole bridge workspace.

Tested platform

Current end-to-end testing for this workspace has been done on Arch Linux and Windows.

The local Packet Tracer base install used during testing follows this project and article lineage:

This workspace supports both the Linux wrapper/AppImage path and the Windows launcher/meta.exe path.

On Linux, the documented defaults still point at paths such as:

  • /usr/bin/packettracer
  • /usr/lib/packettracer/packettracer.AppImage

Other Linux setups may work, but they should be treated as not yet validated unless you verify the same runtime paths or adapt the local wrappers.

On Windows, mcp-server uses the launcher-based runtime path, and the PT-side packaging flow can use PowerShell plus Windows meta.exe discovery through tools/packettracer-meta.py.

Layout

  • packettracer-mcp-bridge/mcp-server/ - stdio MCP server, MCP contract, and ExApp bridge launcher
  • packettracer-mcp-bridge/apps/ - PT-side Java ExApp, .pta packaging flow, and Packet Tracer-side bridge listener
  • packettracer-mcp-bridge/apps/release/pt82/ - PT 8.2 release/compatibility packaging assets for manual or alternate .pta packaging, not the default build flow
  • packettracer-mcp-bridge/tools/packettracer-meta.py - shell-safe wrapper around Cisco Packet Tracer's meta packager

Quick start

1. Build the PT-side ExApp package

From packettracer-mcp-bridge/apps/:

./build.sh
cd build/package
python3 ../../../tools/packettracer-meta.py pt-exapp.pta PT_APP_META.xml -i pt-exapp.py

PowerShell build equivalent:

.\build.ps1
Set-Location build/package
python ..\..\..\tools\packettracer-meta.py pt-exapp.pta PT_APP_META.xml -i pt-exapp.py

This produces the Packet Tracer app package:

packettracer-mcp-bridge/apps/build/package/pt-exapp.pta

2. Install and launch the ExApp in Packet Tracer

  • import/install pt-exapp.pta into Packet Tracer
  • launch the app from inside Packet Tracer
  • watch the Packet Tracer-side app log for a line like:
Local experimental host bridge bound at 127.0.0.1:3915X.

That line tells you the exact bridge port used by this launch.

3. Start the MCP server against that port

From packettracer-mcp-bridge/mcp-server/:

npm install
npm run build
export PACKET_TRACER_EXAPP_BRIDGE_COMMAND="$PWD/dist/packettracer-exapp-bridge.js"
export PACKET_TRACER_EXAPP_BRIDGE_ARGS_JSON='[]'
export PACKET_TRACER_EXAPP_BRIDGE_CWD="$PWD"
export PACKET_TRACER_LOCAL_EXPERIMENTAL_BRIDGE_PORT=39150
npm start

PowerShell equivalent:

npm install
npm run build
$env:PACKET_TRACER_EXAPP_BRIDGE_COMMAND = "$PWD/dist/packettracer-exapp-bridge.js"
$env:PACKET_TRACER_EXAPP_BRIDGE_ARGS_JSON = '[]'
$env:PACKET_TRACER_EXAPP_BRIDGE_CWD = "$PWD"
$env:PACKET_TRACER_LOCAL_EXPERIMENTAL_BRIDGE_PORT = '39150'
npm start

Replace 39150 with the exact port shown by the Packet Tracer log.

If your MCP client uses a Cursor-style or IDE-agent mcp.json config, start from packettracer-mcp-bridge/mcp-server/mcp.json.example.

Then replace the sample paths, built dist/ locations, and Packet Tracer runtime path with your local values. On Windows, keep PACKET_TRACER_LAUNCHER_PATH. On Linux, replace that env entry with PACKET_TRACER_APPIMAGE_PATH if you want to pin the AppImage path explicitly.

4. Confirm readiness from the MCP side

Use packettracer_status first. It is the safest first check because it reports:

  • host runtime state
  • ExApp bridge readiness
  • bridge discovery details

On Windows hosts, you can also run the focused smoke check from packettracer-mcp-bridge/mcp-server/:

npm run smoke:windows

Runtime prerequisites

This repo does not vendor Cisco Packet Tracer binaries. The main external prerequisites are:

  • a Java Development Kit (JDK) that provides java, javac, and jar
  • a Packet Tracer Java framework JAR, provided via:
    • PACKET_TRACER_JAVA_FRAMEWORK_JAR, or
    • packettracer-mcp-bridge/apps/lib/PacketTracerJavaFramework.jar, or
  • an active Packet Tracer mount under /tmp/.mount_*/opt/pt/help/default/ipc/ (Linux fallback)

Linux runtime defaults expect:

  • /usr/lib/packettracer/packettracer.AppImage or a running Packet Tracer AppImage mount

Windows runtime defaults expect:

  • a valid PacketTracer.exe install, either auto-discovered or provided via PACKET_TRACER_LAUNCHER_PATH

For Windows packaging, tools/packettracer-meta.py can auto-discover meta.exe from common Packet Tracer installs, or you can point it directly with --meta-path / PACKETTRACER_META.

If you are setting this up outside Arch Linux, read the tested-platform note above first and expect to adapt the runtime path assumptions.

Notes

  • packettracer-mcp-bridge/apps/PT_APP_META.xml intentionally keeps its current <ID> / <KEY> values for compatibility until full .pta install/load validation is complete.
  • packettracer-mcp-bridge/apps/release/pt82/ and packettracer-mcp-bridge/apps/PT_APP_META_82.xml are PT 8.2 release artifacts for manual or alternate packaging; the default documented .pta flow still uses the root apps/PT_APP_META.xml and apps/pt-exapp.py.
  • packettracer-mcp-bridge/mcp-server/ and packettracer-mcp-bridge/apps/ can be built independently, but the repo is organized as one bridge workspace.
  • packettracer-mcp-bridge/apps/README.md should stay focused on install/package/launch inside Packet Tracer.
  • packettracer-mcp-bridge/mcp-server/README.md should stay focused on the MCP contract and server runtime.
Quick Setup
Installation guide for this server

Installation Command (package not published)

git clone https://github.com/vlrdimir/packettracer-mcp-bridge
Manual Installation: Please check the README for detailed setup instructions and any additional dependencies required.

Cursor configuration (mcp.json)

{ "mcpServers": { "vlrdimir-packettracer-mcp-bridge": { "command": "git", "args": [ "clone", "https://github.com/vlrdimir/packettracer-mcp-bridge" ] } } }