Back to Home
alibahadircoskun icon

ansible-network-mcp

by alibahadircoskun

Overview

Manages Ansible environments and executes network automation tasks on network devices via conversational AI (Claude Desktop).

Installation

Run Command
source ~/ansible-venv/bin/activate && python ~/ansible-network-mcp/server.py

Environment Variables

  • ANSIBLE_DIR
  • ANSIBLE_HOST_KEY_CHECKING
  • ANSIBLE_FORCE_COLOR

Security Notes

CRITICAL: The `install.sh` script creates `group_vars/qfx_switches.yml` with hardcoded default credentials (`ansible_user: root`, `ansible_password: Admin123_`). This is a severe security risk, as these are exposed and may be forgotten. Users are strongly advised to change these immediately and consider Ansible Vault for sensitive data. CRITICAL: The server explicitly sets `ANSIBLE_HOST_KEY_CHECKING=False` in its subprocess calls and recommends it in `ansible.cfg` and Claude Desktop configuration. This disables host key verification, making it vulnerable to Man-in-the-Middle (MITM) attacks during SSH/NETCONF connections. POSITIVE: Input sanitization functions (`sanitize_input`, `sanitize_filename`) and path traversal checks (`safe_path_join`, `full_path.startswith(ANSIBLE_DIR)`) are implemented, which helps mitigate command injection and file system access vulnerabilities within the tool's operations. File operations are restricted to the configured Ansible directory.

Similar Servers

Stats

Interest Score0
Security Score5
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-26

Tags

AnsibleNetwork AutomationClaudeAIDevOps