# Accelerate automation with AI and the Ansible development tools MCP servers

[Red Hat](https://yomu.fyi/company/red-hat) · Leonardo Gallego · Aug 19, 2026

**Type:** Announcement

## Summary

Ansible automation development often involves frequent context switching and struggles with AI assistants generating syntactically valid code that hallucinates module parameters or misses local dependencies. To address this gap, the Ansible development tools Model Context Protocol server connects AI assistants to external development tooling through structured interfaces. The server wraps command-line utilities, enabling AI models to deterministically run ansible-lint with automatic fixes, scaffold projects via ansible-creator, manage environments, and build execution environment container images. By surfacing local workspace schemas, documentation, and organizational linting standards, the system grounds AI responses in real environment configurations. The integration operates across multiple MCP-compatible clients without requiring a specific model provider.

## Context

Ansible playbook authoring involves constant context switching across documentation, terminals, and editors, while AI assistants frequently generate code referencing uninstalled collections or invalid module parameters because they lack awareness of the local developer environment.

## Approach / What changed

The Ansible development tools Model Context Protocol server (@ansible/ansible-mcp-server) wraps the Ansible CLI tools into structured MCP interfaces, providing real-time schema data, local linting rules, and deterministic execution tools for tasks like linting, scaffolding, and environment management.

## Takeaways

- The Ansible MCP server bundles inside the Ansible VS Code extension and spawns automatically via the built-in Node.js runtime when enabling ansible.mcpServer.enabled.
- Ansible Automation Platform exposes gateway MCP endpoints starting in version 2.6.4+ and generally available in 2.7 for querying controller APIs, inventory data, and launching job templates under RBAC permissions.
- The ansible.mcp collection is available as a Technology Preview to allow playbooks to invoke MCP servers directly using native Ansible module syntax inside execution environments.

**Tags:** [Developer Experience](https://yomu.fyi/topic/developer-experience), [LLMs](https://yomu.fyi/topic/llm), [Open Source](https://yomu.fyi/topic/open-source), [Testing](https://yomu.fyi/topic/testing)

[Read original post](https://developers.redhat.com/articles/2026/08/19/red-hat-ansible-development-tools-mcp-server)
