Ceph Command Knowledge Base MCP Server

Ceph Command Knowledge Base MCP Server

Enables AI agents to verify Ceph CLI commands, config parameters, and review test scripts using a pre-generated knowledge base.

Category
Visit Server

README

Ceph Command Knowledge Base

Verified knowledge base of 1,254 Ceph CLI commands and 2,660 config parameters for Ceph 20.2.1 (Tentacle). Ships pre-generated — no Ceph cluster needed to use.

Exposes an MCP server and REST API so AI agents can verify commands, configs, and review test scripts before generating automation. Eliminates command hallucinations.

Setup

1. Clone and install

git clone https://github.com/pdhiran/ceph-command-kb.git
cd ceph-command-kb
pip install -e .

2. Connect your agent

Choose the integration that matches your agent:


Cursor — add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "ceph-cmd-kb": {
      "command": "python3",
      "args": ["-m", "ceph_command_kb.server.mcp_server", "--kb-path", "/path/to/ceph-command-kb/knowledge/ceph-20.2.1-tentacle"],
      "cwd": "/path/to/ceph-command-kb"
    }
  }
}

Restart Cursor. The MCP server starts automatically.


Claude Desktop — start the server, then add to claude_desktop_config.json:

python -m ceph_command_kb.server.mcp_server --transport sse --port 8080
{
  "mcpServers": {
    "ceph-cmd-kb": { "url": "http://localhost:8080/sse" }
  }
}

Continue / Cline / Windsurf — start the server and point to the SSE endpoint:

python -m ceph_command_kb.server.mcp_server --transport sse --port 8080

Connect to http://localhost:8080/sse in the tool's MCP settings.


IBM watsonx / IBM Bob / LangChain / CrewAI / CI pipelines — use the REST API:

python -m ceph_command_kb.server.rest_api --host 0.0.0.0 --port 9090
# Verify a command
curl -X POST http://localhost:9090/api/verify_command \
  -H "Content-Type: application/json" \
  -d '{"command": "ceph osd pool create"}'

# Verify a config parameter
curl -X POST http://localhost:9090/api/verify_config \
  -H "Content-Type: application/json" \
  -d '{"name": "osd_pool_default_size"}'

# Search commands
curl -X POST http://localhost:9090/api/search_commands \
  -H "Content-Type: application/json" \
  -d '{"query": "nfs cluster create"}'

# Review a test script
curl -X POST http://localhost:9090/api/review_test \
  -H "Content-Type: application/json" \
  -d '{"script_content": "ceph osd pool create mypool 32\nrbd create img --size 1024"}'

# Health check
curl http://localhost:9090/health

Additional integration guides:

3. Use it

Once connected, agents automatically verify Ceph commands against the KB. You can also ask directly:

  • "Verify the command ceph osd pool create --size 3"
  • "What rbd commands are available for mirroring?"
  • "Show me the default value of osd_pool_default_size"
  • "Review this test file for issues"

Available Tools

Command Verification (12 tools)

Tool Purpose
verify_command Verify command + flags + arguments exist
find_command Look up a command by exact name
search_commands Search across names and descriptions
list_subcommands List subcommands under a prefix
search_flag Find which commands accept a flag
search_argument Find commands by argument name
get_help Get parsed help metadata
get_raw_help Get original help text
get_examples Get usage examples
list_versions List available KB versions
find_binary List all commands for a binary
search_keyword Search by keyword

Config Verification (4 tools)

Tool Purpose
verify_config Verify config exists, get type/default/constraints
search_config Search config parameters by name or description
get_config_help Get full config metadata
list_configs_by_section List all configs for a subsystem (e.g., osd, rgw)

Test Validation (2 tools)

Tool Purpose
validate_script Quick check — extract and verify commands
review_test Full review — verification, flags, cleanup, risk, duplicates

Supported Ceph Binaries

ceph, rbd, rados, cephadm, ceph-volume, ceph-authtool, ceph-bluestore-tool, ceph-objectstore-tool, crushtool, monmaptool, osdmaptool

Further Documentation

  • Development Guide — architecture, project structure, adding binaries, design decisions, maintainer guide

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured