AWX MCP Server - Control AWX/Ansible Tower through the Model Context Protocol
Project description
AWX MCP Server
Control AWX/Ansible Tower through natural language - 49 tools for automation.
Overview
The AWX MCP Server connects AWX/Ansible Tower to AI tools through the Model Context Protocol (MCP). It enables AI assistants like GitHub Copilot, Claude, and Cursor to manage infrastructure automation through natural language.
Features
- 35 AWX Operations: Manage job templates, projects, inventories, credentials, organizations, and more
- 14 Local Ansible Tools: Create playbooks, validate syntax, run tasks, manage roles, register projects
- Natural Language Control: Use plain English to launch jobs, check status, and manage resources
- MCP Standard: Works with any MCP-compatible AI assistant
Installation
pip install awx-mcp-server
Quick Start
Configure MCP Client
Add to your MCP client settings (e.g., ~/AppData/Local/Claude/claude_desktop_config.json):
{
"mcpServers": {
"awx": {
"command": "python",
"args": ["-m", "awx_mcp_server"],
"env": {
"AWX_URL": "https://your-awx-instance.com",
"AWX_USERNAME": "your-username",
"AWX_PASSWORD": "your-password"
}
}
}
}
Example Usage
With the server configured, you can use natural language like:
- "List all job templates in AWX"
- "Launch the nginx deployment template"
- "Show me the last 5 job runs"
- "Create a playbook to install nginx"
- "What's the status of job 123?"
AWX Operations (35 Tools)
Job Templates & Jobs
awx_list_job_templates- List all job templatesawx_get_job_template- Get template detailsawx_launch_job_template- Launch a job from templateawx_list_jobs- List job historyawx_get_job_status- Check job statusawx_get_job_output- Get job output/logsawx_cancel_job- Cancel running jobawx_relaunch_job- Relaunch previous job
Projects
awx_list_projects- List all projectsawx_get_project- Get project detailsawx_create_project- Create new projectawx_update_project- Update project settingsawx_sync_project- Sync project from SCM
Inventories & Hosts
awx_list_inventories- List all inventoriesawx_get_inventory- Get inventory detailsawx_list_hosts- List hosts in inventoryawx_get_host- Get host detailsawx_create_inventory- Create new inventoryawx_add_host- Add host to inventory
Organizations & Teams
awx_list_organizations- List organizationsawx_get_organization- Get organization detailsawx_list_teams- List teamsawx_get_team- Get team details
Credentials
awx_list_credentials- List credentialsawx_get_credential- Get credential detailsawx_list_credential_types- List credential types
Workflow Jobs
awx_list_workflow_job_templates- List workflow templatesawx_launch_workflow_job- Launch workflowawx_get_workflow_job_status- Check workflow status
System
awx_ping- Test connectionawx_get_config- Get AWX version/configawx_me- Get current user infoawx_list_schedules- List job schedulesawx_activity_stream- Get activity logs
Local Ansible Development (14 Tools)
Playbook Management
create_playbook- Generate playbook from descriptionvalidate_playbook- Check playbook syntaxlist_playbooks- List stored playbooksansible_playbook- Run playbook locallyansible_task- Run ad-hoc taskansible_inventory- List inventory hosts
Role Management
ansible_role- Run Ansible rolecreate_role_structure- Create role directorylist_roles- List available roles
Project Management
register_project- Register Ansible projectunregister_project- Remove projectlist_registered_projects- List projectsproject_playbooks- List project playbooksproject_run_playbook- Run project playbookgit_push_project- Push project to Git
Environment Variables
AWX_URL- AWX instance URL (required)AWX_USERNAME- AWX username (optional if using token)AWX_PASSWORD- AWX password (optional if using token)AWX_TOKEN- AWX OAuth token (optional)AWX_VERIFY_SSL- Verify SSL certificates (default: true)
Documentation
- GitHub: https://github.com/SurgeX-Labs/awx-mcp-server
- Query Reference: https://github.com/SurgeX-Labs/awx-mcp-server/blob/main/AWX_MCP_QUERY_REFERENCE.md
- MCP Protocol: https://modelcontextprotocol.io/
License
Apache License 2.0
Support
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awx_mcp_server-1.1.1.tar.gz.
File metadata
- Download URL: awx_mcp_server-1.1.1.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcbc4247103b014b12dcdae1429b2227048fb53808b5501fa7c4222009838326
|
|
| MD5 |
ebc86534efc209272a2bac3891093fc4
|
|
| BLAKE2b-256 |
edcbed2b585c7847c6e9e89bc7ef6a19284e04f299769b1f7ea4382e31f1d45c
|
File details
Details for the file awx_mcp_server-1.1.1-py3-none-any.whl.
File metadata
- Download URL: awx_mcp_server-1.1.1-py3-none-any.whl
- Upload date:
- Size: 58.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c56b37e5504c0826e3ebf9a4403b132a04325ead8a4b3cc02dfa169f35019ae6
|
|
| MD5 |
afe8d85138199d40882dbbf3992037f4
|
|
| BLAKE2b-256 |
d005d01ce2f0ffc3f7e904fc11d99c6a80aa685db0c8663c7ab163d8eede2ee3
|