Ansible MCP Server

Betacloud
65 starsPythoncommunity
GitHub
About

Overview

The Ansible MCP Server enables AI agents to use Ansible for IT automation. It provides tools for running playbooks, executing ad-hoc commands, managing inventory, and working with Ansible Vault for secret management.
Capabilities

Tools & Capabilities

run_playbook

Execute an Ansible playbook

run_adhoc

Run an ad-hoc Ansible command

list_inventory

List inventory hosts and groups

vault_encrypt

Encrypt a value with Ansible Vault

Setup

Installation

bash
Install
pip install mcp-server-ansible
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "ansible": {
      "command": "python",
      "args": ["-m", "mcp_server_ansible"],
      "env": {
        "ANSIBLE_INVENTORY": "/path/to/inventory"
      }
    }
  }
}

Quick Info

Authorcommunity
LanguagePython
StatusBeta
Stars 65
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.