aap-mcp
Ansible Automation Platform 2.4 management mcp
AAP MCP Server
A Model Context Protocol (MCP) server for Ansible Automation Platform (AAP) 2.4. Provides tools for managing jobs, templates, workflows, inventory, and infrastructure through Claude or other MCP clients.
Quick Start
Prerequisites
- Node.js ≥ 18.0.0
- npm or yarn
- Access to an AAP instance
Installation
git clone <repo-url>
cd aap-mcp
npm install
Configuration
Option 1: Interactive Setup
npm run setup-keychain
This interactive setup guides you through:
- Choosing authentication method (API token or username/password)
- Entering credentials (with hidden password input)
- Selecting storage method (macOS Keychain, .env file, or environment variables)
Note: Interactive should be all you need to get started unless you care to follow one of the other paths
Option 2: Environment Variables (Recommended for CI/CD)
export AAP_BASE_URL="https://aap.example.com"
export AAP_TOKEN="your-api-token"
Option 3: .env File (For Development Only)
Create ~/.config/aap-mcp/.env.aap:
AAP_BASE_URL=https://aap.example.com
AAP_TOKEN=your-api-token
AAP_USERNAME=admin
Then:
npm start
Configuration
Required Environment Variables
AAP_BASE_URL- AAP instance URL (e.g.,https://aap.example.com)- One of the following:
AAP_TOKEN- API authentication token, ORAAP_USERNAMEandAAP_PASSWORD- Username and password authentication
Optional Environment Variables
AAP_CONFIG_DIR- Configuration directory (default:~/.config/aap-mcp)AAP_DATA_DIR- Data directory (default:~/.data/aap-mcp)
Keychain Customization (macOS)
AAP_KEYCHAIN_SERVICE- Service name (default:aap-mcp)AAP_KEYCHAIN_TOKEN_ACCOUNT- Token account name (default:token)AAP_KEYCHAIN_BASE_URL_ACCOUNT- URL account name (default:base_url)AAP_KEYCHAIN_USERNAME_ACCOUNT- Username account name (default:username)AAP_KEYCHAIN_PASSWORD_ACCOUNT- Password account name (default:password)
Development
Build
npm run build
Development Server
npm run dev
Testing
npm test
npm run test:ui
Linting
npm run lint
Architecture
Core Components
- Client (
src/client/): HTTP client for AAP API communication - Tools (
src/tools/): MCP tool implementations organized by domainsystem.ts- System health and metricsjobs.ts- Job execution and monitoringtemplates.ts- Job and workflow templatesworkflows.ts- Workflow managementinventory.ts- Inventory and host managementprojects.ts- Project managementinfra.ts- Infrastructure tools
- Credentials (
src/credentials.ts): Secure credential management with priority-based loading - Paths (
src/paths.ts): Configuration and data directory management
Credential Loading Priority
- Environment variables (highest priority)
- macOS Keychain (if available)
.envfile- Default or error (lowest priority)
Tools Reference
System Tools
- get_system_info - Retrieve AAP system information
- get_platform_metrics - Get platform capacity and job statistics
Job Tools
- list_jobs - List automation jobs with filtering
- get_job - Get job details
- run_job - Launch a job template
- get_job_output - Retrieve job execution logs
Template Tools
- list_job_templates - List available job templates
- list_workflow_templates - List workflow job templates
Workflow Tools
- list_workflow_jobs - List workflow executions
- get_workflow_job - Get workflow execution details
Inventory Tools
- list_hosts - List inventory hosts
- list_groups - List inventory groups
Project Tools
- list_projects - List projects
- get_project - Get project details
Infrastructure Tools
- list_nodes - List control and execution nodes
- get_node_details - Get node information
Troubleshooting
"AAP_BASE_URL is required"
Credentials not found. Run:
npm run setup-keychain
Or set environment variables:
export AAP_BASE_URL="https://aap.example.com"
export AAP_TOKEN="your-token"
"Failed to initialize config directory"
Ensure the config directory path is writable, or specify a custom path:
export AAP_CONFIG_DIR="/path/to/config"
npm start
"Connection check failed"
Verify AAP instance is accessible:
curl https://aap.example.com/api/v2/ping/
License
See LICENSE file.
Documentation
- Credentials Setup - Detailed credential management guide
- Implementation Summary - Architecture and design decisions
- Structure Assessment - Project structure analysis and recommendations
Support
For issues and feature requests, please open a GitHub issue.
Servidores relacionados
Kone.vc
patrocinadorMonetize your AI agent with contextual product recommendations
mpesa-mcp
MCP server for M-Pesa (Safaricom Daraja) and Africa's Talking APIs. Gives AI coding assistants — Claude Code, Cursor, GitHub Copilot — direct access to East African payment and SMS infrastructure from a single server. What it does: STK Push payments via Safaricom Daraja (triggers M-Pesa prompt on user's phone) Transaction status queries SMS to 20+ African telecom networks via Africa's Talking Airtime top-up across East and West Africa Safety: All 5 tools are annotated per MCP 2025-03-26 spec — payment and SMS tools declare destructiveHint: true, so Claude Desktop and other clients show confirmation dialogs before executing. Query tools declare readOnlyHint: true for auto-approval. Install: pip install mpesa-mcp Who it's for: Developers building AI agents for East African markets. M-Pesa handles ~$50B/year in transactions and reaches 50M+ users. Africa's Talking reaches 300M+ phones across 20+ telecoms.
Apple Books
Access and manage your library on Apple Books.
clipboard-mcp
MCP server that reads and writes the system clipboard — tables, text, code, JSON, URLs, images, and more. Preserves spreadsheet structure (rows/columns) that is lost when pasting into Claude directly. Claude can also write results back to your clipboard.
GenieACS MCP
MCP server that exposes GenieACS TR-069 ACS instances to LLMs for device management, firmware downloads, and parameter reads
Apple Notes
Talk with your Apple Notes
Jira MCP Server
An MCP server for interacting with Jira projects and issues.
Todoist
Full implementation of Todoist Rest API for MCP server
netdev-ssh-mcp
MCP server for interacting with network devices (switches, routers) over SSH. Supports Arista EOS, Cisco NX-OS, and Cisco IOS/IOS-XE. Exposes network device operations as tools for use with Claude Code and Claude Desktop (and other MCP clients)
Atlassian MCP Client
An MCP client for integrating with Atlassian tools like Jira and Confluence using OAuth authentication.
Google Calendar Integration Project
Manage and interact with Google Calendar events using the Google Calendar API.