ansible-galaxy-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Log verbosity: debug, info, warn, error | info |
| MCP_HTTP_HOST | No | HTTP bind address | :: |
| MCP_HTTP_PORT | No | HTTP listen port | 8080 |
| MCP_TRANSPORT | No | Transport: stdio or http | stdio |
| ANSIBLE_HUB_URL | No | Private Automation Hub URL (used with chain source) | |
| ANSIBLE_GALAXY_URL | No | Galaxy API base URL | https://galaxy.ansible.com |
| ANSIBLE_ROLES_PATH | No | Local roles directory | ./roles |
| ANSIBLE_SOURCE_TYPE | No | Data source: galaxy, local, or chain | galaxy |
| ANSIBLE_GALAXY_TOKEN | No | Bearer token for authenticated Galaxy/Hub API access | |
| ANSIBLE_OUTPUT_SPECS | No | Enable proposed output_specs features | false |
| ANSIBLE_GALAXY_TIMEOUT | No | HTTP request timeout in milliseconds | 30000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_collectionsA | Search for Ansible collections by keyword. Returns collection names, descriptions, and versions. |
| get_collection_modulesB | List all modules in a collection with their descriptions. |
| get_collection_rolesA | List all roles in a collection with their descriptions. |
| get_module_specA | Get the full input/output contract for a module. Returns argument_spec (inputs) and RETURN docstring (outputs) with a documentation quality grade. |
| get_role_specA | Get the full input/output contract for a role. Returns argument_specs.yml (inputs) and output_specs.yml (outputs) with a documentation quality grade. Call this for EACH role before generating a playbook to discover the exact fact names the role sets. |
| grade_collectionA | Grade a collection on documentation quality. Returns A-F grade based on module RETURN documentation. With ANSIBLE_OUTPUT_SPECS=true, also checks whether roles have output_specs.yml. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/fabiendupont/mcp-ansible-galaxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server