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-ansibleExamples
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