ansible-mcp-server
Click on "Install 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., "@ansible-mcp-serverCreate an Ansible playbook to deploy nginx"
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.
Ansible MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to manage infrastructure using Ansible and Terraform.
Features
58 Infrastructure Management Tools
Ansible playbook creation and execution
Terraform infrastructure provisioning
Hardware discovery and inventory
Security scanning and auditing
Service deployment from catalog
Network device management
Environment management (test/staging/production)
AI-Optimized Design
Flexible playbook creation accepting YAML strings
Comprehensive error handling
Context persistence between sessions
Dynamic tool loading for services
Cross-Platform Support
Linux server deployment
Windows client support via SSE proxy
Remote server management
Related MCP server: Coolify MCP Tools
Quick Start
Prerequisites
Node.js 16+
Ansible 2.9+
Terraform (optional)
Installation
# Clone the repository
git clone https://github.com/yourusername/ansible-mcp-server.git
cd ansible-mcp-server
# Install dependencies
npm install
# Copy and configure environment
cp .env.example .env
# Edit .env with your settings
# Run the server
npm startFor Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"ansible": {
"command": "node",
"args": ["/path/to/ansible-mcp-server/src/index.js"],
"env": {
"PROXMOX_HOST": "your-proxmox-host",
"PROXMOX_USER": "root@pam",
"PROXMOX_PASSWORD": "your-password"
}
}
}
}Windows Users
For Windows Claude Desktop, use the SSE proxy:
Deploy the MCP server to a Linux host
Run the SSE server on the Linux host
Configure Claude Desktop to use the Windows client
See Windows Setup Guide for details.
Available Tools
Ansible Tools
create-playbook-flexible- Create playbooks with YAML strings or objectsansible-playbook- Run Ansible playbooksansible-task- Run ad-hoc Ansible tasksansible-role- Execute Ansible rolesvalidate-playbook- Validate playbook syntaxcreate-role-structure- Generate Ansible role directories
Infrastructure Tools
hardware-scan- Comprehensive hardware discoverystorage-analysis- Storage and SMART health analysisnetwork-interfaces- Network adapter discoverydiscover-proxmox- Discover Proxmox VMsgenerate-inventory- Create Ansible inventories
Security Tools
security-quick-scan- Quick security assessmentsecurity-scan-ports- Port scanningsecurity-check-passwords- Password policy auditsecurity-audit-accounts- User account auditsecurity-check-ssh- SSH configuration audit
Service Management
browse-services- Browse service catalogdeploy-service- Deploy services from cataloglist-environments- List deployment environmentsdeploy-to-environment- Deploy with environment protection
Documentation
Testing
Run the comprehensive feature test suite:
# Run tests in development environment
npm test
# Test specific environments
npm run test:dev # Development
npm run test:qa # QA
npm run test:staging # Staging
npm run test:prod # Production
# Verbose output for debugging
npm run test:verboseOur feature tests validate complete VM lifecycle workflows including:
VM creation from Proxmox templates
Service installation (Jenkins, etc.)
Service verification and management
VM deletion and cleanup
MCP context management
See Testing Guidelines for detailed information.
Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built for use with Claude and other AI assistants
Uses the Model Context Protocol
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
-license-quality-maintenanceEnables comprehensive DevOps infrastructure management through tools for Jenkins, Ansible, Terraform, Kubernetes, and Docker operations. Features a sophisticated memory system for context retention and provides validation, generation, and optimization capabilities across DevOps workflows.1- Alicense-qualityDmaintenanceEnables AI assistants to manage Coolify infrastructure including servers, applications, databases, deployments, and 80+ one-click services through 98 comprehensive tools for both cloud and self-hosted instances.MIT
- Alicense-qualityCmaintenanceProvides AI agents with natural language control over AWS, Azure, GCP, and Alibaba Cloud infrastructure through dynamic API discovery and execution. Supports 51,900+ cloud operations and includes OpenTofu integration for complete infrastructure lifecycle management.3MIT
- Alicense-qualityDmaintenanceEnables AI assistants to perform DevOps tasks including Kubernetes management, cloud provider operations, CI/CD, security scanning, and infrastructure monitoring through natural language.MIT
Related MCP Connectors
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/washyu/ansible-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server