cisco-pt-mcp
cisco-pt-mcp 🚀
AI 기반 Cisco Packet Tracer 자동화 - AI 클라이언트가 자연어로 Packet Tracer를 제어할 수 있습니다. Gemini AI 통합 오픈소스 MCP 서버입니다.

✨ 특징
🤖 AI 네트워크 생성 - 네트워크를 자연어로 설명하면 실제 동작하는 토폴로지가 생성됩니다
🎨 비주얼 빌더 인터페이스 - 문법 강조를 지원하는 웹 기반 코드 편집기
📦 기성 템플릿 - 캠퍼스, 지사, VLAN, 라우팅 구성
🔌 MCP 프로토콜 - Claude Desktop, Cursor 등 다양한 MCP 클라이언트에서 작동
⚡ 실시간 제어 - 실행 중인 Packet Tracer 인스턴스에 직접 연결
🛠️ 완전한 도구 모음 - 장치 관리, 구성, 테스트를 위한 20개 이상의 도구
Related MCP server: packet-tracer-mcp
📥 빠른 설치
1. MCP 서버 설치
# Clone or download this repository
cd cisco-pt-mcp
# Install with AI support
pip install -e ".[ai]"
# Configure Gemini API (optional, for AI features)
python setup_config.py2. Packet Tracer 확장 설치
Cisco Packet Tracer를 엽니다
Extensions → Scripting → Configure PT Script Modules를 선택합니다
Add를 클릭한 다음
extension/cisco-pt-mcp.pts를 선택합니다Packet Tracer를 다시 시작합니다
3. 시작 및 연결
# Start the MCP server
python -m mcp_serverPacket Tracer에서:
Extensions → Packet Tracer MCP를 클릭합니다
상태에 **"MCP Connected"**가 표시되어야 합니다
📖 자세한 설명은 QUICKSTART.md를 참조하세요
🎯 사용 모드
모드 1: AI 생성기 (자연어)
Packet Tracer에서 PTBuilder 인터페이스를 열고 AI Generator 탭을 사용합니다.
"Create a corporate network with 1 edge router, 1 core switch,
2 department switches, and 3 PCs per department. Configure VLANs."Generate를 클릭하면 작업 공간에 네트워크가 나타납니다!
모드 2: 코드 편집기 (JavaScript)
PTBuilder 코드를 직접 작성합니다.
addDevice("R1", "2911", 150, 150);
addDevice("S1", "2960-24TT", 350, 150);
addLink("R1", "GigabitEthernet0/0", "S1", "GigabitEthernet0/1", "straight");
configureIosDevice("R1", "interface Gi0/0\nip address 192.168.1.1 255.255.255.0");모드 3: MCP 클라이언트 (Claude/Cursor)
MCP 클라이언트를 구성합니다.
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"cisco-pt-mcp": {
"command": "python",
"args": ["-m", "mcp_server"],
"cwd": "/path/to/cisco-pt-mcp",
"env": {
"GEMINI_API_KEY": "your_key_here"
}
}
}
}그리고 Claude와 대화합니다:
"3대의 라우터로 OSPF 라우팅을 테스트할 수 있는 네트워크 랩을 만들어줘"
🛠️ 제공 도구
AI 기반 도구
도구 | 설명 | 예제 |
| 텍스트에서 전체 네트워크 생성 | "소규모 사무실 네트워크 만들어줘..." |
| PTBuilder JavaScript 코드 생성 | "링 형태로 스위치 5개를 구성하는 코드" |
| PTBuilder 코드 실행 | 사용자 지정/생성된 코드 실행 |
| JSON 명세로 네트워크 구축 | 복잡한 설계 가져오기 |
| 웹 UI 열기 | 코드 편집기 및 템플릿 접근 |
핵심 네트워크 도구
도구 | 설명 |
| 라우터, 스위치, PC 또는 서버 추가 |
| 인터페이스 모듈 (WIC, NIM 등) 설치 |
| 케이블로 장치 연결 |
| 장치 삭제 |
| 연결 삭제 |
| 장치 이름 변경 |
| 캔버스에서 위치 이동 |
| 장치 전원 켜기/끄기 |
구성 도구
도구 | 설명 |
| PC의 IP, 서브넷, 게이트웨이, DNS 구성 |
| 라우터/스위치에서 IOS CLI 명령 실행 |
모니터링 및 시뮬레이션 도구
도구 | 설명 |
| 모든 장치와 연결의 스냅샷 |
| 상세 장치 정보 조회 |
| 시뮬레이션/실시간 모드 전환 |
| 시뮬레이션 상태 조회 |
| 패킷 흐름을 단계별로 실행 |
| ICMP ping PDU 전송 |
| PDU 결과 읽기 |
| IOS 명령 기록 보기 |
📚 문서
QUICKSTART.md - 5분 안에 시작하기
packet-tracer-automation-build-doc.md - 고급 자동화 기법
🎓 예제
예제 1: AI로 간단한 네트워크 만들기
Prompt: "Create a basic network with one 2911 router, one 2960 switch,
and two PCs. Configure the router with IP 192.168.1.1 and the PCs
with static IPs in the same subnet."
Result: Complete working network in 30 seconds예제 2: 캠퍼스 네트워크 템플릿
Templates 탭에서 "Campus Network" 템플릿을 불러옵니다:
3계층 아키텍처 (코어, 디스트리뷰션, 액세스)
코어 스위치 1개
디스트리뷰션 스위치 2개
액세스 스위치 4개
적절한 스위치 간 연결
예제 3: VLAN 구성
// From templates - VLAN setup
addDevice("S1", "2960-24TT", 300, 200);
addDevice("PC1", "PC-PT", 150, 300);
addDevice("PC2", "PC-PT", 450, 300);
configureIosDevice("S1", `
vlan 10
name Sales
vlan 20
name Engineering
interface FastEthernet0/1
switchport mode access
switchport access vlan 10
interface FastEthernet0/2
switchport mode access
switchport access vlan 20
`);🔧 설정
Gemini API 설정
옵션 1: 인터랙티브 설정
python setup_config.py옵션 2: 환경 변수
export GEMINI_API_KEY="your_key_here"옵션 3: 구성 파일
~/.cisco-pt-mcp/config.json을 생성합니다:
{
"gemini_api_key": "YOUR_KEY_HERE",
"bridge_host": "127.0.0.1",
"bridge_port": 7531,
"tool_timeout": 60
}🏗️ 아키텍처
┌─────────────────┐
│ MCP Client │ (Claude Desktop, Cursor, etc.)
│ (Natural Lang) │
└────────┬────────┘
│ MCP Protocol
┌────────▼────────┐
│ MCP Server │ (Python)
│ + Gemini AI │ - Network generation
│ │ - Code generation
└────────┬────────┘
│ Socket.IO (port 7531)
┌────────▼────────┐
│ PT Extension │ (JavaScript)
│ cisco-pt-mcp │ - PTBuilder integration
│ │ - Web interface
└────────┬────────┘
│ IPC API
┌────────▼────────┐
│ Packet Tracer │ (Cisco Application)
│ Workspace │
└─────────────────┘🤝 기여
기여를 환영합니다! 이 프로젝트는 다음을 통합합니다:
PTBuilder - Packet Tracer용 JavaScript 자동화
Gemini API - AI 네트워크 생성
📄 라이선스
MIT License - LICENSE 파일 참조
🙏 감사의 말
PTBuilder by kimmknight - JavaScript 자동화 프레임워크
MCP 프로토콜 - AI 애플리케이션 간 통신 표준
Google Gemini - AI 생성 기능
Original Cisco-pt-mcp by muhammadbalawal
🆘 지원 및 이슈
이 저장소가 유용하다면 ⭐ 스타를 기부해 주세요!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceConnects Claude with Cisco Packet Tracer 9.x to control network topologies, configure devices with IOS commands, and run diagnostics via natural language.MIT
- AlicenseNot gradedqualityCmaintenanceEnables control of Cisco Packet Tracer 9.0 via natural language, allowing creation of network topologies, device configuration, and simulation launches through an MCP interface.998MIT
- AlicenseBqualityBmaintenanceEnables automation of Cisco Packet Tracer simulations by placing devices, connecting links, and generating IOS configurations via MCP, ideal for network coursework and demonstrations.231MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Cisco Packet Tracer in real time, allowing natural language-driven creation and configuration of network topologies.4MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/2001sithum/cisco-pt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server