pyATS_MCP
22
The pyATS MCP Server is a secure, model-driven solution for interacting with network devices using Cisco pyATS and Genie. It provides structured communication over STDIO using JSON-RPC, featuring tools for device management and integration with LangGraph.
pyATS MCP Server
This project implements a Model Context Protocol (MCP) Server using Cisco pyATS and Genie functionalities. It allows structured interactions with network devices through JSON-RPC 2.0 over STDIO. Key features include:
- Securely connects to Cisco IOS/NX-OS devices
- Supports validated CLI commands for show and ping
- Facilitates controlled configuration changes
- Offers structured and raw outputs
- Provides tools for device discovery and CLI execution
- Operates entirely via STDIO for enhanced security and portability
Usage
- Set the testbed path.
- Run the server in continuous STDIO or one-shot mode.
- Docker support is available for containerized operations.
- Integrates with LangGraph for tool invocation.
Available MCP Tools
- Executes show and ping commands with optional parsing.
- Applies and fetches configurations safely.
- Fetches system logs and configurations.
Security Features
- Validates inputs with Pydantic.
- Blocks unsafe commands and prevents abuse.