Cisco CLISAFE
A Telnet-based MCP tool for Cisco network device CLI, optimized for Cisco IOS devices.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
English | 中文
English
A Telnet-based MCP tool for Cisco network device CLI, optimized for Cisco IOS devices.
Features
- Smart Connection Management: Auto terminal activation, TCP warm-up, auto disable pagination
- Device Mode Detection: Auto detect user mode, privileged mode, config mode
- Smart Wait Mechanism: Returns immediately when device prompt detected
- Long-running Command Optimization: Auto detect ping, traceroute and extend wait time
Tools
- telnet_connect: Establish Telnet connection, returns session ID and device mode
- telnet_execute: Execute command in session, returns output and device mode
- telnet_list_sessions: List all active sessions
- telnet_disconnect: Disconnect session
Installation
git clone https://github.com/XunMInt/cisco-cli-mcp.git cd cisco-cli-mcp pip install -e .
Usage
Run as MCP Server
cisco-cli-mcp
Configure MCP Client
Add to MCP client config:
{
"mcpServers": {
"cisco-cli-mcp": {
"command": "cisco-cli-mcp"
}
}
}Response Format
telnet_connect
{
"success": true,
"sessionId": "xxx-xxx-xxx",
"deviceMode": "SW3#",
"message": "连接成功"
}telnet_execute
{
"success": true,
"output": "command output...",
"deviceMode": "SW3#"
}System Prompt
You are a Cisco network device configuration assistant, skilled in configuring routers and switches. 1. You can use the cisco-cli-mcp tool to connect to devices. 2. For long-running operations like ping, traceroute, show tech-support, etc., set wait_ms to 3000-10000 milliseconds or longer. 3. When sending commands, always remember the current system mode (e.g., privileged mode, global config mode). Adjust commands based on mode (e.g., add "do" prefix for show commands in config mode, use "configure terminal" to enter config mode from privileged mode). 4. If already
3a6704f2dc5eOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add cisco-cli-mcp -- uvx cisco-cli-mcp
{
"mcpServers": {
"cisco-cli-mcp": {
"command": "uvx",
"args": [
"cisco-cli-mcp"
]
}
}
}Exposed tools (4)
3 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
telnet_connect | read | |
telnet_disconnect | read | |
telnet_execute | write | |
telnet_list_sessions | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
Gates applied: no_behavioural_pass, no_license.
3a6704f2dc5efull audit observations/trust-audit/mcp-server/xunmint__cisco-cli.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 3a6704f2dc5e | SAFE | B | 89 | first audit |
Questions
What is the Cisco CLI MCP server?
A Telnet-based MCP tool for Cisco network device CLI, optimized for Cisco IOS devices.
What tools does Cisco CLI expose?
4 in total: 3 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Cisco CLI safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Cisco CLI need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (3a6704f2dc5e), read on 2026-10-08. The repository is watched and re-audited when it changes.