ansible-mcp

ansible-mcp is a cursor rule for Cursor from sibilleb/AAP-Enterprise-MCP-Server. It costs 0 tokens per session (6,373 once invoked), scanned A, original, MIT.

A guide for using Ansible best practices together with MCP servers, which let an AI assistant interact with tools and services. Ansible automates infrastructure tasks such as configuring servers and running jobs.

In plain words
What is it for?
Managing inventories and jobs, searching Ansible collections, controlling event-driven activations, linting playbooks, checking syntax, viewing logs, and troubleshooting automation.
Why use it?
It combines project-quality checks with documented ways to operate Ansible Automation Platform, event-driven automation, and related services through an assistant.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Managing inventories and jobs, searching Ansible collections, controlling event-driven activations, linting playbooks, checking syntax, viewing logs, and troubleshooting automation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/sibilleb/AAP-Enterprise-MCP-Server

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ansible-mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp/github.svg)](https://agentmods.dev/rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp)
Your own site
<a href="https://agentmods.dev/rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp"><img src="https://agentmods.dev/badge/rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ansible-mcp

Your own site · 80×15
<a href="https://agentmods.dev/rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp"><img src="https://agentmods.dev/badge/rules/sibilleb/aap-enterprise-mcp-server/ansible-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 6,373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.06373
Opus 5 $0.00000 $0.03187
Sonnet 5 $0.00000 $0.01275
Haiku 4.5 $0.00000 $0.00637

Measured 11d ago against content hash 02cf2b3d22bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ansible-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ansible-mcp.mdc · 786 lines

How it starts

The opening of the file, as written. The whole thing — 786 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI-Enhanced Ansible Best Practices with MCP Server Integration

This guide provides comprehensive best practices for Ansible projects enhanced with MCP (Model Context Protocol) server capabilities, enabling AI assistants to interact directly with Ansible Automation Platform (AAP), Event-Driven Ansible (EDA), and ansible-lint for code quality assurance.

MCP Server Integration Overview

When working with this project's three specialized MCP servers, you can leverage AI assistants to:

  • Direct AAP Interaction: Manage inventories, execute job templates, monitor jobs, and handle projects through natural language commands
  • Galaxy Content Discovery: Search and discover Ansible collections and roles with intelligent recommendations
  • EDA Management: Control activations, manage rulebooks, and monitor event streams
  • Code Quality Assurance: Lint playbooks, validate syntax, and enforce best practices with progressive quality profiles
  • Real-time Operations: Execute ad-hoc commands, retrieve logs, and monitor infrastructure status
  • Enhanced Debugging: Query job status, retrieve detailed logs, and troubleshoot issues interactively

Available MCP Tools

AAP (Ansible Automation Platform) Tools
  • list_inventories, get_inventory, create_inventory - Inventory management
  • list_hosts, add_host_to_inventory, remove_host_from_inventory - Host operations
  • run_job, job_status, job_logs - Job execution and monitoring
  • list_job_templates, create_job_template - Template management
  • create_project, list_projects - Project management
  • run_adhoc_command - Direct command execution
Galaxy Search Tools
  • search_galaxy_collections - Search collections by query, tags, or namespace
  • search_galaxy_roles - Find roles by keyword, name, or author
  • get_collection_details - Get detailed collection information and versions
  • get_role_details - Get comprehensive role details and metadata
  • suggest_ansible_content - AI-powered content recommendations based on use case

Read the full file on GitHub · 786 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 786 lines · 6,373 tokens per session scan A 02cf2b3d22bc

Subscribe to this mod's changes

ansible-mcp is a cursor rule published in the GitHub repository sibilleb/AAP-Enterprise-MCP-Server (33 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,373 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.