ansible-flow-mcp
Provides tools for searching Ansible module galleries, retrieving module schemas, and running Ansible modules and playbooks with optional check mode and security restrictions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ansible-flow-mcpSearch for the apt module, get its schema, and run it in check mode to update all packages"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ansible-flow-mcp
MCP server that exposes Ansible modules and playbooks to AI agents:
search → schema → check → execute
Dual-tracked with OpenFlow Ansible canvas gallery
(plan · OpenFlow umbrella · validation).
Not affiliated with Red Hat or the Ansible project beyond using the public Ansible CLI and docs.
Requirements
Python ≥ 3.11
ansible/ansible-coreonPATHfor real runs (unit tests mock the CLI)Collection
ansible.posix(JSON stdout callbackansible.posix.jsonon ansible-core ≥ 2.15)Other collections you intend to use installed on the control node
python3 -m pip install --user 'ansible-core>=2.16,<2.19'
export PATH="$HOME/.local/bin:$PATH"
ansible-galaxy collection install ansible.posixRelated MCP server: MCP SysOperator
Install (dev)
cd ansible-flow-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytestRun (stdio MCP)
ansible-flow-mcp
# or: python -m ansible_flow_mcp.serverCursor / Claude Desktop
See examples/cursor-mcp.json and examples/claude-desktop.json.
Local path example:
{
"mcpServers": {
"ansible-flow": {
"command": "/path/to/ansible-flow-mcp/.venv/bin/ansible-flow-mcp"
}
}
}Tools
Tool | Purpose |
| Gallery search |
| Slim argSpec for FQCN |
| Ad-hoc ansible ( |
|
|
| Collections in gallery |
Agent ritual (modules)
search_modulesget_module_schemarun_module(..., check_mode=true)run_module(..., check_mode=false)if appropriate
Agent ritual (playbooks)
Confirm playbook path is under an allowlisted root
run_playbook(..., check_mode=true)run_playbook(..., check_mode=false)if appropriate
Catalog
catalog/collections-allowlist.yml— allowed collections + denied free-form modulescatalog/gallery.json— searchable module listcatalog/schemas/*.json— optional UI/agent schemas (full gallery coverage)
Regenerate when ansible-doc is available:
pip install pyyaml
python scripts/generate_catalog.pyEnv
Variable | Meaning |
| Override catalog path |
| Comma-separated collection allowlist override |
| Default |
| Seconds (default 120 module / 300 playbook) |
| Extra colon-separated playbook path roots |
| Same roots (OpenFlow-compatible alias) |
Default playbook roots include cwd, ./playbooks, ./ansible, /data/ansible, and the system temp dir. Max playbook size 2MB; .yml / .yaml only.
Security
See docs/SECURITY.md. Free-form modules (command/shell/raw/script) are denied by default. Playbooks are path-jailed. CLI is argv-only (no shell interpolation). Structured output uses ansible.posix.json.
OpenFlow parity
OpenFlow | This MCP server |
Palette Ansible gallery |
|
Form | JSON module options |
|
Playbook resource |
|
| Inventory / Ansible config on the control node |
Golden runner fixtures under tests/fixtures/ define the shared result shape for OpenFlow’s openflow-node-base.ansible executor (TypeScript port).
OpenFlow docs: docs/ansible.md
License
Apache-2.0
Publish (PyPI)
pip install build twine
python -m build
# twine upload dist/*Or from git:
uvx --from ansible-flow-mcp ansible-flow-mcpSchemas cover the full committed gallery (builtin + popular collections). Regenerate with scripts/generate_catalog.py when ansible-doc is available.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityFmaintenanceThis Model Context Protocol server enables AI assistants to interact directly with Ansible, allowing them to execute playbooks, manage inventory, check syntax, and perform other Ansible operations.Last updated1826MIT
- AlicenseCquality-maintenanceAn MCP server for Infrastructure as Code that enables AI assistants to manage cloud resources through Ansible and Terraform operations. It supports executing playbooks, managing AWS services, and running Terraform commands with optional LocalStack integration.Last updated18
- Alicense-qualityBmaintenanceEnterprise-grade MCP server exposing Ansible Automation Platform 2.x as a complete AI interface for LLMs, enabling natural language management of automation resources.Last updated1Apache 2.0
- Alicense-qualityDmaintenanceA comprehensive MCP server suite for Red Hat's automation ecosystem, enabling AI assistants to interact with Ansible Automation Platform, Event-Driven Ansible, ansible-lint, and official Red Hat documentation with secure domain validation.Last updated30MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/real-limitless/ansible-flow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server