B
bsahane/mcp-ansible
MCP Ansible Server
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
MCP Ansible Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Advanced Ansible Model Context Protocol (MCP) server in Python exposing Ansible utilities for inventories, playbooks, roles, and project workflows.
Quick start
bash
git clone https://github.com/bsahane/mcp-ansible.git
cd mcp-ansible
# Create and activate Python virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies via requirements.txt
python -m pip install -U pip
pip install -r requirements.txt
# (Optional) install the project package locally
pip install -e .
# Run the MCP server
python src/ansiblemcp/server.py
Requirements
Python 3.10+
macOS/Linux
Setup
bash
cd /Users/bsahane/Developer/cursor/mcp-ansible
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
pip install "mcp[cli]>=1.2.0" "PyYAML>=6.0.1" "ansible-core>=2.16.0"
pip install -e .
Run the server
bash
python src/ansiblemcp/server.py
Cursor config (/Users/bsahane/.cursor/mcp.json)
json
"mcpServers": {
"ansible-mcp": {
"command": "python",
"args": [
"/Users/bsahane/Developer/cursor/mcp-ansible/src/ansiblemcp/server.py"
],
"env": {
"MCPANSIBLEPROJECTROOT": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server",
"MCPANSIBLEINVENTORY": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server/inventory/hosts.ini",
"MCPANSIBLEPROJECTNAME": "projectAIOPS"
Claude for Desktop config
Add to ~/Library/Application Support/Claude/claudedesktopconfig.json:
json
"mcpServers": {
"ansible-mcp": {
"command": "python",
"args": [
"/Users/bsahane/Developer/cursor/mcp-ansible/src/ansiblemcp/server.py"
],
"env": {
"MCPANSIBLEPROJECTROOT": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server",
"MCPANSIBLEINVENTORY": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server/inventory/hosts.ini",
"MCPANSIBLEPROJECTNAME": "projectAIOPS"
Tools (names)
Core Ansible Tools:
create-playbook: Create playbooks from YAML strings or dicts
validate-playbook: Validate playbook syntax (ansible-playbook --syntax-check)
ansible-playbook: Execute playbooks
ansible-task: Run ad-hoc tasks (defaults to connection=local for localhost)
ansible-role: Execute roles via generated temporary playbook
create-role-structure: Scaffold role directory tree
ansible-inventory: List inventory hosts and groups
register-project: Register an Ansible project for easy reuse
list-projects: Show registered projects and default
project-playbooks: Discover playbooks under a project root
project-run-playbook: Run a playbook using a registered project's inventory/env
Local inventory suite (no AAP/AWX):
inventory-parse: Parse inventories (ansible.cfg-aware), return hosts/groups/hostvars
inventory-graph: Show group/host graph
inventory-find-host: Show a host's groups and merged vars
ansible-ping: Ad-hoc ping module
ansible-gather-facts: Run setup and return parsed facts
validate-yaml: Validate YAML files with error locations
galaxy-install: Install roles/collections from requirements
project-bootstrap: Galaxy install + env inspection
Advanced Troubleshooting Suite:
Foundation Tools:
ansible-remote-command: Execute arbitrary shell commands with enhanced output parsing
ansible-fetch-logs: Fetch and analyze log files with pattern detection and correlation
ansible-service-manager: Manage services with status checking and log correlation
Quick start
bash
git clone https://github.com/bsahane/mcp-ansible.git
cd mcp-ansible
# Create and activate Python virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies via requirements.txt
python -m pip install -U pip
pip install -r requirements.txt
# (Optional) install the project package locally
pip install -e .
# Run the MCP server
python src/ansiblemcp/server.py
Requirements
Python 3.10+
macOS/Linux
Setup
bash
cd /Users/bsahane/Developer/cursor/mcp-ansible
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
pip install "mcp[cli]>=1.2.0" "PyYAML>=6.0.1" "ansible-core>=2.16.0"
pip install -e .
Run the server
bash
python src/ansiblemcp/server.py
Cursor config (/Users/bsahane/.cursor/mcp.json)
json
"mcpServers": {
"ansible-mcp": {
"command": "python",
"args": [
"/Users/bsahane/Developer/cursor/mcp-ansible/src/ansiblemcp/server.py"
],
"env": {
"MCPANSIBLEPROJECTROOT": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server",
"MCPANSIBLEINVENTORY": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server/inventory/hosts.ini",
"MCPANSIBLEPROJECTNAME": "projectAIOPS"
Claude for Desktop config
Add to ~/Library/Application Support/Claude/claudedesktopconfig.json:
json
"mcpServers": {
"ansible-mcp": {
"command": "python",
"args": [
"/Users/bsahane/Developer/cursor/mcp-ansible/src/ansiblemcp/server.py"
],
"env": {
"MCPANSIBLEPROJECTROOT": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server",
"MCPANSIBLEINVENTORY": "/Users/bsahane/GitLab/projectAIOPS/mcp-ansible-server/inventory/hosts.ini",
"MCPANSIBLEPROJECTNAME": "projectAIOPS"
Tools (names)
Core Ansible Tools:
create-playbook: Create playbooks from YAML strings or dicts
validate-playbook: Validate playbook syntax (ansible-playbook --syntax-check)
ansible-playbook: Execute playbooks
ansible-task: Run ad-hoc tasks (defaults to connection=local for localhost)
ansible-role: Execute roles via generated temporary playbook
create-role-structure: Scaffold role directory tree
ansible-inventory: List inventory hosts and groups
register-project: Register an Ansible project for easy reuse
list-projects: Show registered projects and default
project-playbooks: Discover playbooks under a project root
project-run-playbook: Run a playbook using a registered project's inventory/env
Local inventory suite (no AAP/AWX):
inventory-parse: Parse inventories (ansible.cfg-aware), return hosts/groups/hostvars
inventory-graph: Show group/host graph
inventory-find-host: Show a host's groups and merged vars
ansible-ping: Ad-hoc ping module
ansible-gather-facts: Run setup and return parsed facts
validate-yaml: Validate YAML files with error locations
galaxy-install: Install roles/collections from requirements
project-bootstrap: Galaxy install + env inspection
Advanced Troubleshooting Suite:
Foundation Tools:
ansible-remote-command: Execute arbitrary shell commands with enhanced output parsing
ansible-fetch-logs: Fetch and analyze log files with pattern detection and correlation
ansible-service-manager: Manage services with status checking and log correlation
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/bsahane-mcp-ansible/)
- Source
- awesome · https://github.com/bsahane/mcp-ansible
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.