Server data from the Official MCP Registry
MCP server for Croit Ceph cluster management with dynamic OpenAPI tool generation
MCP server for Croit Ceph cluster management with dynamic OpenAPI tool generation
Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
3 files analyzed ยท No issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: CROIT_HOST
Environment variable: CROIT_API_TOKEN
From the project's GitHub README.
AI-powered management for Croit Ceph clusters via the Model Context Protocol (MCP)
Connect your AI assistant (like Claude) directly to your Croit Ceph cluster for intelligent cluster management, troubleshooting, and monitoring.
An MCP server that gives AI assistants access to your Croit Ceph cluster's REST API. Ask your AI to:
The AI can then interact with your cluster through natural language.
docker run --rm -i \
-e CROIT_HOST="https://your-cluster.com" \
-e CROIT_API_TOKEN="your-api-token" \
croit/mcp-croit-ceph:latest
Add to ~/.config/claude/claude_desktop_config.json:
Basic configuration (fetches OpenAPI spec on startup):
{
"mcpServers": {
"croit-ceph": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "CROIT_HOST=http://your-cluster.croit.io:8080",
"-e", "CROIT_API_TOKEN=your-api-token-here",
"croit/mcp-croit-ceph:latest"
]
}
}
}
Optimized configuration (recommended - 2s startup instead of 5s):
{
"mcpServers": {
"croit-ceph": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-v", "/absolute/path/to/openapi.json:/config/openapi.json:ro",
"-e", "CROIT_HOST=http://your-cluster.croit.io:8080",
"-e", "CROIT_API_TOKEN=your-api-token-here",
"-e", "OPENAPI_FILE=/config/openapi.json",
"croit/mcp-croit-ceph:latest"
]
}
}
}
With debug logging:
{
"mcpServers": {
"croit-ceph": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "CROIT_HOST=http://your-cluster.croit.io:8080",
"-e", "CROIT_API_TOKEN=your-api-token-here",
"-e", "LOG_LEVEL=DEBUG",
"croit/mcp-croit-ceph:latest"
]
}
}
}
Note: Volume mounts require absolute paths (not ~/). To download the OpenAPI spec:
curl -H "Authorization: Bearer YOUR_TOKEN" \
http://your-cluster.croit.io:8080/api/swagger.json > openapi.json
Restart Claude Desktop after changing the configuration.
CROIT_HOST="https://your-cluster.com" # Your Croit cluster URL
CROIT_API_TOKEN="your-api-token" # API token from Croit
# Use local OpenAPI spec for faster startup (2s vs 5s)
OPENAPI_FILE="/config/openapi.json"
# Use bundled spec (no external fetch, for offline/dev)
USE_INCLUDED_API_SPEC="true"
# Logging verbosity: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL="INFO"
# Pass additional CLI arguments
MCP_ARGS="--no-permission-check --max-category-tools 5"
See .env.example for docker usage template.
Check cluster health:
You: "What's the current cluster status?"
AI: Calls list_endpoints โ Finds status endpoint โ Returns health summary
Find problems:
You: "Show me all pools with errors"
AI: Calls /pools with fields=["id","name","status"] and filter for errors
Returns only the 3 pools with issues (instead of all 100 pools)
Debug issues:
You: "Search logs for OSD failures in the last hour"
AI: Uses croit_log_search with smart query parsing
Returns summary + drill-down capability for details
Capacity planning:
You: "Which pools are over 80% full?"
AI: Gets pools โ Filters by usage โ Returns list with recommendations
The server automatically reduces AI token consumption:
| Without Optimization | With Optimization | Savings |
|---|---|---|
| 100 pools, all fields โ 4,000 tokens | 100 pools, id+name โ 300 tokens | 92% |
| 500 OSDs, full data โ 15,000 tokens | Smart summary โ 1,000 tokens | 93% |
How it works:
The AI has access to these tools:
Core Tools:
list_endpoints - Discover available API endpointscall_endpoint - Make API calls with optimizationsearch_last_result - Drill down into large responsesCategory Tools (auto-generated):
manage_services - Ceph servicesmanage_pools - Storage poolsmanage_servers - Cluster serversmanage_s3 - S3 bucketsLog Search:
croit_log_search - Advanced log analysiscroit_log_check - Quick log condition checks# Clone repository
git clone https://github.com/croit/mcp-croit-ceph.git
cd mcp-croit-ceph
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run directly
export CROIT_HOST="https://your-cluster.com"
export CROIT_API_TOKEN="your-token"
python mcp-croit-ceph.py
For faster startup or offline development:
# Download spec from your cluster
curl -H "Authorization: Bearer $CROIT_API_TOKEN" \
https://your-cluster/api/swagger.json > openapi.json
# Use local spec
python mcp-croit-ceph.py --openapi-file openapi.json
python mcp-croit-ceph.py \
--openapi-file openapi.json \ # Use local OpenAPI spec
--no-permission-check \ # Skip role check (faster)
--max-category-tools 5 # Limit category tools
The server respects your API token's role:
Admin-only categories: maintenance, servers, config, hooks
Token not working:
Connection issues:
CROIT_HOST is correct (include https://)No tools showing:
--no-permission-check to testEnable debug logging:
export LOG_LEVEL=DEBUG
python mcp-croit-ceph.py
Contributions welcome! Please:
black formatter on Python filesSee LICENSE for details
Made with โค๏ธ for the Ceph community
Be the first to review this server!
by Modelcontextprotocol ยท Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.
by Microsoft ยท Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace ยท Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm โ conversationally
by mcp-marketplace ยท Finance
Free stock data and market news for any MCP-compatible AI assistant.