Pyats

Created By
automateyournetworka year ago
Overview

What is Pyats?

Pyats is a Model Context Protocol (MCP) Server that integrates Cisco pyATS and Genie functionalities, enabling structured, model-driven interactions with network devices using the JSON-RPC 2.0 protocol over STDIO.

How to use Pyats?

To use Pyats, set your testbed path and run the server in either Continuous STDIO Mode or One-Shot Mode. You can also build and run it using Docker for containerized environments.

Key features of Pyats?

  • Connects to Cisco IOS/NX-OS devices defined in a pyATS testbed.
  • Executes validated CLI commands safely (e.g., show, ping).
  • Allows controlled configuration changes and returns structured output.
  • Exposes tools for discovering and calling commands via JSON-RPC.

Use cases of Pyats?

  1. Automating network device management and configuration.
  2. Running diagnostics and retrieving device status.
  3. Integrating with LangGraph for advanced tool invocation.

FAQ from Pyats?

  • Can Pyats be used in secure environments?

Yes! Pyats operates entirely via STDIO, making it suitable for secure and embedded integrations.

  • Is Docker support available?

Yes! Pyats can be built and run as a Docker container for easy deployment.

  • How does Pyats ensure command safety?

Pyats uses Pydantic for input validation, blocking unsafe commands and preventing abuse.

Server Config

{
  "mcpServers": {
    "pyats": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PYATS_TESTBED_PATH",
        "-v",
        "/absolute/path/to/testbed/folder:/app",
        "pyats-mcp-server"
      ],
      "env": {
        "PYATS_TESTBED_PATH": "/app/testbed.yaml"
      }
    }
  }
}
Project Info
Created At
a year ago
Updated At
a year ago
Author Name
automateyournetwork
Star
-
Language
-
License
-

Recommend Servers

View All
Tavily Mcp
@tavily-ai

JavaScript
a year ago