Using MCP with Microsoft Copilot to query Ansible Automation Platform

For teams already working in the Microsoft Copilot ecosystem, there is a useful way to connect Copilot to Ansible Automation Platform using an MCP server. Roger Lopez recently put together a walkthrough showing how this can work end to end.

The idea is fairly simple. Instead of jumping between dashboards or manually querying APIs, Copilot can act as an interface that asks questions about the automation environment and retrieves information from Ansible Automation Platform in real time.

Examples of questions Copilot can answer once connected:

• When was the most recent job failure?
• Which inventories currently have unreachable hosts?
• What job templates have run the most in the past 30 days?

The walkthrough focuses on how to wire the pieces together inside the Microsoft stack so Copilot can call the MCP server that exposes Ansible Automation Platform data.

Topics covered include:

  • Generating an API token in Ansible Automation Platform
  • Creating a Custom Connector in Power Apps
  • Importing the OpenAPI YAML definition for the MCP server
  • Configuring Bearer token authentication
  • Connecting the MCP server inside Copilot Studio
  • Testing real queries from the AI agent

For anyone experimenting with Copilot agents, MCP servers, or AI interfaces for operational tools, this provides a practical example of how Ansible Automation Platform can fit into that workflow.

The full walkthrough is here:

Curious to hear if others are experimenting with MCP or Copilot agents to interact with automation platforms or other operational systems.