ceph-mcp
Provides tools for managing a Ceph cluster.
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., "@ceph-mcpadd a note about the new OSD deployment"
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-mcp
A read-only MCP server for Rook-Ceph clusters running on Kubernetes.
It lets an LLM (Claude, etc.) inspect the health of a Ceph cluster — cluster health, OSD tree, PG status, pool usage, mon quorum, RGW multisite sync — by executing a fixed set of ceph / radosgw-admin commands inside the Rook-Ceph toolbox pod and returning structured JSON.
Why it's safe to hand to an LLM
No arbitrary commands. Every tool maps to exactly one hardcoded command template in
commands.py. There is no code path that builds a shell command from model input — the model can only pick which tool to call, never what to run.Read-only. Only inspection commands (
ceph health,ceph osd tree,ceph df,radosgw-admin sync status, ...) are exposed. Nothing that mutates cluster state.Scoped exec, not a shell. Commands run via the Kubernetes
execAPI inside the existingrook-ceph-toolspod — the server itself never needs cluster-admin credentials beyond what your kubeconfig already grants.
Related MCP server: MCP Notes Server
Tools
Tool | Description |
|
|
| Hierarchical host/OSD structure with up/down/in/out state |
| Per-OSD capacity/usage, useful for spotting imbalance |
| PG counts by state, plus PG-related health checks |
| Per-pool stored/used/available bytes and object counts |
| Monitor quorum state and mon list |
| Per-zone RGW multisite sync state: behind/caught-up/failed |
| Composes all of the above into a single "how's the cluster doing" snapshot |
Every tool returns a JSON envelope:
{ "ok": true, "tool": "get_cluster_health", "data": { ... }, "warnings": [] }or, on failure:
{ "ok": false, "tool": "get_cluster_health", "error": "...", "detail": "..." }Requirements
Python >= 3.14
A Kubernetes cluster running Rook-Ceph, with the
rook-ceph-toolstoolbox pod deployedA working kubeconfig with permission to
list/execpods in the Rook-Ceph namespace
Installation
Once published to PyPI, run it with uvx — no separate install step needed:
uvx ceph-mcpOr install it into a virtualenv:
uv pip install ceph-mcpFrom source
git clone git@github.com:sserkanml/ceph-mcp.git
cd ceph-mcp
uv sync
uv run ceph-mcpConfiguration
Configured entirely through environment variables:
Variable | Default | Description |
|
| Namespace the toolbox pod lives in |
|
| Label selector used to find the toolbox pod |
| (default kubeconfig) | Path to a specific kubeconfig file |
| (current context) | kubeconfig context to use |
Usage with Claude Desktop
Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
Published (PyPI) version:
{
"mcpServers": {
"ceph-mcp": {
"command": "uvx",
"args": ["ceph-mcp"],
"env": {
"CEPH_MCP_NAMESPACE": "rook-ceph",
"CEPH_MCP_TOOLBOX_LABEL": "app=rook-ceph-tools"
}
}
}
}From a local checkout:
{
"mcpServers": {
"ceph-mcp": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/ceph-mcp", "ceph-mcp"],
"env": {
"CEPH_MCP_NAMESPACE": "rook-ceph",
"CEPH_MCP_TOOLBOX_LABEL": "app=rook-ceph-tools"
}
}
}
}See examples/claude_desktop_config.json for a ready-to-copy version.
Development
Project layout:
src/ceph_mcp/
├── server.py # MCP server entrypoint + tool registration
├── commands.py # fixed allowlist: tool name -> ceph/radosgw-admin command
├── config.py # env var -> Config resolution
├── k8s_exec.py # finds the toolbox pod, execs commands via the k8s API
└── parsers/ # raw ceph JSON/text -> structured tool output
tests/
├── fixtures/ # captured real ceph/radosgw-admin output, used by parser tests
└── test_*.pyRun the test suite:
uv run pytestLint:
uv run ruff check .Debugging
Since MCP servers communicate over stdio, use the MCP Inspector to interact with the server directly:
npx @modelcontextprotocol/inspector uv --directory /absolute/path/to/ceph-mcp run ceph-mcpPublishing to PyPI
uv sync
uv build
uv publishRequires PyPI credentials via UV_PUBLISH_TOKEN (or --token).
License
MIT — see LICENSE.
Author
Serkan (@sserkanml)
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that used to create notes
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Related MCP Servers
- AlicenseAqualityDmaintenanceA simple note-taking MCP server for recording and managing notes with AI models.46 npm36GPL 2.0
- AlicenseBqualityDmaintenanceAn MCP server for managing and persisting notes, offering CRUD operations, note summarization, and resource-based access via a note:// URI scheme.47MIT
- FlicenseNot gradedqualityDmaintenanceA simple MCP server for creating and managing notes with support for summarization functionality.1-
- FlicenseBqualityDmaintenanceA simple note-taking MCP server that stores notes and can generate summaries of stored content.4-