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
VS Code (One-Click Install)
Click the button above to install in VS Code with GitHub Copilot, or manually configure:
-
Install the package:
pip install awx-mcp-server
-
Open VS Code User Settings (JSON):
Ctrl+Shift+P→ "Preferences: Open User Settings (JSON)" -
Add MCP server configuration:
{ "github.copilot.chat.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" } } } }
-
Reload VS Code:
Ctrl+Shift+P→ "Developer: Reload Window"
Other MCP Clients (Claude, Cursor, Windsurf, etc.)
pip install awx-mcp-server
Add to your MCP client configuration file:
{
"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
Installation & Setup
- Quick Start - Get started in 5 minutes with local setup
- Two Keys Quick Reference - Understanding MCP API Key vs AAP Token
- Remote Client Setup - Configure VS Code for remote MCP server
- Remote Deployment - Deploy server in Docker, Kubernetes, or cloud
- Install from Source - Fork and customize for your organization
Platform Support
- AAP Support - Configure for Ansible Automation Platform or Ansible Tower
- OS Compatibility - Windows, macOS, and Linux installation guides
Advanced
- Query Reference - All 49 tools with examples
- Vault Integration - HashiCorp Vault for secrets management
- GitHub Installation - Install directly from GitHub
Resources
- GitHub Repository: https://github.com/SurgeX-Labs/awx-mcp-server
- PyPI Package: https://pypi.org/project/awx-mcp-server/
- MCP Protocol: https://modelcontextprotocol.io/
License
Apache License 2.0
Support
Metadata
Release files for awx-mcp-server 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| awx_mcp_server-1.2.0.tar.gz | 58.2 kB | Without provenance | Details for awx_mcp_server-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| awx_mcp_server-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for awx_mcp_server-1.2.0-py3-none-any.whl |
Total release size: 123.4 kB
Release files / awx_mcp_server-1.2.0.tar.gz
| Download URL | awx_mcp_server-1.2.0.tar.gz |
|---|---|
| Size | 58.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daec169e2ea47437267b3e363b5d6ac474689536091828f23c94aa2c5021741d
|
|
BLAKE2b-256 checksum How to use checksums |
60785857a5629fbe180e09e8d2fdd95ac53556012ce482b169a5c8b2c9125860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / awx_mcp_server-1.2.0-py3-none-any.whl
| Download URL | awx_mcp_server-1.2.0-py3-none-any.whl |
|---|---|
| Size | 65.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0a9748c9bf4c222f5dd3e76869872bb8ac15ecd298d322059637597f96a2e87
|
|
BLAKE2b-256 checksum How to use checksums |
1247d841c31ffc5ee98e2104ab846f44e3665175d7b2fcbb3266ce819cabed22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for awx-mcp-server 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.