ansible-log-mcp
Provides the ability to trigger Ansible playbooks that scan logs across an inventory group and return combined results from the target hosts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ansible-log-mcpscan patching_group for kernel panics in the last day"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ansible-log-mcp
MCP server that lets Claude Desktop trigger Ansible-driven log scans across
an inventory group (e.g. patching_group, up to 200+ hosts) and returns
combined results.
Architecture
Claude Desktop -> MCP server (stdio) -> Ansible playbook -> target hosts (parallel forks) -> combined result -> back up the same chain.
Related MCP server: log-analyzer-mcp
Setup
git clone <this-repo>
cd ansible-log-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtEdit config.yaml:
playbook_dir/inventory_path— point at real pathsallowed_groups— restrict to groups this server may touch
Symlink the real inventory instead of duplicating it:
ln -sf /etc/ansible/hosts playbooks/inventory/hosts.iniTest before wiring into Claude Desktop
# 1. Playbook directly, against a small test group
ansible-playbook playbooks/logscan.yml \
-i playbooks/inventory/hosts.ini \
-e target_group=dev_test_hosts -e search_pattern=error -f 5
# 2. Unit tests
pytest tests/
# 3. MCP server via inspector (browser UI, no Claude Desktop needed)
npx @modelcontextprotocol/inspector python3 server/ansible_mcp.pyWire into Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ansible-logs": {
"command": "/absolute/path/to/.venv/bin/python3",
"args": ["/absolute/path/to/ansible-log-mcp/server/ansible_mcp.py"]
}
}
}Restart Claude Desktop. Ask: "scan patching_group for kernel panics in the last day."
Security notes
Runs as a dedicated
claude-agentSSH user, key-based auth onlyallowed_groupsinconfig.yamlis the only guardrail on scope — keep it tightNo
become: trueby default; add sudo only for specific read commands if needed, not blanket root
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Run UX research from Claude — create card sort studies, list studies, pull headline stats.
Give Claude only the Google Drive files you choose. Every action logged.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceEnables comprehensive Ansible automation management through natural language, including playbook creation and execution, inventory management, role scaffolding, and project workflows. Supports both local inventories and full project lifecycle management with syntax validation and idempotency testing.30-
- FlicenseBqualityDmaintenanceEnables log analysis, searching, counting, and system metrics retrieval (CPU, memory, disk) via natural language, using 5 tools that can be integrated with Claude Code.5-
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to discover and launch Ansible job templates on Ansible Automation Platform, monitor job status, and retrieve outputs.4-
- AlicenseNot gradedqualityDmaintenanceConnects Claude to OCI Logging Analytics for natural language querying and analysis of security logs, including detection catalog, MITRE ATT&CK integration, and cross-log correlation.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/debabrata-oss/ansible-log-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server