ansible-know-mcp
This MCP server lets AI agents discover, learn about, install, and package Ansible content and reusable skills.
Search Ansible Galaxy collections, modules, plugins, standalone roles, and documentation.
Fetch docs pages as clean Markdown and search documentation manifests across Ansible, AAP, Red Hat, and CoP sources.
Retrieve structured documentation for modules, roles, plugins, standalone roles, collection manifests, and full collection module docs.
Install and pin collections in a temporary session with
ensure_collection.Generate skill packages for individual modules, roles, plugins, or entire collections.
List and read generated skills.
Package generated skills as Agent Plugins, or use the deprecated Lola packaging option.
Clear Galaxy and documentation caches.
Expose resources and prompts for skills, Galaxy servers, doc sources, playbook review, module/plugin explanation, role generation, and collection discovery.
Provides tools for discovering and documenting Ansible modules, generating skill packages, and searching documentation, enabling AI agents to learn and work with Ansible.
Click on "Deploy 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-know-mcp search for modules related to package management"
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 Know MCP Server
The Ansible knowledge engine for AI agents — discover collections, understand modules, and generate reusable skills via MCP.
A community proof of concept built with spec-driven AI-assisted development.
┌──────────────────────────────────────────────────────────────────────┐
│ >_ ansible-know-mcp [x] │
├──────────────────────────────────────────────────────────────────────┤
│ │
│ > I need to create an AWS EC2 instance with Ansible │
│ │
│ Let me find the right collection and module. │
│ │
│ * search_collections("aws ec2") │
│ amazon.aws 12.3M downloads │
│ │
│ * get_module_doc("amazon.aws.ec2_instance") │
│ name, image_id, instance_type, state, key_name, tags... │
│ │
│ → generate_skill("amazon.aws.ec2_instance") │
│ Loaded skill: ec2_instance (12 params, 3 examples) │
│ │
│ I have everything I need. Instance type, AMI, and name? │
│ │
├──────────────────────────────────────────────────────────────────────┤
│ > t3.micro, Fedora Linux 44, web-server █ │
└──────────────────────────────────────────────────────────────────────┘
DISCOVER ──→ LEARN ──→ SKILL ──→ BUILDWhat It Does
Ansible Know is the learn layer for AI agents working with Ansible:
Galaxy collection discovery — search 2000+ collections by keyword, ranked by download count
Multi-server Galaxy support — query public Galaxy, private Automation Hub, and AAP Gateway in parallel
Module, role, and plugin documentation — structured parameter specs, examples, and metadata with Galaxy fallback
Documentation search — find conceptual guides from Ansible's AI-friendly docs, fetch full pages as Markdown
Collection management — auto-install collections and get collection-level overviews
Skill generation — create ready-to-use skill packages that teach agents how to use specific modules, roles, and plugins
Resources and prompts — browse skills, doc sources, and Galaxy servers; pre-built templates for playbook review, module explanation, and role generation
Together with Ansible Devtools MCP (create + test) and AAP MCP (deploy), this enables the full autonomous cycle: learn -> create -> test -> deploy.
Agent's MCP servers:
+----------------------------+ +--------------------------+ +--------------+
| Ansible Know | | Ansible Devtools | | AAP MCP |
| (this project) | | | | |
| | | CREATE | | |
| search_collections | | ansible_create_* | | controller.* |
| search_modules | | build_ee | | eda.* |
| search_plugins | | setup_environment | | gateway.* |
| get_module_doc | | environment_info | | galaxy.* |
| get_plugin_doc | | | | |
| get_role_doc | | TEST | | |
| search_standalone_roles | | | | |
| get_standalone_role_doc | | | | |
| get_collection_docs | | ansible_lint | | |
| get_collection_manifest | | ansible_navigator | | |
| search_docs | | | | |
| fetch_doc | | REFERENCE | | |
| ensure_collection | | zen_of_ansible | | |
| generate_skill | | | | |
| generate_role_skill | | | | |
| generate_plugin_skill | | | | |
| generate_collection_skills | | | | |
| list_skills / get_skill | | | | |
| package_as_plugin | | | | |
| package_for_lola | | | | |
| clear_cache | | | | |
| | | | | |
| LEARN | | CREATE + TEST | | DEPLOY |
+----------------------------+ +--------------------------+ +--------------+Related MCP server: mcp-skills
Installation
Using uvx (recommended):
uvx ansible-know-mcpUsing pip:
pip install ansible-know-mcpRequirement: ansible-core must be installed in the same Python environment (provides ansible-doc).
Usage
Claude Code
# Project-scoped
claude mcp add ansible-know -- uvx ansible-know-mcp
# Available in all projects
claude mcp add --scope user ansible-know -- uvx ansible-know-mcpVS Code / Cursor
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"ansible-know": {
"command": "uvx",
"args": ["ansible-know-mcp"],
"type": "stdio",
"env": {
"ANSIBLE_KNOW_PROJECT_DIR": "${workspaceFolder}"
}
}
}
}Skill packages default to {project}/skills/. Claude Code injects
CLAUDE_PROJECT_DIR automatically; set ANSIBLE_KNOW_PROJECT_DIR for other
clients. After generate_collection_skills, a managed section in AGENTS.md
points host agents at that tree.
Pairing with Ansible Devtools MCP (next-mcp)
know-mcp and next-mcp use different env vars. To share one skills directory,
also configure next-mcp's local skill source (extension setting
ansibleEnvironments.skillSources, or ANSIBLE_SKILL_SOURCES):
{
"ansibleEnvironments.skillSources": [
{
"id": "know-generated",
"type": "local",
"url": "${workspaceFolder}/skills",
"trust": "community"
}
]
}Use {id, type, url, trust} — next-mcp's loader expects url (directory path),
not path/repo alone. Until next-mcp expands local scan depth past one level,
skill_* tools see collection-level SKILL.md files; nested module skills remain
available to host agents via the AGENTS.md pointer. See
docs/superpowers/specs/2026-08-02-skill-discoverability-alignment.md.
Any MCP client
The server communicates over stdio by default:
uvx ansible-know-mcpHTTP Transport
Run as a standalone HTTP server for shared/remote access:
# HTTP on default port (8080)
ansible-know-mcp --transport http
# Custom host and port
ansible-know-mcp --transport http --host 10.0.0.1 --port 9090
# Via environment variables (useful for containers)
export ANSIBLE_KNOW_TRANSPORT=http
export ANSIBLE_KNOW_PORT=8080
ansible-know-mcpConnect from any MCP client using the streamable HTTP URL:
http://<host>:8080/mcp
Security: HTTP mode has no built-in authentication. Deploy behind a reverse proxy with authentication/authorization, or use only on trusted networks.
Docker
Build and run from source:
docker build -t ansible-know-mcp .
docker run -p 7860:7860 ansible-know-mcpConnect from any MCP client using the streamable HTTP URL:
http://localhost:7860/mcp
Remote MCP (Hugging Face Spaces)
A public instance is available as a remote MCP server:
Claude Code:
claude mcp add ansible-know --transport http https://know.ansible.ar/mcpVS Code / Cursor (.vscode/mcp.json):
{
"servers": {
"ansible-know": {
"type": "http",
"url": "https://know.ansible.ar/mcp"
}
}
}Full stack
{
"mcpServers": {
"ansible-know": { "command": "uvx", "args": ["ansible-know-mcp"] },
"ansible-devtools": { "command": "ade", "args": ["mcp"] },
"aap": { "command": "aap-mcp-server" }
}
}Tools
Discovery
Tool | Description |
| Search Ansible Galaxy for collections by keyword, ranked by download count. Results are cached per server/query/tags for 15 minutes (memory-only); per-collection detail lookups are cached too, so repeat queries pay the enrichment cost once; |
| Find modules by keyword in name or description (up to 50 matches). Multi-word queries match entries containing every word |
| Find plugins by keyword (lookup, filter, inventory, callback, etc.). Multi-word queries match entries containing every word |
| Full structured docs: params, examples, API detection. Falls back to Galaxy if not installed locally |
| Full structured plugin documentation with Galaxy fallback |
| Role documentation with three-tier resolution: local ansible-doc, Galaxy README, or graceful degradation |
| Search Galaxy standalone (legacy v1) roles by keyword |
| Structured docs for a 2-part |
| Get all module docs for a collection from Galaxy in a single call |
| Fresh collection overview; does not read/write project MANIFEST.json caches |
| Search documentation manifests for conceptual guides (up to 20 matches). Multi-word queries fall back to ranked partial matches when nothing matches every word. Use |
| Fetch a docs.ansible.com, docs.redhat.com, or CoP raw GitHub README.adoc URL (from search_docs) as clean Markdown |
search_docs source= routing:
Need |
|
Official HOWTO (playbooks, vault, inventory syntax) |
|
ansible-lint rules / profiles |
|
Navigator / builder / creator / molecule | matching source name |
AAP product manuals |
|
CoP opinionated practices (role design, naming, CaC, Git; users often say best practices) |
|
Unsure which corpus | omit |
Published CoP site (citation only, not a fetch_doc URL): https://redhat-cop.github.io/automation-good-practices/
Collection management
Tool | Description |
| Install a collection to a temporary directory for this session |
Skills
Tool | Description |
| List all generated skills |
| Read a skill's SKILL.md content |
| Generate a skill package for one module |
| Generate a skill package for one role |
| Generate a skill package for one plugin |
| Batch generate skills for an entire collection |
| Wrap generated skills into an Agent Plugins directory ( |
| Deprecated — prefer |
Maintenance
Tool | Description |
| Clear Galaxy and/or doc manifest caches |
Resources
URI | Description |
| List all generated skill packages |
| Read a skill's SKILL.md content by FQCN |
| Local stdio: default workspace collections only. HTTP: |
| List configured Galaxy servers (names, URLs, auth types — never credentials) |
| Installed and latest version info with upgrade status |
| List configured documentation manifest sources |
Prompts
Prompt | Description |
| Review a playbook against module docs and best practices |
| Detailed module explanation with usage examples |
| Detailed plugin explanation with usage examples |
| Generate a role skeleton using specified modules |
| Guide through search, install, and explore workflow |
Multi-server Galaxy Support
Ansible Know reads [galaxy_server.*] sections from ansible.cfg (resolved in standard order: ANSIBLE_CONFIG env, ./ansible.cfg, ~/.ansible.cfg, /etc/ansible/ansible.cfg):
# ansible.cfg
[galaxy_server.automation_hub]
url = https://hub.example.com/api/galaxy/
token = my-token
[galaxy_server.public_galaxy]
url = https://galaxy.ansible.com/api/Token auth, basic auth, and per-server TLS verification
SSO
auth_urlmust use HTTPS, even when certificate verification is disabled. Token exchange does not follow redirects; configure the final token endpoint.search_collectionsqueries all configured servers in parallel, merging results with source attributionget_module_doc/get_role_docGalaxy fallback tries servers in priority orderPublic Galaxy is appended as a final fallback; opt out with
ANSIBLE_KNOW_NO_PUBLIC_GALAXY=1Per-server env var overrides:
ANSIBLE_GALAXY_SERVER_{NAME}_{KEY}(matches ansible-core behavior)View configured servers via the
galaxy://serversresource
Red Hat product documentation
fetch_doc for docs.redhat.com URLs fetches the page directly over
unauthenticated public HTTP and converts the HTML to Markdown. The
deprecated nested MCP client (and the ANSIBLE_KNOW_REDHAT_DOCS_MCP_URL
override) were removed in #301 — the GA Red Hat Documentation MCP
endpoint requires OAuth, which the nested client never sent.
Behavior:
Public-HTML fetch — an unauthenticated HTTP fetch of the
docs.redhat.compage, converted from HTML to Markdown, with soft-404 detection and/html/URL rewriting. This path usually works, but it is not guaranteed: the site's CDN (Akamai) rejects some runtimes (datacenter/filtered egress, non-browser TLS fingerprints), and HTML conversion can lose fidelity versus native Markdown (largehtml-singlebooks in particular).Actionable failure — if public retrieval fails, the error explains the cause (HTTP status or exception type — never raw upstream text or credentials) and shows how to connect the GA server directly.
search_docs with the aap-2.5 / aap-2.6 / aap-2.7 sources searches
shipped local manifests — they never touch the network and are unaffected.
Other sources (ansible-core, ansible-lint, navigator, builder, creator,
molecule, cop-good-practices) are also unaffected. Domain-style source names
such as source="docs.redhat.com" are not built-in; use docs://sources to
list valid keys.
Recommended: connect the GA MCP server directly
For full fidelity (native Markdown, Red-Hat-maintained prompt-injection hardening), connect the GA MCP server in your AI client once. It uses Streamable HTTP with browser-based Red Hat SSO; your client handles sign-in and token refresh, and credentials are stored by the client — no token env vars, exports, or pasting.
Important: connecting the GA server creates separate tools
(redhat_docs_search / redhat_docs_fetch). It does not reroute
ansible-know's fetch_doc automatically; ask your agent to use the GA
server's fetch tool for Red Hat pages.
OpenCode:
opencode mcp add red-hat-documentation --url https://docs-mcp.api.redhat.com/mcpRemote servers use OAuth by default and require an absolute URL. Run
opencode mcp list to check the connection; if it shows needs
authentication, open OpenCode, run /mcps, select the server, and sign in
(or run opencode mcp auth red-hat-documentation).
Claude Code:
claude mcp add --transport http --scope user red-hat-documentation \
https://docs-mcp.api.redhat.com/mcp
claude mcp list # verify; first use opens a Red Hat SSO browser windowCodex (~/.codex/config.toml; auth = "oauth" is the default):
[mcp_servers.red-hat-documentation]
url = "https://docs-mcp.api.redhat.com/mcp"
scopes = ["offline_access", "api.graphql"]Then authenticate inside a session with /mcp login red-hat-documentation
(Codex CLI ≥ 0.161.0), or run codex mcp login red-hat-documentation from a
terminal.
Cursor (Cursor Settings → Tools & MCP → Add Custom MCP → mcp.json):
{
"mcpServers": {
"red-hat-documentation": {
"type": "streamable-http",
"url": "https://docs-mcp.api.redhat.com/mcp"
}
}
}VS Code: tools palette → MCP: Add Server… → HTTP (HTTP or
Server-Sent Events) → enter the URL below as the Server URL and
red-hat-documentation as the Server ID. VS Code generates an editor-managed
mcp.json (workspace .vscode/mcp.json, or the user-profile file via
MCP: Open User Configuration) with a different shape than Cursor — note
"servers" and "type": "http":
{
"servers": {
"red-hat-documentation": {
"type": "http",
"url": "https://docs-mcp.api.redhat.com/mcp"
}
}
}Authoritative setup guides (per-client procedures, configuration schemas, and SSO behavior): Red Hat Documentation MCP server — Get started, OpenCode MCP servers, and VS Code MCP configuration reference.
Caveats: whether the GA server returns token counts comparable to ansible-know's
max_tokens gating has not been established. The GA server's fetch tool is
for ad-hoc page retrieval in your AI client — it is not part of the
manifest rebuild: per the pinned decision
(docs/superpowers/specs/2026-12-03-aap-manifest-rebuild-decision.md),
scripts/build_aap_manifests.py regenerates the shipped AAP manifests from
browser-saved landing pages (save each AAP landing page signed-out with
"Save Page As", then pass the saved HTML files to the script).
Removal note (#301)
0.14.0: the nested MCP client was deprecated; the public-HTTP fetch and GA-server guidance error shipped.
Now: the nested client,
SharedState.redhat_client, and theANSIBLE_KNOW_REDHAT_DOCS_MCP_URLoverride are removed. Setting the environment variable logs a one-release warning instead of being honored.fetch_dockeeps the public-HTTP fetch plus the GA-server guidance error permanently.
Configuration
Environment Variable | Description | Default |
| Explicit skills directory for writes / single-path reads (wins over project-dir chain) | (not set) |
| Colon-separated skills dirs for | (not set) |
| Project root; skills go to | (not set) |
| Same as project dir when set by Claude Code | (not set) |
(skills fallback) | If none of the above are set |
|
| JSON dict of doc manifest sources | Built-in ansible-core source |
| Galaxy API base URL |
|
| Set to | (not set) |
| Set to | (not set) |
| Removed (was the nested MCP client endpoint; the client was removed in #301). Setting it logs a one-release deprecation warning and has no effect | — |
Upgrading
Method | Command |
|
|
|
|
Claude Code |
|
VS Code / Cursor |
|
Local dev |
|
Note:
uvxcaches the installed version and does not auto-upgrade on new releases. To always run the latest version (at the cost of slower startup):claude mcp add ansible-know -- uvx --upgrade ansible-know-mcp
Deployment
Hugging Face Spaces
Deploy as a remote MCP server on Hugging Face Spaces:
Create a new Space with SDK: Docker
The Space's
README.mdmust include YAML frontmatter:--- title: Ansible Know MCP emoji: "\U0001F4DA" sdk: docker app_port: 7860 ---Push this repository (or set it as the Space's linked repo)
The included
Dockerfilebuilds and starts the server automatically
Note: Free-tier Spaces sleep after inactivity. MCP clients will see connection errors until the Space wakes up (~30-60s cold start). Use a paid Space or a keep-alive ping for production use.
Custom domain (optional):
In the Space settings, go to Custom domains
Add your domain (e.g.,
know.ansible.ar)Create a CNAME record pointing to
<owner>-<space-name>.hf.spaceHF provisions a TLS certificate automatically
Environment variables (set in Space settings):
Variable | Required | Description |
| No | Defaults to |
| No | Set to |
Generic Docker
The Dockerfile works with any container platform (Fly.io, Railway, Cloud Run, etc.):
docker build -t ansible-know-mcp .
docker run -p 8080:7860 ansible-know-mcpOverride defaults with environment variables:
docker run -p 9090:9090 \
-e ANSIBLE_KNOW_PORT=9090 \
ansible-know-mcpContributing
See CONTRIBUTING.md for development setup, testing, architecture guidelines, and how to add new MCP tools.
Acknowledgments
The skill generation approach in this project was inspired by AnsibleClaw by Michael Tao — a skill generation framework that converts Ansible modules into portable AI agent skill packages.
License
GPL-3.0-or-later
Available Tools
22 toolsclear_cacheClear CacheAIdempotent
Clear server caches.
Clears Galaxy version/docs-blob caches, standalone-role v1 caches, collection-search and collection-detail caches, doc manifest/page caches, or both. Useful when cached data becomes stale during long-running sessions.
Inputs: scope. Returns: result
ensure_collectionEnsure CollectionAIdempotent
Install a collection to a temporary directory for this session.
Installs once and pins the resolved version. Subsequent calls with the same namespace skip unless a different version is explicitly requested. If a different version is requested than currently installed, the collection will be reinstalled.
Returns dict with keys:
namespace: str — the collection namespace
version: str — the installed/active version (always set)
status: 'installed' (freshly installed or upgraded) or 'already_installed' (same version already present, no action taken)
message: str — human-readable summary including the active version
handle: str — opaque session handle; pass it as collection_handle to subsequent tool calls on remote connections On failure returns {"error": str}.
Pass collection_handle when re-invoking ensure_collection on a remote connection with a handle obtained from a prior call (e.g. to install an additional collection into the same session). Omit it on local stdio, or on remote when you want a brand-new session handle minted.
Inputs: collection_namespace (required), version, collection_handle. Returns: result
fetch_docFetch DocARead-only
Fetch a docs page as clean Markdown.
Returns documentation content ready for LLM consumption. Use search_docs to discover relevant page URLs. Accepts docs.ansible.com, docs.redhat.com, or CoP good-practices raw GitHub README.adoc URLs from search_docs hits (not arbitrary raw.githubusercontent.com hosts).
docs.redhat.com URLs are fetched over unauthenticated public HTTP
(HTML → markdown, soft-404 detection, /html/ rewriting). When public
retrieval fails (bot protection, HTTP errors, not-found pages), the
error explains how to connect the GA Red Hat Documentation MCP server
(https://docs-mcp.api.redhat.com/mcp) directly in your AI client.
search_docs with the aap-2.5/aap-2.6/aap-2.7 sources uses
shipped local manifests and is unaffected.
Inputs: url (required), max_tokens. Returns: result
generate_collection_skillsGenerate Collection SkillsAIdempotent
Batch generate skills for an entire collection.
Generates/updates the collection MANIFEST.json as a byproduct. Updates AGENTS.md in the project root with a managed section listing available collections for cross-agent discovery. Returns {"succeeded": int, "failed": int, "total": int, "manifest": dict, "collection_skill": str}, or {"error": str} on failure.
Module/plugin docs use batched ansible-doc calls. Names missing from a
batch (or a hard batch failure) are counted in failed; partial batch
success still writes skills for resolved names.
Inputs: collection_namespace (required), install_to, collection_handle. Returns: result
generate_plugin_skillGenerate Plugin SkillAIdempotent
Generate a skill package for one plugin.
Writes SKILL.md to disk (no scripts/ or assets/). Returns the SKILL.md content as str, or {"error": str} on failure.
Inputs: plugin_name (required), plugin_type (required), install_to, collection_handle. Returns: result
generate_role_skillGenerate Role SkillAIdempotent
Generate a skill package for one role.
Writes SKILL.md + assets/playbook.yml to disk (no scripts/). Returns the SKILL.md content as str, or {"error": str} on failure.
Inputs: role_name (required), install_to, collection_handle. Returns: result
generate_skillGenerate SkillAIdempotent
Generate a skill package for one module.
Writes SKILL.md + scripts + playbook to disk. Returns the SKILL.md content as str, or {"error": str} on failure.
Inputs: module_name (required), install_to, collection_handle. Returns: result
get_collection_docsGet Collection DocsARead-only
Get full parameter-level documentation for every module in a collection from Galaxy.
WARNING: output can be very large (100 KB+) for collections with many modules. Use get_collection_manifest first for a compact overview, then get_module_doc for the specific modules you need. Reserve this tool for batch operations that genuinely need all parameter details at once (e.g. skill generation).
Returns all module docs in a single API call without installing the collection. Result shape: {"modules": {fqcn: {module_name, short_description, params, examples, is_api_module}, ...}, "doc_source": "galaxy", "doc_version": str}. On failure returns {"error": str}.
Inputs: collection_namespace (required), version, collection_handle. Returns: result
get_collection_manifestGet Collection ManifestARead-only
Get a lightweight collection overview: module/role/plugin names with one-line descriptions.
Prefer this over get_collection_docs when exploring a collection — it returns a compact summary suitable for deciding which modules to drill into with get_module_doc.
Computes a fresh overview without reading or writing project MANIFEST.json files (metadata extraction only, no skill generation or cache persistence). Explicit skill-generation tools still persist their own manifests. On failure returns {"error": str}.
Module docs are fetched in batched ansible-doc calls. If the entire batch fails hard, the overview contains zero module entries (roles/plugins from list discovery are still included when present).
Inputs: collection_namespace (required), collection_handle. Returns: result
get_module_docGet Module DocARead-only
Get full structured documentation for one module.
Returns: module_name, short_description, params (list with name/type/required/default/choices/description/aliases), examples (raw YAML), is_api_module, doc_source ('local' or 'galaxy'). When doc_source is 'galaxy', also includes doc_version and optionally doc_warning. Falls back to Galaxy if collection is not installed locally. On failure returns {"error": str}.
Inputs: module_name (required), collection_handle. Returns: result
get_plugin_docGet Plugin DocARead-only
Get full structured documentation for one plugin.
Returns: plugin_name, plugin_type, short_description, params, examples, doc_source ('local' or 'galaxy'). Falls back to Galaxy if collection is not installed locally. On failure returns {"error": str}.
Inputs: plugin_name (required), plugin_type (required), collection_handle. Returns: result
get_role_docGet Role DocBRead-only
Get full structured documentation for one role.
Returns: role_name, content_type ('role'), short_description, doc_source ('local', 'galaxy_readme', or 'unavailable'), entry_points (dict of entry point names to {description, options}), dependencies (list), examples (str). When doc_source is 'galaxy_readme', also includes doc_version and doc_warning. Falls back to Galaxy README parsing if local ansible-doc returns empty. On validation failure returns {"error": str}.
Inputs: role_name (required), collection_handle. Returns: result
get_skillGet SkillARead-only
Read a specific skill's SKILL.md content by name.
Searches ANSIBLE_KNOW_SKILLS_PATH (colon-separated) when set, otherwise
the single SKILLS_DIR. First match wins.
Returns: SKILL.md content as str, or {"error": str} on failure/not found.
Inputs: skill_name (required). Returns: result
get_standalone_role_docGet Standalone Role DocARead-only
Get standalone role documentation for a 2-part namespace.role identifier.
Use this for standalone roles discovered with search_standalone_roles. This tool does not replace get_role_doc for collection roles.
Inputs: role_name (required). Returns: result
list_skillsList SkillsARead-only
List all available generated skills. Returns name, description, path for each.
Searches ANSIBLE_KNOW_SKILLS_PATH (colon-separated) when set, otherwise
the single SKILLS_DIR. Duplicate names keep the first path's entry.
Returns: [{"name": str, "description": str, "path": str}, ...] or {"error": str} on failure.
Inputs: collection. Returns: result
package_as_pluginPackage As PluginADestructiveIdempotent
Wrap already-generated skills into an Agent Plugins directory.
Does not change generate_* output layout. Copies
skills/{collection-kebab}/{skill}/ into
{output_dir}/{plugin}/skills/{skill}/ and writes plugin.json
(and optionally mcp.json + .tar.gz) per the Agent Plugins
specification. Replaces any existing skills/ tree under the target
plugin directory (destructive but idempotent).
Returns: {"collection", "plugin_name", "plugin_dir", "skill_count", "skills", "plugin_json", "mcp_json", "archive"} or {"error": str} on failure.
Inputs: collection (required), output_dir (required), mcp_url, source_dir, +5 more. Returns: result
package_for_lolaPackage For LolaADestructiveIdempotent
Wrap already-generated skills into a Lola-compatible module directory.
.. deprecated::
Prefer :func:package_as_plugin (Agent Plugins). Kept for one release
cycle for backward compatibility.
Does not change generate_* output layout. Copies
skills/{collection-kebab}/{skill}/ into
{output_dir}/{module}/skills/{skill}/ for marketplace /
lola mod add use. Replaces any existing skills/ tree under the
target module directory (destructive but idempotent).
Returns: {"collection", "module_name", "module_dir", "skill_count", "skills", "market_yml"} or {"error": str} on failure.
Inputs: collection (required), output_dir (required), source_dir, module_name, +1 more. Returns: result
search_collectionsSearch CollectionsARead-only
Search Ansible Galaxy for collections by keyword.
Returns non-deprecated collections ranked by download count. Use this to discover which collection provides modules for a specific platform or use case.
After finding a collection, use ensure_collection() to install it, then get_module_doc() or get_collection_manifest() to explore its modules.
Returns: {"query": str, "count": int, "collections": [{"namespace": str, "description": str, "tags": [str], "latest_version": str, "module_count": int, "download_count": int, "deprecated": bool, "signed": bool}, ...]} On failure returns {"error": str}.
Inputs: query (required), tags. Returns: result
search_docsSearch DocsARead-only
Search documentation manifests for conceptual guides.
Returns up to 20 matching entries with title, summary, topic, audience, lines, source, and raw URL. On failure returns {"error": str}.
Multi-word queries first match entries containing every word (AND); if nothing matches exactly, a relaxed pass returns ranked partial matches (ranked by how many words hit the title, summary, and topics) instead of returning empty (#291).
Choose source by corpus:
ansible-core (or omit): official HOWTO — playbooks, vault, inventory syntax
ansible-lint: rules and profiles
ansible-navigator / ansible-builder / ansible-creator / molecule: matching source
aap-2.5 / aap-2.6 / aap-2.7: AAP product manuals
cop-good-practices: CoP opinionated practices (role design, naming, CaC, Git, testing process). Users often say "best practices"; do not invent cop-best-practices. Unfiltered search fills the 20-hit window with official + AAP first; CoP may be absent — retry with source='cop-good-practices' for CoP-shaped questions.
Inputs: query (required), topic, source, audience, +1 more. Returns: result
search_modulesSearch ModulesARead-only
Find Ansible modules by keyword in name or description. Returns up to 50 matches as {fqcn: short_description}.
Multi-word queries use AND semantics (every word must match somewhere in the name or description); results are ranked deterministically with stronger name matches first.
Returns: {"module.fqcn": "short description", ...} or {"error": str} on failure.
Inputs: keyword (required), namespace, collection_handle. Returns: result
search_pluginsSearch PluginsARead-only
Find Ansible plugins by keyword. Returns up to 50 matches as {fqcn: short_description}.
Multi-word queries use AND semantics (every word must match somewhere in the name or description), same as search_modules.
Plugin types: lookup, filter, test, connection, become, strategy, callback, inventory, cache, cliconf, httpapi, netconf, shell, vars. On failure returns {"error": str}.
Inputs: keyword (required), namespace, plugin_type, collection_handle. Returns: result
search_standalone_rolesSearch Standalone RolesARead-only
Search Galaxy standalone/legacy roles by keyword.
This targets standalone (2-part) roles. Collection roles use search_collections/get_role_doc. tags accepts a single Galaxy tag; if comma-separated values are provided, only the first segment is sent.
If public Galaxy is disabled and no configured server supports v1 role endpoints, expect a v1-unsupported error.
Inputs: query (required), tags. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Tools are grouped cleanly by resource type (modules, plugins, roles, collections, docs, skills) and descriptions explicitly clarify boundaries, e.g. get_standalone_role_doc vs get_role_doc and get_collection_manifest vs get_collection_docs. The main confusion risk is package_as_plugin vs the deprecated package_for_lola, and the search_* vs get_* pairs, but descriptions largely resolve these.
Every tool uses a consistent snake_case verb_noun pattern (search_modules, get_module_doc, generate_skill, ensure_collection, clear_cache). Minor variants like package_as_plugin/package_for_lola still follow the same readable convention.
22 tools is on the heavy side, but the domain legitimately spans modules, plugins, roles, standalone roles, collections, docs, skill generation, and packaging, so most tools earn their place. One deprecated packaging tool (package_for_lola) is dead weight that could be removed.
The surface covers discovery, documentation retrieval, skill generation, packaging, collection installation, and cache clearing—a full knowledge/lifecycle workflow. Minor gaps exist, such as no skill deletion/update or cache inspection, but core workflows are complete.
Maintenance
Related MCP Connectors
Agent skills for Claude, Codex and Cursor: find, install and load skills from one connector.
Git-backed platform for skills, tools, and context for AI agents
Governed AI agent skills — one library, distributed to devs and exposed to remote agents over MCP.
The context platform for AI agents: code search, team decisions, and grounded project context.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI agents to access, search, and understand structured package documentation and source code from Git repositories. It automatically generates specialized tools to browse module overviews, components, and detailed documentation for technical libraries.110 npm8MIT
- AlicenseAqualityDmaintenanceIntegrates with the skills.sh ecosystem to allow AI coding agents to discover, install, and manage reusable instruction sets. It enables autonomous agents to extend their capabilities with structured skill discovery and full lifecycle management through the Model Context Protocol.622 npm1Apache 2.0
- AlicenseAqualityCmaintenanceCombines semantic search with AST-based code exploration for AI agents, enabling natural language code search, file structure browsing, symbol inspection, and dependency analysis through the Model Context Protocol.304MIT
- FlicenseNot gradedqualityDmaintenanceEquips AI coding agents with filesystem, Git, database, and computation tools via the Model Context Protocol.1-