AAP MCP Server
Provides tools for managing Ansible Automation Platform resources including organizations, users, projects, inventories, credentials, job templates, workflows, schedules, and more, enabling AI agents to interact with AAP for automation tasks.
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., "@AAP MCP Server Launch the 'Deploy App' job template"
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.
AAP MCP Server
Enterprise-grade MCP (Model Context Protocol) server that exposes Ansible Automation Platform (AAP) 2.x as a complete AI interface for LLMs — Claude, ChatGPT, Cursor, Continue, OpenCode, and any MCP-compatible client.
Features
Category | Tools |
Organizations | list, get, create, update, delete |
Users & Teams | list, create, assign/revoke roles, team membership |
Projects | list, get, create, update, delete, sync, sync-status |
Inventories | list, create, update, delete + hosts + groups |
Credentials | list, get, create, update, delete + credential types |
Execution Environments | list, create, update, delete |
Job Templates | list, get, create, update, delete, copy, launch, relaunch, cancel |
Workflows | list, get, create, update, delete, launch, status |
Schedules | list, create, update, delete |
Automation Hub | list collections |
Platform Admin | controller health, cluster status, license info, instances |
Monitoring | job output, job events, failed jobs, running jobs, activity stream, audit logs |
Config-as-Code | export project/inventory/job-template/workflow/all as YAML |
Total: 60+ tools
Related MCP server: ansible-galaxy-mcp
Quick Start
1. Clone & Configure
git clone https://github.com/your-org/aap-mcp-server
cd aap-mcp-server
cp .env.example .env
# Edit .env with your AAP Controller URL and OAuth token2. Run locally (stdio mode for Claude Desktop/local client)
pip install -r requirements.txt
python -m src.server3. Run as Remote HTTP Server (exposes a network port)
MCP_TRANSPORT=streamable-http MCP_PORT=8000 python -m src.server4. Deploy to OpenShift
# Build with Podman
podman build -f Containerfile -t quay.io/your-org/aap-mcp-server:latest .
podman push quay.io/your-org/aap-mcp-server:latest
# Deploy via Helm
helm upgrade --install aap-mcp helm/aap-mcp/ \
--namespace aap-mcp \
--create-namespace \
--set aap.controllerUrl=https://controller.example.com \
--set aap.oauthToken=your_token \
--set route.enabled=trueClaude Desktop / MCP Client Configuration
Option A: Local Python (stdio)
Add to ~/.config/claude/claude_desktop_config.json or your MCP client settings:
{
"mcpServers": {
"aap": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/aap-mcp-server",
"env": {
"AAP_CONTROLLER_URL": "https://your-controller.example.com",
"AAP_OAUTH_TOKEN": "your_token_here",
"AAP_VERIFY_SSL": "false",
"AAP_API_BASE_PATH": "/api/controller/v2",
"MCP_TRANSPORT": "stdio"
}
}
}
}Option B: Docker Container (stdio)
Run the server inside a Docker container using stdio transport:
{
"mcpServers": {
"aap-docker-stdio": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env", "AAP_CONTROLLER_URL",
"--env", "AAP_VERIFY_SSL",
"--env", "AAP_API_BASE_PATH",
"--env", "AAP_OAUTH_TOKEN",
"--env", "MCP_TRANSPORT=stdio",
"aap-mcp-server:latest"
],
"env": {
"AAP_CONTROLLER_URL": "https://your-controller.example.com",
"AAP_VERIFY_SSL": "false",
"AAP_API_BASE_PATH": "/api/controller/v2",
"AAP_OAUTH_TOKEN": "your_token_here"
}
}
}
}Option C: Remote HTTP / SSE Server (Docker)
Run the server as a background service exposing port 8000:
docker run -d --name aap-mcp-server-container -p 8000:8000 \
-e AAP_CONTROLLER_URL="https://your-controller.example.com" \
-e AAP_OAUTH_TOKEN="your_token_here" \
-e AAP_VERIFY_SSL="false" \
-e AAP_API_BASE_PATH="/api/controller/v2" \
-e MCP_TRANSPORT="streamable-http" \
-e MCP_PORT="8000" \
-e MCP_HOST="0.0.0.0" \
aap-mcp-server:latestThen configure your MCP client (like Cursor or remote Claude clients) to connect to the HTTP endpoint:
Endpoint URL:
http://<your-host-ip>:8000/mcp
Natural Language Examples
Once connected, try:
"Create a new project called redis-automation from GitHub at https://github.com/myorg/redis-playbooks"
"Launch the Redis production workflow"
"Show failed jobs from the last 24 hours"
"Create an inventory called AWS-Production in the Default organization"
"Add host web01.example.com to the Production inventory"
"Create a job template for Apache installation using the web-playbooks project"
"Export all job templates as code"
"Show cluster health"
"List users with admin privileges"
Security & Settings
OAuth tokens preferred over username/password.
Read-only mode: set
AAP_MCP_READ_ONLY_MODE=trueto block all mutations.Confirmation workflow: destructive operations (delete/cancel) require a two-step confirmation token.
Audit logging: all tool calls logged to structured JSONL with secrets masked.
Rate limiting: configurable token-bucket limiter to avoid AAP API overload.
RBAC: all operations respect the authenticated AAP user's permissions.
API Base Path: set
AAP_API_BASE_PATH(e.g./api/controller/v2) if your controller API is mounted on a non-standard base path (default:/api/v2).
Architecture
MCP Client (Claude/Cursor/etc)
│
│ MCP Protocol (stdio or streamable HTTP)
▼
aap-mcp-server (FastMCP)
├── tools/ # 60+ tool implementations
├── resources/ # URI-addressable AAP data + API mapping
├── prompts/ # Pre-built operational workflow prompts
└── utils/
├── api_client.py # Shared HTTP client, pagination, rate limiting
├── auth.py # OAuth token management
├── audit.py # Structured audit logging
└── config.py # Pydantic settings from env vars
│
│ HTTPS REST API (/api/v2/)
▼
Ansible Automation Platform ControllerDevelopment
# Install dev dependencies
pip install -r requirements.txt -r requirements-dev.txt
# Run tests
pytest tests/unit/ -v
# Run integration tests (requires live AAP)
AAP_CONTROLLER_URL=https://... AAP_OAUTH_TOKEN=... pytest tests/integration/
# Lint
ruff check src/
black src/API → Tool Mapping
See the aap://api-map MCP resource for the complete mapping, or query it:
"Show me the API mapping for all tools"
Available Tools
86 toolsaap_add_host_to_groupA
Add an existing host to a group within an inventory.
Args: params (AddHostToGroupInput): - group_id (int): Target group ID - host_id (int): Host ID to add
Returns: str: JSON confirmation.
Inputs: params (required). Returns: result
aap_add_user_to_teamA
Add a user to an AAP team.
Args: params (AddUserToTeamInput): - team_id (int): Team ID - user_id (int): User ID to add
Returns: str: JSON confirmation.
Inputs: params (required). Returns: result
aap_assign_roleA
Assign an RBAC role to an AAP user.
Args: params (AssignRoleInput): - user_id (int): User ID - role_id (int): Role ID (from /api/v2/roles/ or resource role lists)
Returns: str: JSON confirmation.
Inputs: params (required). Returns: result
aap_cancel_jobADestructive
Cancel a running AAP job. Requires confirmation.
Args: params (CancelJobInput): - job_id (int): Job ID to cancel - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation prompt or success JSON.
Inputs: params (required). Returns: result
aap_copy_job_templateA
Copy an existing job template with a new name.
Args: params (CopyJTInput): - template_id (int): Source template ID - name (str): Name for the copy
Returns: str: JSON with new template id and name.
Inputs: params (required). Returns: result
aap_create_credentialA
Create a new AAP credential.
Use aap_list_credential_types first to find the correct type ID and understand required inputs schema for that type.
Args: params (CreateCredInput): - name (str): Credential name - credential_type_id (int): Type ID - inputs (dict): Type-specific inputs (username, password, ssh_key_data, etc.) - organization_id (Optional[int]): Owner org - description (str): Optional description
Returns: str: JSON with created credential id and name.
Inputs: params (required). Returns: result
aap_create_credential_typeA
Create a custom AAP credential type with custom fields and injectors.
Args: params (CreateCredTypeInput): - name (str): Type name - kind (str): 'cloud', 'net', or 'ssh' - inputs (dict): Field schema definition - injectors (dict): Environment/extra_vars injection mapping
Returns: str: JSON with created credential type id and name.
Inputs: params (required). Returns: result
aap_create_execution_environmentA
Create an AAP execution environment referencing a container image.
Args: params (CreateEEInput): EE configuration.
Returns: str: JSON with created EE id and name.
Inputs: params (required). Returns: result
aap_create_groupA
Create a host group inside an AAP inventory.
Args: params (CreateGroupInput): Group configuration.
Returns: str: JSON with created group id and name.
Inputs: params (required). Returns: result
aap_create_hostB
Add a host to an AAP inventory.
Example: "Add host web01.example.com to the Production inventory"
Args: params (CreateHostInput): Host configuration.
Returns: str: JSON with created host id and name.
Inputs: params (required). Returns: result
aap_create_inventoryA
Create a new AAP inventory.
Example: "Create an inventory called AWS-Production"
Args: params (CreateInventoryInput): Inventory configuration.
Returns: str: JSON with created inventory id and name.
Inputs: params (required). Returns: result
aap_create_job_templateA
Create a new AAP job template.
Example: Create a job template for Apache installation using a project and inventory, with become enabled and check mode disabled.
Args: params (CreateJTInput): Template configuration. See field descriptions.
Returns: str: JSON with created template id, name, and launch URL.
Inputs: params (required). Returns: result
aap_create_organizationA
Create a new organization in Ansible Automation Platform.
Args: params (CreateOrgInput): - name (str): Organization name - description (str): Optional description - max_hosts (int): Max hosts (0 = unlimited)
Returns: str: JSON with created organization details including id.
Inputs: params (required). Returns: result
aap_create_projectA
Create a new AAP project from a Git/SCM repository.
Example: "Create a new project called redis-automation from GitHub"
Args: params (CreateProjectInput): Project configuration.
Returns: str: JSON with created project id, name, and initial status.
Inputs: params (required). Returns: result
aap_create_scheduleB
Create a schedule for an AAP job template or workflow.
Args: params (CreateScheduleInput): - name (str): Schedule name - unified_job_template_id (int): Template ID to schedule - rrule (str): RFC 5545 recurrence rule string - enabled (bool): Activate the schedule immediately - extra_vars (str): Variables for each scheduled run
Returns: str: JSON with created schedule id, name, and next_run.
Inputs: params (required). Returns: result
aap_create_teamA
Create a new AAP team within an organization.
Args: params (CreateTeamInput): Team name, organization_id, description.
Returns: str: JSON with created team id and name.
Inputs: params (required). Returns: result
aap_create_userA
Create a new AAP user.
Args: params (CreateUserInput): User details.
Returns: str: JSON with created user id and username.
Inputs: params (required). Returns: result
aap_create_workflow_templateA
Create a new AAP workflow template.
Example: "Create a workflow that provisions EC2 and configures Apache" Note: After creation, use the AAP UI or API to add workflow nodes.
Args: params (CreateWFTInput): Workflow template configuration.
Returns: str: JSON with created workflow id and name.
Inputs: params (required). Returns: result
aap_delete_credentialADestructive
Delete an AAP credential. DESTRUCTIVE - requires confirmation.
Args: params (DeleteCredInput): - credential_id (int): Credential ID - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation prompt or success JSON.
Inputs: params (required). Returns: result
aap_delete_execution_environmentADestructive
Delete an AAP execution environment. DESTRUCTIVE - requires confirmation.
Inputs: params (required). Returns: result
aap_delete_groupADestructive
Delete a host group from an AAP inventory. DESTRUCTIVE - requires confirmation.
Args: params (DeleteGroupInput): - group_id (int): Group ID - confirmation_token (Optional[str]): Token from first call
Inputs: params (required). Returns: result
aap_delete_hostADestructive
Delete a host from an AAP inventory. DESTRUCTIVE - requires confirmation.
Args: params (DeleteHostInput): - host_id (int): Host ID - confirmation_token (Optional[str]): Token from first call
Inputs: params (required). Returns: result
aap_delete_inventoryADestructive
Delete an AAP inventory. DESTRUCTIVE - requires confirmation.
Args: params (DeleteInventoryInput): - inventory_id (int): Inventory ID - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation prompt or success JSON.
Inputs: params (required). Returns: result
aap_delete_job_templateADestructive
Delete an AAP job template. DESTRUCTIVE - requires confirmation.
Args: params (DeleteJTInput): - template_id (int): Template ID to delete - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation prompt or success JSON.
Inputs: params (required). Returns: result
aap_delete_organizationADestructive
Delete an AAP organization. DESTRUCTIVE - requires confirmation token.
Call once without confirmation_token to get a token, then call again with the token to confirm deletion.
Args: params (DeleteOrgInput): - org_id (int): Organization ID - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation request message, or success/error JSON.
Inputs: params (required). Returns: result
aap_delete_projectADestructive
Delete an AAP project. DESTRUCTIVE - requires confirmation.
Args: params (DeleteProjectInput): - project_id (int): Project ID - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation prompt or success JSON.
Inputs: params (required). Returns: result
aap_delete_scheduleADestructive
Delete an AAP schedule. DESTRUCTIVE - requires confirmation.
Args: params (DeleteScheduleInput): - schedule_id (int): Schedule ID - confirmation_token (Optional[str]): Token from first call
Inputs: params (required). Returns: result
aap_delete_teamADestructive
Delete an AAP team. DESTRUCTIVE - requires confirmation.
Args: params (DeleteTeamInput): - team_id (int): Team ID - confirmation_token (Optional[str]): Token from first call
Inputs: params (required). Returns: result
aap_delete_userADestructive
Delete an AAP user. DESTRUCTIVE - requires confirmation.
Args: params (DeleteUserInput): - user_id (int): User ID - confirmation_token (Optional[str]): Token from first call
Inputs: params (required). Returns: result
aap_delete_workflow_templateADestructive
Delete an AAP workflow template. DESTRUCTIVE - requires confirmation.
Args: params (DeleteWFTInput): - workflow_id (int): Workflow template ID - confirmation_token (Optional[str]): Token from first call
Returns: str: Confirmation prompt or success JSON.
Inputs: params (required). Returns: result
aap_export_all_resourcesARead-only
Export all AAP resources (projects, inventories, job templates, workflows) as Configuration-as-Code.
Example: "Export all job templates as code"
This produces a single YAML document compatible with the infra.aap_configuration Ansible collection.
Args: params (ExportAllInput): - organization_id (Optional[int]): Scope exports to one org - format (str): 'yaml' or 'json'
Returns: str: Combined YAML/JSON export of all resources.
Inputs: params (required). Returns: result
aap_export_inventoryARead-only
Export an AAP inventory as Configuration-as-Code YAML.
Args: params (ExportInventoryInput): - inventory_id (int): Inventory ID - include_hosts (bool): Include host entries - format (str): 'yaml' or 'json'
Returns: str: YAML for infra.aap_configuration.controller_inventories.
Inputs: params (required). Returns: result
aap_export_job_templateARead-only
Export a job template as Configuration-as-Code YAML.
Args: params (ExportJobTemplateInput): - template_id (int): Template ID - format (str): 'yaml' or 'json'
Returns: str: YAML compatible with infra.aap_configuration.controller_job_templates.
Inputs: params (required). Returns: result
aap_export_projectARead-only
Export an AAP project as Configuration-as-Code (infra.aap_configuration format).
Args: params (ExportProjectInput): - project_id (int): Project ID - format (str): 'yaml' or 'json'
Returns: str: YAML/JSON suitable for aap_configuration collection playbooks.
Inputs: params (required). Returns: result
aap_export_workflowARead-only
Export a workflow template as Configuration-as-Code YAML.
Args: params (ExportWorkflowInput): - workflow_id (int): Workflow template ID - format (str): 'yaml' or 'json'
Returns: str: YAML compatible with infra.aap_configuration.controller_workflows.
Inputs: params (required). Returns: result
aap_get_audit_logsARead-only
Get AAP audit logs (alias for activity stream with delete/create focus).
Args: params (GetAuditLogsInput): - limit (int): Number of log entries - username (Optional[str]): Filter by actor
Returns: str: JSON with audit log entries.
Inputs: params (required). Returns: result
aap_get_cluster_statusARead-only
Get AAP cluster node status, capacity, and health summary.
Returns: str: JSON with list of instances and their capacity/health.
Inputs: params (required). Returns: result
aap_get_controller_healthARead-only
Check AAP Controller health status (ping endpoint).
Returns: str: JSON with ha (bool), version, active_node, install_uuid, and instance statuses.
Inputs: params (required). Returns: result
aap_get_credentialARead-only
Get details of an AAP credential (secrets masked by AAP).
Args: params (GetCredInput): - credential_id (int): Credential ID
Returns: str: JSON with credential metadata. Secret fields shown as '$encrypted$'.
Inputs: params (required). Returns: result
aap_get_failed_jobsARead-only
List failed AAP jobs within the last N hours.
Example: "Show failed jobs from the last 24 hours"
Args: params (GetFailedJobsInput): - hours (int): Look-back window in hours (default 24) - limit (int): Max results (default 20) - job_template (Optional[str]): Filter by template name
Returns: str: JSON with list of failed jobs including id, name, started, finished, elapsed, and template name.
Inputs: params (required). Returns: result
aap_get_instance_capacityARead-only
Get capacity and workload details for a specific AAP controller node.
Args: params (GetInstanceInput): - instance_id (int): Instance ID
Returns: str: JSON with capacity, consumed capacity, running jobs.
Inputs: params (required). Returns: result
aap_get_job_eventsARead-only
Get structured events from an AAP job (tasks, roles, failures).
More granular than stdout - shows individual task results per host.
Args: params (GetJobEventsInput): - job_id (int): Job ID - event_type (Optional[str]): Filter by event type - page/page_size: Pagination
Returns: str: JSON with event list including host, task, result details.
Inputs: params (required). Returns: result
aap_get_job_outputARead-only
Fetch stdout/stderr output from an AAP job run.
Useful for troubleshooting failures or reviewing what a job did.
Args: params (GetJobOutputInput): - job_id (int): Job ID - format (str): 'txt' or 'json' - max_lines (int): Max output lines (default 200)
Returns: str: Job output text or JSON with status and truncated output.
Inputs: params (required). Returns: result
aap_get_job_templateARead-only
Get full details of an AAP job template.
Args: params (GetJTInput): - template_id (int): Job template ID
Returns: str: JSON with full template details including credentials, labels, survey spec, extra_vars, verbosity, become_enabled, etc.
Inputs: params (required). Returns: result
aap_get_license_infoARead-only
Get AAP subscription and license details.
Returns: str: JSON with license type, expiry, host count, and validity status.
Inputs: params (required). Returns: result
aap_get_organizationARead-onlyIdempotent
Get details of a specific AAP organization by ID.
Args: params (GetOrgInput): - org_id (int): Organization ID
Returns: str: JSON with organization details including id, name, description, max_hosts, custom_virtualenv, created, modified.
Inputs: params (required). Returns: result
aap_get_projectARead-only
Get full details of an AAP project.
Args: params (GetProjectInput): - project_id (int): Project ID
Returns: str: JSON with full project details.
Inputs: params (required). Returns: result
aap_get_project_sync_statusARead-only
Get the status of an ongoing or completed project SCM sync.
Args: params (GetSyncStatusInput): - update_id (int): Project update ID
Returns: str: JSON with status, elapsed time, and output preview.
Inputs: params (required). Returns: result
aap_get_recent_activityBRead-only
Get recent AAP activity stream (audit trail of changes).
Args: params (GetActivityInput): - limit (int): Number of events to return - operation (Optional[str]): Filter by CRUD operation - object_type (Optional[str]): Filter by resource type - username (Optional[str]): Filter by actor username
Returns: str: JSON with activity events.
Inputs: params (required). Returns: result
aap_get_userARead-only
Get details of a specific AAP user by ID.
Args: params (GetUserInput): - user_id (int): User ID
Returns: str: JSON with user details.
Inputs: params (required). Returns: result
aap_get_workflow_statusARead-only
Get status of a running or completed workflow job including node results.
Args: params (GetWorkflowStatusInput): - workflow_job_id (int): Workflow job ID
Returns: str: JSON with workflow status, elapsed time, and per-node results.
Inputs: params (required). Returns: result
aap_get_workflow_templateARead-only
Get full details of an AAP workflow template including node structure.
Args: params (GetWFTInput): - workflow_id (int): Workflow template ID
Returns: str: JSON with workflow details and node count.
Inputs: params (required). Returns: result
aap_launch_job_templateA
Launch an AAP job template and return the job ID.
Example: "Launch the Redis production workflow" or "Run the Apache installation template on web01.example.com"
Args: params (LaunchJTInput): - template_id (int): Job template ID - extra_vars (Optional[str]): Variables as JSON/YAML - inventory_id (Optional[int]): Override inventory - limit (Optional[str]): Host limit pattern - tags (Optional[str]): Ansible tags - skip_tags (Optional[str]): Tags to skip - verbosity (Optional[int]): Verbosity level - diff_mode (Optional[bool]): Show diffs
Returns: str: JSON with job id, status, url, and monitoring instructions.
Inputs: params (required). Returns: result
aap_launch_workflowA
Launch an AAP workflow template.
Example: "Launch the Redis production workflow"
Args: params (LaunchWorkflowInput): - workflow_id (int): Workflow template ID - extra_vars (Optional[str]): Variables to pass - limit (Optional[str]): Host limit
Returns: str: JSON with workflow job id, status, and monitoring tip.
Inputs: params (required). Returns: result
aap_list_collectionsARead-only
List Ansible collections in Automation Hub.
Note: Requires Automation Hub API access at /api/automation-hub/v3/
Args: params (ListCollectionsInput): Pagination and filter.
Returns: str: JSON with collection list.
Inputs: params (required). Returns: result
aap_list_credentialsARead-only
List AAP credentials. Secrets are never returned by the API.
Args: params (ListCredsInput): Pagination and filter options.
Returns: str: JSON with credential list (id, name, kind, type_name, organization). Note: secret fields are always masked by AAP.
Inputs: params (required). Returns: result
aap_list_credential_typesARead-only
List available AAP credential types (SSH, Vault, AWS, Azure, etc.).
Use the returned id when calling aap_create_credential.
Args: params (ListCredTypesInput): - managed (Optional[bool]): Filter built-in vs custom types
Returns: str: JSON with credential type list including id, name, kind, and injectors schema.
Inputs: params (required). Returns: result
aap_list_execution_environmentsARead-only
List AAP execution environments (container images for job execution).
Returns: str: JSON with EE list including id, name, image, and managed status.
Inputs: params (required). Returns: result
aap_list_hostsARead-only
List hosts in an AAP inventory.
Args: params (ListHostsInput): Pagination and filter options.
Returns: str: JSON with host list including id, name, inventory, enabled, variables.
Inputs: params (required). Returns: result
aap_list_instancesBRead-only
List all AAP controller and execution node instances.
Returns: str: JSON with list of instances.
Inputs: params (required). Returns: result
aap_list_inventoriesARead-only
List AAP inventories.
Args: params (ListInventoriesInput): Pagination and filter options.
Returns: str: JSON with count and inventory list (id, name, description, total_hosts, groups_with_active_failures).
Inputs: params (required). Returns: result
aap_list_job_templatesARead-only
List AAP job templates with optional filtering.
Args: params (ListJTInput): - page (int): Page number - page_size (int): Results per page - search (Optional[str]): Name substring filter - organization (Optional[int]): Filter by org ID - project (Optional[int]): Filter by project ID
Returns: str: JSON with count and results list. Each result has: id, name, description, project, inventory, playbook, ask_variables_on_launch, last_job_status, last_job_run
Inputs: params (required). Returns: result
aap_list_organizationsARead-onlyIdempotent
List all organizations in Ansible Automation Platform.
Returns a paginated list of organizations with their IDs, names, descriptions, and member counts.
Args: params (ListOrgsInput): - page (int): Page number, default 1 - page_size (int): Results per page, default 20 - search (Optional[str]): Filter by name substring
Returns: str: JSON with keys: count, page, page_size, results (list of orgs)
Inputs: params (required). Returns: result
aap_list_projectsARead-only
List AAP projects (SCM-backed playbook repositories).
Args: params (ListProjectsInput): Pagination and filter options.
Returns: str: JSON with count and project list. Each entry has id, name, scm_type, scm_url, status, last_updated.
Inputs: params (required). Returns: result
aap_list_running_jobsARead-only
List all currently running jobs in AAP.
Args: params (ListRunningJobsInput): - include_workflow_jobs (bool): Also show running workflow jobs
Returns: str: JSON with list of running jobs.
Inputs: params (required). Returns: result
aap_list_schedulesARead-only
List AAP schedules for jobs and workflows.
Args: params (ListSchedulesInput): Pagination and filter options.
Returns: str: JSON with schedule list including rrule, next_run, and linked template.
Inputs: params (required). Returns: result
aap_list_teamsCRead-only
List AAP teams.
Args: params (ListTeamsInput): Pagination and filter.
Returns: str: JSON with team list.
Inputs: params (required). Returns: result
aap_list_usersARead-only
List AAP users. Can filter for superusers/admins.
Example: "List users with admin privileges" → set is_superuser=True
Args: params (ListUsersInput): - page, page_size: Pagination - search (Optional[str]): Username/email substring - is_superuser (Optional[bool]): Filter superusers
Returns: str: JSON with user list.
Inputs: params (required). Returns: result
aap_list_workflow_templatesARead-only
List AAP workflow job templates.
Args: params (ListWFTInput): Pagination and filter.
Returns: str: JSON with count and workflow template list.
Inputs: params (required). Returns: result
aap_relaunch_jobA
Relaunch a completed or failed AAP job.
Args: params (RelaunchJobInput): - job_id (int): Job ID to relaunch - hosts (str): 'all' or 'failed' (retry only failed hosts)
Returns: str: JSON with new job_id and status.
Inputs: params (required). Returns: result
aap_remove_host_from_groupA
Remove a host from a group (disassociate, not delete the host).
Args: params (RemoveHostFromGroupInput): - group_id (int): Group ID - host_id (int): Host ID to remove
Returns: str: JSON confirmation.
Inputs: params (required). Returns: result
aap_remove_user_from_teamB
Remove a user from an AAP team.
Args: params (RemoveUserFromTeamInput): - team_id (int): Team ID - user_id (int): User ID to remove
Returns: str: JSON confirmation.
Inputs: params (required). Returns: result
aap_revoke_roleA
Revoke an RBAC role from an AAP user.
Args: params (RevokeRoleInput): - user_id (int): User ID - role_id (int): Role ID to revoke
Returns: str: JSON confirmation.
Inputs: params (required). Returns: result
aap_sync_projectB
Trigger an SCM sync (git pull) for an AAP project.
Args: params (SyncProjectInput): - project_id (int): Project ID to sync
Returns: str: JSON with project_update_id for status tracking.
Inputs: params (required). Returns: result
aap_update_credentialB
Update an existing AAP credential (PATCH).
Args: params (UpdateCredInput): Fields to update.
Returns: str: JSON with updated credential id and name.
Inputs: params (required). Returns: result
aap_update_execution_environmentB
Update an existing AAP execution environment (PATCH).
Args: params (UpdateEEInput): Fields to update.
Inputs: params (required). Returns: result
aap_update_groupB
Update an existing AAP inventory group (PATCH).
Args: params (UpdateGroupInput): Fields to update.
Returns: str: JSON with updated group id and name.
Inputs: params (required). Returns: result
aap_update_hostB
Update an existing AAP host (PATCH).
Args: params (UpdateHostInput): Fields to update.
Returns: str: JSON with updated host id and name.
Inputs: params (required). Returns: result
aap_update_inventoryA
Update an existing AAP inventory (PATCH).
Args: params (UpdateInventoryInput): Fields to update.
Returns: str: JSON with updated inventory id and name.
Inputs: params (required). Returns: result
aap_update_job_templateA
Update an existing AAP job template (PATCH).
Only fields provided will be changed.
Args: params (UpdateJTInput): Fields to update.
Returns: str: JSON with updated template id and name.
Inputs: params (required). Returns: result
aap_update_organizationAIdempotent
Update an existing AAP organization.
Only fields provided will be updated (PATCH semantics).
Args: params (UpdateOrgInput): - org_id (int): Organization ID - name (Optional[str]): New name - description (Optional[str]): New description - max_hosts (Optional[int]): New max hosts limit
Returns: str: JSON with updated organization details.
Inputs: params (required). Returns: result
aap_update_projectB
Update an AAP project (PATCH).
Args: params (UpdateProjectInput): Fields to update.
Returns: str: JSON with updated project id and name.
Inputs: params (required). Returns: result
aap_update_scheduleB
Update an existing AAP schedule (PATCH).
Args: params (UpdateScheduleInput): Fields to update.
Returns: str: JSON with updated schedule id, name, next_run.
Inputs: params (required). Returns: result
aap_update_teamA
Update an existing AAP team (PATCH).
Args: params (UpdateTeamInput): Fields to update (name, description).
Returns: str: JSON with updated team id and name.
Inputs: params (required). Returns: result
aap_update_userA
Update an existing AAP user (PATCH).
Args: params (UpdateUserInput): Fields to update.
Returns: str: JSON with updated user id and username.
Inputs: params (required). Returns: result
aap_update_workflow_templateC
Update an existing AAP workflow template (PATCH).
Args: params (UpdateWFTInput): Fields to update.
Returns: str: JSON with updated workflow id and name.
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 86 tools
Most tools have clear resource-action boundaries with consistent verb_noun naming, making them easy to tell apart. Minor overlaps exist between get_recent_activity and get_audit_logs (explicit alias) and among health/cluster/instance status tools, but these are not confusing enough to cause misselection.
All tools follow a consistent aap_ verb_noun snake_case convention, with actions like list, get, create, update, delete applied uniformly across resources. Exceptions like add_user_to_team and get_job_output still fit within the established pattern.
86 tools is far beyond the threshold where a toolset is considered well-scoped, making the surface feel heavy and harder to navigate. While AAP is a large platform, the sheer number of tools could overwhelm an agent and increase selection complexity.
The server covers many core workflows including project, inventory, job template, and workflow management. However, notable gaps exist: no get operations for inventories, hosts, groups, teams, schedules, or execution environments, and no list_groups or general job history listing. These are significant omissions for resources that otherwise have create/update/delete coverage.
Maintenance
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.35MIT
- FlicenseAqualityDmaintenanceAn MCP server that lets AI agents discover Ansible Galaxy collection input/output contracts, including module arguments, return values, and role facts, to help generate accurate playbooks.6-
- FlicenseNot gradedqualityDmaintenanceIndustry-standard MCP server for AWX/AAP/Ansible Tower automation, enabling AI agents to manage job templates, launch and monitor jobs, and handle inventories and projects through natural language.15-
- AlicenseAqualityCmaintenanceMCP server that exposes Ansible modules to AI agents with a search-schema-check-execute workflow, enabling safe ad-hoc runs via check mode by default. It provides tools to search modules, fetch schemas, run modules, and list collections.53Apache 2.0