Ansible_MCP_Server

rajthecomputerguy/Ansible_MCP_Server

3.1

If you are the rightful owner of Ansible_MCP_Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This repository provides a simple MCP-style server using FastAPI to interact with Ansible Automation Platform (AAP) and a Streamlit-based chat frontend.

MCP-AAP Chatbot

This repository contains a simple MCP-style server (FastAPI) that talks to Ansible Automation Platform (AAP), and a Streamlit-based chat frontend that uses Grok as the LLM backend (placeholder). Use it as a starting point to build a conversational infra-management interface.

Features

  • MCP server (FastAPI) with endpoints:
    • /health - health check
    • /job-templates - list job templates from AAP
    • /launch - launch job template (POST JSON: {"template_id": 5, "extra_vars": {...}})
    • /jobs/{job_id} - job status
    • /cancel/{job_id} - cancel job
    • /chat - basic chatbot endpoint (integrates with Grok or a mock fallback)
  • Streamlit UI that calls the MCP server and provides a simple chat UI and quick actions.

Requirements

Python 3.9+.

Install:

pip install -r requirements.txt