okctl MCP Server

okctl MCP Server

okctl-mcp-server•bylizzy-0323

An MCP server that exposes OceanBase cluster, tenant, backup policy, SQL and component management capabilities to MCP clients by calling the underlying okctl command-line tool.

License: Apache 2.0 License•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides cluster management tools for creating, deleting, viewing, scaling, updating and upgrading OceanBase clusters.
  • •Provides tenant management tools covering creation, deletion, scaling, updates, upgrades, password changes, standby activation, log replay and switchover.
  • •Provides backup policy management tools for creating, deleting, viewing, updating, pausing and resuming OceanBase backup policies.
  • •Provides SQL operation tools to configure a cluster connection and execute SQL queries against OceanBase clusters.

BEST FOR

  • •Managing OceanBase clusters and tenants through an MCP client instead of running okctl commands directly.
  • •Running SQL queries against OceanBase clusters from an MCP-enabled environment.
  • •Administering OceanBase backup policies, including pausing and resuming them.

ABOUT OKCTL-MCP-SERVER

okctl MCP Server is cataloged as an MCP server attributed to lizzy-0323. An MCP server that exposes OceanBase cluster, tenant, backup policy, SQL and component management capabilities to MCP clients by calling the underlying okctl command-line tool. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache 2.0 License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for okctl MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server expose only a subset of its tools?

Yes; the --tools argument specifies which tool groups to enable, with options including all, clusters, tenants, backup_policy, components and sql.

Can the server run over SSE instead of stdio?

Yes; the --use_sse flag uses Server-Sent Events transport instead of stdio, and --port sets the SSE port.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 95826176d28d · 采集于 2026-11-13 10:53:52 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

OceanBase Kubernetes Control Tool (okctl) MCP Server

English | 简体中文

Project Overview

This project is the MCP server implementation for the OceanBase Kubernetes Control Tool (okctl). It provides a set of tool functions for managing OceanBase clusters, tenants, and backup policies. These functions are implemented by calling the underlying okctl command-line tool and exposing these features to clients through the MCP protocol.

Functional Modules

This project includes the following main tools:

1. Cluster Management (clusters.py)

Provides functionality for creating, deleting, viewing, scaling, updating, and upgrading OceanBase clusters.

  • list_all_clusters() - List all OceanBase clusters
  • show_cluster() - Display detailed information of a specified cluster
  • create_cluster() - Create a new OceanBase cluster
  • delete_cluster() - Delete a specified OceanBase cluster
  • scale_cluster() - Scale an OceanBase cluster
  • update_cluster() - Update OceanBase cluster configuration
  • upgrade_cluster() - Upgrade OceanBase cluster version

2. Tenant Management (tenants.py)

Provides functionality for creating, deleting, viewing, scaling, updating, and managing OceanBase tenants.

  • list_tenants() - List all tenants
  • create_tenant() - Create a new tenant
  • delete_tenant() - Delete a specified tenant
  • show_tenant() - Display tenant detailed information
  • scale_tenant() - Scale tenant resources
  • update_tenant() - Update tenant configuration
  • upgrade_tenant() - Upgrade tenant version
  • change_tenant_password() - Change tenant password
  • activate_tenant() - Activate standby tenant
  • replay_tenant_log() - Replay tenant logs
  • switchover_tenant() - Switch between primary and standby tenants

3. Backup Policy Management (backup_policy.py)

Provides functionality for creating, deleting, viewing, updating, and managing OceanBase backup policies.

  • list_backup_policies() - List all backup policies
  • create_backup_policy() - Create a new backup policy
  • delete_backup_policy() - Delete a specified backup policy
  • show_backup_policy() - Display backup policy detailed information
  • update_backup_policy() - Update backup policy
  • pause_backup_policy() - Pause backup policy
  • resume_backup_policy() - Resume backup policy

4. SQL Operations (sql.py)

Provides functionality for configuring database connections and executing SQL queries on OceanBase clusters.

  • configure_cluster_connection() - Configure database connection to a cluster
    • Parameters: cluster_name, tenant_name (default: "sys"), namespace (default: "default"), user, password (if not provided, will use environment variable OB_CLUSTER_PASSWORD), port (default: 2881)
    • Returns: Database connection configuration information
  • execute_cluster_sql() - Execute SQL queries on a cluster
    • Parameters: query, cluster_name (optional), tenant_name (default: "sys"), database (default: "oceanbase"), namespace (default: "default")
    • Returns: Query results
    • Supports various SQL commands including SELECT, SHOW TABLES, SHOW COLUMNS, DESCRIBE, and DML statements

5. Component Management (components.py)

Provides functionality for installing, updating, and managing OceanBase components.

  • list_components() - List all installed components
  • install_component() - Install a new component
  • update_component() - Update component

Development Environment Setup

Prerequisites

  • Python 3.10 or higher installed
  • uv package manager installed (uv official documentation)
  • OceanBase Kubernetes Control Tool (okctl) installed and configured
  • Kubernetes environment configured with access permissions to OceanBase clusters

Configuring the MCP Server

{
  "mcpServers": {
    "okctl-mcp-server-py": {
      "command": "uv",
      "args": ["--directory", "/path/to/okctl-mcp-server", "run", "src/okctl/server.py"],
      "env": {
        // you need to set these environment variables if you want to connect to cluster by root@sys
        "OB_CLUSTER_PASSWORD": "<password of cluster>"
      }
    }
  }
}

Command Line Arguments

  • --tools: Specify which tools to enable, comma separated. Options:

    • all: Enable all tools (default)
    • clusters: Enable cluster management tools only
    • tenants: Enable tenant management tools only
    • backup_policy: Enable backup policy management tools only
    • components: Enable component management tools only
    • sql: Enable SQL operation tools only

    Example: --tools=clusters,tenants,sql

  • --use_sse: Use Server-Sent Events (SSE) transport instead of stdio

  • --port: Specify the port for SSE transport (default: 8000)

Important Notes

  • The server needs to run in an environment with access to the Kubernetes cluster
  • All functions are implemented by calling the underlying okctl command-line tool, so ensure okctl is properly installed and configured
  • Most functions provide a namespace parameter with a default value of "default", which can be specified as needed
  • Some operations (such as deleting clusters, deleting tenants) may be irreversible, please proceed with caution
  • When executing SQL queries, it is recommended to provide a more precise prompt, otherwise it may return an error
  • It is recommended to perform backups before executing important operations

Contributing

Issues and Pull Requests are welcome to improve this project.

License

This project is licensed under the Apache 2.0 License.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for okctl MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/okctl-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage