Apache AIops
Apache AIops is a governed MCP server/CLI for diagnosing and safely operating Apache HTTP Server through 17 audited tools.
Read Apache version, config syntax, virtual hosts, loaded/compiled/static modules, build options, runtime config, and config include tree.
Collect optional operator-configured health probe status, machine-readable mod_status metrics, bounded error-log tails, and privacy-preserving access-log status summaries.
Correlate checks with apache_diagnose, preserving failed probes and reporting unhealthy HTTP probes separately.
Perform a config-checked graceful reload with dry-run/CLI confirmations, while noting the final outcome needs operator verification.
List and apply recorded undo tokens for prior writes, with dry-run preview and one-time application.
Every call is audited and budgeted; vhost editing, TLS certificate management, and module changes are out of scope.
Provides governed tools for Apache HTTP Server operations and diagnostics, including checking version and config syntax, parsing virtual hosts, modules, includes, and runtime configuration, reading optional mod_status metrics and bounded error logs, summarizing access status, probing configured HTTP health endpoints, correlating diagnostics, and performing guarded graceful reloads.
Click on "Deploy 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., "@Apache AIops diagnose my local Apache deployment and summarize any config or health issues"
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.
Apache AIops
A dedicated, governed MCP server, CLI and skill for Apache HTTP Server with 17 MCP tools. It uses Apache's own apachectl diagnostics, optional operator-configured HTTP health and mod_status URLs, and bounded reads of an operator-configured error log plus a privacy-preserving access-log status summary. Every call is audited and budgeted by the vendored governance harness.
What it checks
Apache version, config syntax, parsed virtual hosts and loaded modules.
Build options and parsed runtime configuration.
Parsed config include tree, compiled modules and directives from static modules.
Optional machine-readable
mod_statusmetrics, bounded error-log tail and privacy-preserving access-status summary.Optional HTTP health status without downloading the response body.
apache_diagnosecorrelates checks, preserves failed probes as errors withdata: null, and reports completed but unhealthy HTTP probes separately inunhealthyProbes. Itshealthyverdict istrue,falseornullwhen health was not established;completeonly means configured probes ran without errors.
Related MCP server: SysAdmin MCP Assistant
Setup from source
Requires Python 3.11+, uv, and apachectl on the operator host. Run uv sync --dev, uv run apache-aiops init, then uv run apache-aiops doctor. Manual ~/.apache-aiops/config.yaml:
targets:
- name: local
apachectl_bin: apachectl
probe_url: http://127.0.0.1/health
status_url: http://127.0.0.1/server-status?auto
error_log: /var/log/apache2/error.log
access_log: /var/log/apache2/access.log
timeout: 10
verify_ssl: trueRun uv run apache-aiops diagnose. The MCP entry point is uv run apache-aiops-mcp. The optional HTTP probe is configured by the operator, not chosen by a tool caller. TLS verification is enabled by default, and ca_file accepts a custom CA PEM.
Scope and verification
graceful-reload first runs configtest, supports dry-run and two CLI confirmations, and reports an unknown final outcome even if the command returned: existing workers may still serve the old config. It has no safe inverse when the prior config file is not snapshotted. Vhost editing, TLS certificate management and module changes remain outside this release. See verification. Missing operations and live-environment feedback are welcome as issues or PRs.
Available Tools
17 toolsapache_access_statusBRead-only
[READ] Count HTTP statuses in recent common/combined access logs, without raw requests.
Inputs: limit, target.
apache_buildARead-only
[READ] Show Apache build options and compiled paths.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_compiled_modulesARead-only
[READ] List modules compiled into Apache, excluding dynamic modules.
Inputs: target.
apache_config_checkARead-only
[READ] Run Apache's native config syntax test.
Use before a reload to check syntax; use apache_diagnose for correlated service and HTTP probe results.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_config_includesBRead-only
[READ] Show Apache's parsed config include tree with bounded output.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_diagnoseARead-only
[READ] Correlate version, config, vhosts, modules and optional HTTP probe.
Use for cross-probe triage; use apache_config_check for syntax validation alone.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_error_logARead-only
[READ] Tail an operator-configured Apache error log, with explicit truncation.
Result: structured data or an explicit, sanitized operation error.
Inputs: limit, target.
apache_graceful_reloadBDestructive
[WRITE] Config-check then request a graceful reload; outcome needs operator check.
Inputs: target, dry_run.
apache_modulesARead-only
[READ] List Apache's loaded modules.
Use for currently loaded modules; use apache_compiled_modules for modules built into the binary.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_probeBRead-only
[READ] GET the configured health URL without downloading its body.
Inputs: target.
apache_runtime_configBRead-only
[READ] Dump Apache's parsed runtime configuration.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_server_statusBRead-only
[READ] Get bounded machine-readable mod_status metrics from configured URL.
Inputs: target.
apache_static_directivesBRead-only
[READ] List directives from Apache's static modules with bounded output.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
apache_versionBRead-only
[READ] Get Apache HTTP Server version from apachectl -v.
Inputs: target.
apache_vhostsBRead-only
[READ] Show Apache's parsed virtual-host mapping.
Result: structured data or an explicit, sanitized operation error.
Inputs: target.
undo_applyADestructive
[WRITE][risk=medium] Apply a recorded undo by dispatching its inverse tool.
The inverse runs through its own governed tool, so it is audited under its own risk tier. Pass dry_run=True to preview the inverse call without executing it. A token can only be applied once.
Args:
undo_id: The undoId from undo_list (or an _undo_id in a write result).
dry_run: If True, preview the inverse tool + params without running it.
target: Passed through to the inverse tool when it accepts a target.
Inputs: undo_id (required), target, dry_run.
undo_listARead-only
[READ] List recorded, not-yet-applied undo tokens (most recent first).
Each entry names the original tool, the inverse tool that undo_apply
would run, and a human note. Use the undoId with undo_apply.
One extra row is read so truncated is measured rather than guessed from
the row count matching the limit; when it is true, older tokens exist.
Each entry carries effectVerified. False means the original write
lost its response, so the change it reverses is PROBABLE, not confirmed —
check the live state before applying, and do not report the result as a
restore of a state that may never have been reached.
Args: limit: Max rows to return (default 50, capped at 500). target: Unused (undo state is host-local); accepted for CLI uniformity.
Inputs: limit, target.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools target a clearly distinct artifact (version, build, modules, vhosts, error log, access statuses, server-status metrics), and descriptions explicitly resolve the two closest pairs: modules vs compiled_modules and config_check vs diagnose. Residual overlap remains among apache_runtime_config, apache_static_directives, and apache_config_includes, which all surface configuration data and could be mis-selected for a vague 'show me the config' request.
Thirteen of the Apache tools follow a strict apache_<noun> snake_case pattern with a consistent [READ]/[WRITE] annotation scheme. The two undo_* tools break the prefix convention but are clearly a framework-level pair and are internally consistent with each other.
Seventeen tools is at the upper end but each maps to a distinct inspection target in an Apache diagnostic workflow. A few probes (apache_probe, apache_server_status, apache_version) partly duplicate what apache_diagnose already correlates, so there is mild redundancy rather than padding.
The surface covers the full diagnostic arc: identify (version, build, modules), inspect (config, includes, directives, vhosts), observe (error log, access statuses, server status, health probe), validate (config_check, diagnose), and act (graceful reload), with undo tokens for reversibility. Gaps are deliberate-safety ones — no config editing or log rotation — which an operator can work around outside the server.
Maintenance
Related MCP Connectors
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.
Read-only agent-commerce audit, upgrade verification, diagnosis and x402 probing.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Live behavioral security verifier, schema auditor, and trust oracle for A2A, MCP & x402 agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables reading diagnostic data from remote servers over SSH using a whitelist of read-only commands, with secret redaction.566 npm1MIT
- FlicenseNot gradedqualityBmaintenanceEnables read-only system diagnostics on approved Linux hosts over SSH, with allowlisted commands, bounded output, and secure log access.-
- AlicenseAqualityCmaintenanceEnables AI agents to monitor server health and capacity, diagnose outages, inspect Docker and deployment status, and perform safe, bounded recovery actions via MCP without granting unrestricted shell or SSH access.101Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI clients to check status, read non-secret settings, schedules, and subject rules, and—when explicitly allowed—update settings and existing subject rules. It also supports local diagnostic workflows while excluding passwords, credentials, arbitrary SQL, files, and shell commands.131MIT