B
bsahane/mcp-ansible
MCP Ansible Server
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
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
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/bsahane-mcp-ansible/)
- 来源
- awesome · https://github.com/bsahane/mcp-ansible
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。