Sponsored by Deepsite.site

Rook Ceph Mcp

Created By
Shreyansh Sancheti5 months ago
A Model Context Protocol (MCP) server for managing Rook Ceph storage clusters in Kubernetes environments.
Content

Rook Ceph MCP Server

A Model Context Protocol (MCP) server for managing Rook Ceph storage clusters in Kubernetes environments.

Features

  • Cluster Management: List and monitor Ceph clusters
  • Storage Resources: Manage block pools, filesystems, and object stores
  • Manifest Templates: Access pre-configured YAML templates for common resources
  • Kubernetes Integration: Native Kubernetes API integration
  • Troubleshooting: Built-in prompts for cluster setup and troubleshooting

Installation

Local Development (stdio transport)

  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Start the server:
npm run start:stdio

Cloud Hosting (HTTP transport)

  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Start the HTTP server:
npm start

Docker Deployment

  1. Build the Docker image:
docker build -t rook-ceph-mcp .
  1. Run the container:
docker run -p 3000:3000 rook-ceph-mcp

Configuration

The server requires access to a Kubernetes cluster with Rook Ceph installed. It uses the default kubeconfig for authentication.

Prerequisites

  • Kubernetes cluster with Rook Ceph operator installed
  • kubectl configured with cluster access
  • Node.js 18+ and npm

Available Tools

Cluster Operations

  • list_clusters - List all Ceph clusters
  • get_cluster_status - Get detailed status of a specific cluster

Storage Resources

  • list_block_pools - List all Ceph block pools
  • list_filesystems - List all Ceph filesystems
  • list_object_stores - List all Ceph object stores

Resource Management

  • create_block_pool - Create a new Ceph block pool
  • delete_resource - Delete Rook Ceph resources

Available Resources

The server provides YAML manifest templates for:

  • rook-ceph://manifests/cluster - Ceph cluster configuration
  • rook-ceph://manifests/block-pool - Block pool configuration
  • rook-ceph://manifests/filesystem - Filesystem configuration
  • rook-ceph://manifests/object-store - Object store configuration

Available Prompts

  • setup_cluster - Step-by-step cluster setup guide
  • troubleshoot_cluster - Cluster troubleshooting assistance

Example Usage

List all clusters

{
  "tool": "list_clusters",
  "arguments": {
    "namespace": "rook-ceph"
  }
}

Create a block pool

{
  "tool": "create_block_pool",
  "arguments": {
    "name": "my-pool",
    "namespace": "rook-ceph",
    "replicated": {
      "size": 3
    }
  }
}

Get cluster status

{
  "tool": "get_cluster_status",
  "arguments": {
    "name": "rook-ceph",
    "namespace": "rook-ceph"
  }
}

Repository Structure

Based on the original git repository specification, the project maintains MCP contexts as YAML manifests across different branches:

  • main - Production Context
  • staging - Staging Context
  • dev - Development Context

Each branch contains:

├── cluster-manifests/
│   ├── ceph-cluster.yaml
│   ├── object-store.yaml
│   └── block-pool.yaml
├── apps/
│   ├── rook-operator.yaml
│   ├── monitoring-stack.yaml
│   └── security.yaml
├── kustomization.yaml
└── README.md

API Endpoints (HTTP Mode)

When running in HTTP mode, the server exposes these endpoints:

  • GET /health - Health check
  • GET /mcp/tools - List available tools
  • POST /mcp/call-tool - Execute a tool
  • GET /mcp/resources - List available resources
  • POST /mcp/read-resource - Read a resource
  • GET /mcp/prompts - List available prompts
  • POST /mcp/get-prompt - Get a prompt

Development

Building

npm run build

Development mode (stdio)

npm run dev:stdio

Development mode (HTTP)

npm run dev

Testing

npm test

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

For issues and questions:

  • Check the troubleshooting prompts built into the server
  • Review Rook Ceph documentation
  • Submit issues to the project repository

Security

This server requires Kubernetes cluster access and should be used with appropriate RBAC permissions. Always follow security best practices when deploying in production environments.

Server Config

{
  "mcpServers": {
    "rook-ceph-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "3000:3000",
        "rook-ceph-mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
Tavily Mcp
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors