Cisco CLI MCP Server logo

Cisco CLI MCP Server

Community
XunMInt

A Telnet-based MCP tool for Cisco network device CLI, optimized for Cisco IOS devices.

PublisherXunMInt
Repositorycisco-cli-mcp
LanguagePython
Forks
9
Stars
41
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Cisco CLI MCP Server 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

    41 stars and 9 forks from the linked repository.

Cisco CLI MCP Server

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

bash
git clone https://github.com/XunMInt/cisco-cli-mcp.git
cd cisco-cli-mcp
pip install -e .

Usage

Run as MCP Server

bash
cisco-cli-mcp

Configure MCP Client

Add to MCP client config:

json
{
  "mcpServers": {
    "cisco-cli-mcp": {
      "command": "cisco-cli-mcp"
    }
  }
}

Response Format

telnet_connect

json
{
  "success": true,
  "sessionId": "xxx-xxx-xxx",
  "deviceMode": "SW3#",
  "message": "连接成功"
}

telnet_execute

json
{
  "success": true,
  "output": "command output...",
  "deviceMode": "SW3#"
}

System Prompt

text
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 connected, use telnet_list_sessions to reuse existing sessions instead of reconnecting.
5. When unsure about configuration, run show commands first to verify before making changes.
6. All configurations should be based on the topology information provided by the user. Ask for clarification if anything is unclear.
7. If a command error occurs, use the "?" command to see available options.
8. Before calling a tool, briefly explain what you're about to do (no need for lengthy explanations).

中文

一个基于Telnet协议的思科网络设备CLI的MCP工具,专为思科IOS设备优化。

功能特性

  • 智能连接管理:自动激活终端、TCP预热、自动禁用分页
  • 设备模式检测:自动识别用户模式、特权模式、配置模式
  • 智能等待机制:检测到设备提示符立即返回,无需等满超时时间
  • 耗时命令优化:自动检测ping、traceroute等命令并增加等待时间

工具列表

  • telnet_connect: 建立Telnet连接,返回会话ID和设备当前模式
  • telnet_execute: 在指定会话执行命令,返回输出和设备模式
  • telnet_list_sessions: 列出所有活动会话
  • telnet_disconnect: 断开指定会话

安装

bash
git clone https://github.com/XunMInt/cisco-cli-mcp.git
cd cisco-cli-mcp
pip install -e .

使用

作为MCP服务器运行

bash
cisco-cli-mcp

配置MCP客户端

在MCP客户端配置文件中添加:

json
{
  "mcpServers": {
    "cisco-cli-mcp": {
      "command": "cisco-cli-mcp"
    }
  }
}

返回格式

telnet_connect

json
{
  "success": true,
  "sessionId": "xxx-xxx-xxx",
  "deviceMode": "SW3#",
  "message": "连接成功"
}

telnet_execute

json
{
  "success": true,
  "output": "命令输出内容...",
  "deviceMode": "SW3#"
}

提示词

text
你是思科网络设备配置助手,擅长配置路由器交换机

1、你可以使用cisco-cli-mcp工具连接设备
2、对于耗时操作如 ping、traceroute、show tech-support 等,建议将此值设置为 3000-10000 毫秒或更长时间。
3、你每次发送命令的时候,务必记住当前的系统模式(例如特权模式、全局配置模式等)配置命令要根据模式进行调整(如在全局配置模式,执行show操作要加上do,在特权模式执行配置操作要configure terminal等。
4、如果之前已经连接成功的话,可以使用telnet_list_sessions工具复用之前的会话,避免二次连接
5、你不确定的配置要执行show操作进行确定再配置
6、所有的配置要结合用户给出的拓扑信息,有不清楚的地方可以反问用户。
7、如果提示命令错误,可以使用“?”命令查看提示
8、你调用工具的之前必须得简单解释一下(不需要解释太多)

Installation

TypingMind
{
  "mcpServers": {
    "cisco-cli-mcp": {
      "command": "cisco-cli-mcp",
      "args": []
    }
  }
}

Use Cisco CLI MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Cisco CLI MCP Server 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 Cisco CLI MCP Server 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 Cisco CLI MCP Server 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": {
    "cisco-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Cisco CLI MCP Server 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 Cisco CLI MCP Server 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 Cisco CLI MCP Server to help me with this task?
Cisco CLI MCP Server
Sure. I read it.
Here is what I found using Cisco CLI MCP Server.

Frequently asked questions

What is the Cisco CLI MCP Server MCP server used for?

Cisco CLI MCP Server 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 Cisco CLI MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Cisco CLI MCP Server 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 Cisco CLI MCP Server 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 Cisco CLI MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Cisco CLI MCP Server MCP to TypingMind?

Cisco CLI MCP Server 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 Cisco CLI MCP Server MCP provide in TypingMind?

Cisco CLI MCP Server 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 Cisco CLI MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Cisco CLI MCP Server 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 👇