
3Modules4Plugins1Dependency
An Ansible collection for interacting with MCP servers. **Technology Preview**
This collection includes a variety of Ansible content to help automate interactions with Model Context Protocol (MCP) servers. This collection is maintained by the Ansible Cloud Content team.
This collection enables Ansible users to interact with MCP servers through automation. MCP is a standardized protocol for communication between AI systems and external tools or data sources.
The collection provides modules to query server information, discover available tools, and execute tool calls on MCP servers within Ansible playbooks and Execution Environments.
This collection has been tested against the following Ansible versions: >=2.16.0.
Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions. PEP440 is the schema used to describe the versions of Ansible.
This collection requires Python 3.10 or greater.
This collection depends on the following collections:
- ansible.utils
Some modules and plugins require external libraries. Please check the requirements for each plugin or module you use in the documentation to find out which requirements are needed.
| Name | Description |
|---|---|
| ansible.mcp.mcp | Persistent connection to an Model Context Protocol (MCP) server |
| Name | Description |
|---|---|
| ansible.mcp.run_tool | Call a specific tool on an MCP server |
| ansible.mcp.server_info | Retrieve MCP server information |
| ansible.mcp.tools_info | Retrieve a list of supported tools from an MCP server |
This collection is tested using GitHub Actions. To learn more about testing, refer to CI.md.
ansible-galaxy collection install ansible.mcp
You can also include it in a requirements.yml file and install it via
ansible-galaxy collection install -r requirements.yml using the format:
collections:
- name: ansible.mcp
To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install ansible.mcp --upgrade
You can also install a specific version of the collection, for example, if you
need to downgrade when something is broken in the latest version (please report
an issue in this repository). Use the following syntax where X.Y.Z can be any
available version:
ansible-galaxy collection install ansible.mcp:==X.Y.Z
See Ansible Using Collections for more details.
For support and questions about this collection:
See the changelog.
GNU General Public License v3.0 or later.
See LICENSE to see the full text.
| Product |
|---|
| 2.4 |
| 2.5 |
| 2.6 |
This collection requires the following collections for use:
| Name | Summary |
|---|
The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.