io.github.AIops-tools/ceph-aiops
This server provides a governed AI-ops MCP interface for managing and monitoring Ceph storage clusters via the ceph-mgr Dashboard REST API, featuring 35 tools (17 read, 18 write) with built-in audit logging, risk tiers, undo recording, and dry-run safety for destructive operations. It works with any vanilla ceph-mgr deployment (cephadm, MicroCeph, etc.).
Health & Cluster Status
Root-cause analysis: Decodes
HEALTH_WARN/ERRchecks (e.g.,PG_DEGRADED,OSD_NEARFULL,SLOW_OPS) into plain-language causes and suggested actions.Cluster status: Compact
ceph -ssummary — mons, OSDs up/in, PGs, usage, and objects.
Monitor & Manager
Check monitor quorum state and monmap epoch.
View active manager, standbys, and enabled mgr modules.
OSD Operations
Read: OSD tree (up/in state, weight, host), per-OSD utilization (
osd_df), per-OSD latency (osd_perf).Write: Set/unset cluster flags (
noout,noscrub, etc.); reweight OSDs; mark OSDs in/out; purge OSDs (irreversible, high-risk, requires approver).
Placement Group (PG) Operations
Read: PG state histogram, stuck PGs with implicated OSDs, scrub overdue status.
Write: Trigger shallow or deep scrubs on specific PGs.
Pool Management
Read: List pools (size, pg_num, autoscale, quotas) and per-pool usage.
Write: Set quotas, pg_num, autoscale mode, replica count (reversible); create pools; delete pools (irreversible, high-risk, requires approver).
RBD (Block Storage)
Read: List RBD images across pools (size, features, snapshot count).
Write: Create images and snapshots; delete images and snapshots (high-risk, requires approver).
CephFS & RGW
Per-filesystem MDS ranks, client/standby counts, and backpressure signals.
RGW daemon status plus large-omap/unsharded bucket index scan.
Cluster-wide Operations
Identify slow/blocked requests per OSD.
Forecast days-to-nearfull given a daily growth rate.
Tune
osd_max_backfillsandosd_recovery_max_activeto prevent recovery storms (reversible).
Governance & Safety
Risk tiers: Low, medium, high — high-risk ops require a named approver and dry-run confirmation.
Undo recording: Reversible operations capture prior state for rollback.
Unified audit log and budget/runaway guards on every call.
Encrypted credential store: Dashboard password secured with Fernet + scrypt.
Provides governance-enhanced AIOps for Ceph clusters, allowing health analysis, OSD management, pool operations, RBD management, and more via the Ceph Dashboard API.
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., "@io.github.AIops-tools/ceph-aiopsWhat's the root cause of the cluster health warning?"
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.
Ceph AIops (preview)
Disclaimer: Community-maintained open-source project. Not affiliated with, endorsed by, or sponsored by the Ceph project or any storage vendor. Product and trademark names belong to their owners. MIT licensed.
Governed AI-ops for Ceph — talks to a vanilla ceph-mgr Dashboard REST API
(HTTPS :8443, username + password exchanged for a short-lived JWT at
POST /api/auth) with a built-in governance harness: unified audit log,
policy engine, token/runaway budget guard, undo-token recording, and
graduated-autonomy risk tiers. Works against stock ceph-mgr — cephadm,
hypervisor-bundled Ceph, or MicroCeph — with no croit and no Kubernetes
dependency. Self-contained: no external skill-family dependency.
Preview — mock-validated only, not yet verified against a live cluster.
What it does
The flagship analysis, plus the guarded reads and writes around it:
cluster_health— HEALTH_WARN/ERR root-cause analysis. Instead of echoing raw check codes (PG_DEGRADED,OSD_NEARFULL,SLOW_OPS,MON_DOWN,LARGE_OMAP_OBJECTS, …), it turns each active check into plain language: what it means, the likely cause, and the suggested next action. This is the differentiator vs the hobby Ceph MCPs that just proxyceph -s.Governed destructive ops. The operations operators actually fear —
osd_purge,pool_delete,set_pool_size,rbd_image_delete— carry dry-run + double-confirm and a high risk tier; reversible tuning (osd_reweight,throttle_recovery,cluster_flag_set, pool quota/pg_num/ autoscale) records an undo descriptor capturing the prior state.
Related MCP server: Lumino
What works
CLI (
ceph-aiops ...):init,overview,health detail/health status,osd tree/df/reweight/out/purge,secret set/list/rm/migrate/rotate-password,doctor,mcp.osd outandosd purgerequire--dry-run+ double confirm.MCP server (
ceph-aiops mcporceph-aiops-mcp): the full 35 tools (17 read, 18 write), every one wrapped with the bundled@governed_toolharness. The CLI is a convenience subset; the MCP surface is the whole tool.Encrypted credentials: the Dashboard password lives in an encrypted store
~/.ceph-aiops/secrets.enc(Fernet + scrypt) — never plaintext on disk. Unlock with a master password fromCEPH_AIOPS_MASTER_PASSWORD(MCP/CI) or an interactive prompt (CLI).Reversibility: reversible writes capture the prior state and record an inverse undo descriptor (e.g.
osd_reweight→ prior weight,set_pool_quota→ prior quota,throttle_recovery→ prior backfill/recovery settings).Safety: destructive ops (
osd_purge,osd_mark_out,pool_delete,set_pool_size,rbd_image_delete,rbd_snapshot_delete) arehighrisk withdry_runand CLI double confirmation.
Capability matrix (35 MCP tools)
Group | Tools | Count | R/W |
Health |
| 2 | read |
OSD |
| 3 | read |
| 3 | write | |
| 2 | write | |
PG |
| 3 | read |
| 2 | write | |
Pool |
| 2 | read |
| 4 | write | |
| 2 | write | |
RBD |
| 1 | read |
| 2 | write | |
| 2 | write | |
CephFS / RGW |
| 2 | read |
Cluster-ops |
| 4 | read |
| 1 | write |
Totals: 35 tools — 17 read, 18 write.
Quick start
uv tool install ceph-aiops # or: pipx install ceph-aiops
ceph-aiops init # wizard: add a mgr target + store the Dashboard password (encrypted)
ceph-aiops doctor # JWT login + mgr-dashboard reachability
ceph-aiops overview # HEALTH status + active checks + OSD up/in
ceph-aiops health detail # decode the active HEALTH_WARN/ERR checks (RCA)
ceph-aiops osd df # per-OSD utilization, most-full first, near/backfill-full flagsRun as an MCP server (stdio):
export CEPH_AIOPS_MASTER_PASSWORD=... # unlock secrets non-interactively
ceph-aiops-mcpGovernance
Every MCP tool passes through the bundled @governed_tool harness:
Audit — every call (params, result, status, duration, risk tier, approver, rationale) is logged to
~/.ceph-aiops/audit.db(relocatable viaCEPH_AIOPS_HOME).Budget / runaway guard — token and call budgets trip a circuit breaker.
Risk tiers — graduated autonomy; high-risk ops (purge/delete/replica change) can require a named approver (
CEPH_AUDIT_APPROVED_BY/CEPH_AUDIT_RATIONALE).Undo recording — reversible writes record an inverse descriptor.
Supported scope & limitations
Deployments: vanilla ceph-mgr with the dashboard module enabled — cephadm, hypervisor-bundled Ceph, or MicroCeph. No croit, no Kubernetes dependency.
Ceph has no ETag / pagination on the Dashboard API, so this tool exposes none — nothing is missing, the upstream API simply doesn't offer them.
Preview / mock-only. Behaviour is validated against mocked Dashboard responses. The cheapest live check is a single-node MicroCeph (
snap install microceph→ bootstrap → loop-file OSDs) runningceph-aiops doctor; a 3-node Vagrant cluster exercises real rebalance behaviour. Multi-node rebalance and the write ops are unverified against a real cluster.
Missing a capability?
RGW multisite, per-daemon config sprawl, NFS-Ganesha exports, orchestrator (cephadm) host management — not here yet. Open an issue or send a PR — feedback and contributions are welcome.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/AIops-tools/Ceph-AIops'
If you have feedback or need assistance with the MCP directory API, please join our Discord server