Agent skill

Relational Database MCP Cloudbase

by TencentCloudBase in TencentCloudBase/CloudBase-AI-Toolkit

[Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP.

MITAuto-check passedDatabases

Install Relational Database MCP Cloudbase

skills CLI
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill relational-database-mcp-cloudbase -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TencentCloudBase/CloudBase-AI-Toolkit relational-database-mcp-cloudbase --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/config/source/skills/relational-database-mcp-cloudbase .claude/skills/relational-database-mcp-cloudbase && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
relational-database-mcp-cloudbase
GitHub stars
1.1k
Used in
1 other repo
Token cost
~2.5k tokens
SKILL.md length
1,086 words
Files
1
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

[Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP.

  • Works in 4 steps: queryMysqlDatabase → manageMysqlDatabase → queryPermissions → …
  • Tasks that involve MCP servers
  • SKILL.md covers Sibling skills (local only), Activation Contract, When to use this skill and How to use this skill (for a…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Relational Database MCP Cloudbase is an agent skill from TencentCloudBase/CloudBase-AI-Toolkit. [Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP. It defines the canonical SQL management flow with queryMysqlDatabase, manageMysqlDatabase, queryPermissions, and managePermissions, including MySQL provisioning, destroy flow, async status checks, safe query execution, schema initialization, and permission updates. New environments should use PostgreSQL — see postgresql-development skill instead.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering MCP servers and SQL. It works with Model Context Protocol, MySQL, SQL and PostgreSQL. The repository describes itself as: Backend for AI coding agents on CloudBase — database, auth, functions via Plugin, Skills & MCP. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers
  • Tasks that involve SQL

Example prompts

  • “/relational-database-mcp-cloudbase”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. queryMysqlDatabase
  2. manageMysqlDatabase
  3. queryPermissions
  4. managePermissions

What it can do on your machine

Read from SKILL.md and the folder at commit 21af91c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json and sql).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Relational Database MCP Cloudbase loads about 2.5k tokens when it runs. Until then it costs about 127 tokens; SKILL.md has 1,086 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~127
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TencentCloudBase/CloudBase-AI-Toolkit at commit 21af91c, republished under its MIT licence (© TencentCloudBase). 1,086 words, ~2,496 tokens.

Download SKILL.mdSave it as .claude/skills/relational-database-mcp-cloudbase/SKILL.md (or your agent's skills folder).
name
relational-database-mcp-cloudbase
description
[Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP. It defines the canonical SQL management flow with `queryMysqlDatabase`, `manageMysqlDatabase`, `queryPermissions`, and `managePermissions`, including MySQL provisioning, destroy flow, async status checks, safe query execution, schema initialization, and permission updates. New environments should use PostgreSQL — see postgresql-development skill instead.
version
2.34.8
alwaysApply
false
metadata.priority
5
metadata.deprecated
true

Sibling skills (local only)

Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.

If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.

Activation Contract

Use this first when
  • The agent must inspect SQL data, execute SQL statements, provision or destroy MySQL, initialize table structure, or manage table security rules through MCP tools.
Read before writing code if
  • The task includes queryMysqlDatabase, manageMysqlDatabase, queryPermissions, or managePermissions.
Then also read
  • Web application integration -> ../relational-database-web-cloudbase/SKILL.md
  • Raw HTTP database access -> ../http-api-cloudbase/SKILL.md
Do NOT use for
  • Frontend or backend application code that should use SDKs instead of MCP operations.
Common mistakes / gotchas
  • Initializing SDKs in an MCP management flow.
  • Running write SQL or DDL before checking whether MySQL is provisioned and ready.
  • Treating document database tasks as MySQL management tasks.
  • Skipping _openid and permissions review after creating new SQL tables.
  • Destroying MySQL without explicit confirmation or without checking whether the environment still needs the instance.
  • Using getConnectionInfo (or inferred host/password) to build a default TCP client for new apps. Prefer SDK / runQuery / runStatement; TCP credentials are an explicit migration exception only.

When to use this skill

Use this skill when an agent needs to operate on CloudBase Relational Database via MCP tools, for example:

  • Inspecting or querying SQL data
  • Provisioning MySQL for an environment
  • Destroying MySQL for an environment
  • Polling MySQL provisioning status
  • Modifying data or schema (INSERT/UPDATE/DELETE/DDL)
  • Initializing tables and indexes after MySQL is ready
  • Reading or changing table permissions

Do NOT use this skill for:

  • Building Web or Node.js applications that talk to CloudBase Relational Database directly through SDKs
  • Auth flows or user identity management

How to use this skill (for a coding agent)

  1. Recognize MCP context

    • If you can call tools like queryMysqlDatabase, manageMysqlDatabase, queryPermissions, managePermissions, you are in MCP context.
    • In this context, never initialize SDKs for CloudBase Relational Database; use MCP tools instead.
  2. Pick the right tool for the job

    • Read-only SQL and provisioning status checks -> queryMysqlDatabase
    • MySQL provisioning, MySQL destruction, write SQL, DDL, schema initialization -> manageMysqlDatabase
    • Inspect permissions -> queryPermissions(action="getResourcePermission")
    • Change permissions -> managePermissions(action="updateResourcePermission")
  3. Always be explicit about safety

    • Before destructive operations (DELETE, DROP, etc.), summarize what you are about to run and why.
    • Prefer queryMysqlDatabase(action="getInstanceInfo") or a read-only SQL check before writes.
    • Provisioning or destroying MySQL requires explicit confirmation because both actions have environment-level impact.

Available MCP tools (CloudBase Relational Database)

These tools are the supported way to interact with CloudBase Relational Database via MCP:

1. queryMysqlDatabase
  • Purpose: Query SQL data and provisioning state.
  • Use for:
    • Running SELECT and other read-only SQL queries with action="runQuery"
    • Checking whether MySQL already exists with action="getInstanceInfo" (lifecycle only — no connection credentials)
    • Inspecting asynchronous provisioning progress with action="describeCreateResult" or action="describeTaskStatus"
    • Exception only: action="getConnectionInfo" returns the raw connection/cluster payload (may include credentials) for migrating existing TCP/ORM clients. Do not use this for new business CRUD — prefer Web/Node SDK or runQuery / runStatement.

Example flow:

json
{
  "action": "runQuery",
  "sql": "SELECT id, email FROM users ORDER BY created_at DESC LIMIT 50"
}

Do NOT call getConnectionInfo and then wire pymysql / mysql2 / DATABASE_URL into a cloud function for greenfield apps. Platform-delegated SQL and SDK access are the default.

2. manageMysqlDatabase
  • Purpose: Manage SQL lifecycle and execute mutating SQL.
  • Use for:
    • Provisioning MySQL with action="provisionMySQL"
    • Destroying MySQL with action="destroyMySQL"
    • Executing INSERT, UPDATE, DELETE, CREATE TABLE, ALTER TABLE, DROP TABLE with action="runStatement"
    • Initializing tables and indexes with action="initializeSchema"

Important: When creating a new table, you must include the _openid column for per-user access control:

sql
_openid VARCHAR(64) DEFAULT '' NOT NULL

Note: when a user is logged in, _openid is automatically populated by the server from the authenticated session. Do not manually fill it in normal inserts.

Before calling this tool, confirm:

  • The current environment has a ready MySQL instance, or you have just provisioned one.
  • The target tables and conditions are correct.
  • You have run a corresponding read-only query when appropriate.

When destroying MySQL, confirm:

  • The current environment really should lose the SQL instance.
  • You have explicit confirmation for the destructive action.
  • You are prepared to query describeTaskStatus afterward to inspect the destroy result.
Show full SKILL.md (411 more words)Show less
3. queryPermissions
  • Purpose: Read permission configuration for a given SQL table.
  • Use for:
    • Understanding who can read/write a table
    • Auditing permissions on sensitive tables
    • Call shape: queryPermissions(action="getResourcePermission", resourceType="sqlDatabase", resourceId="<tableName>")
4. managePermissions
  • Purpose: Set or update permissions for a given SQL table.
  • Use for:
    • Hardening access to sensitive data
    • Opening up read access while restricting writes
    • Updating resource-level permission configuration
    • Call shape: managePermissions(action="updateResourcePermission", resourceType="sqlDatabase", resourceId="<tableName>", permission="READONLY")

Compatibility

  • Canonical plugin name: permissions
  • Legacy plugin aliases security-rule, security-rules, secret-rule, secret-rules, and access-control are still routed to permissions
  • Legacy tools readSecurityRule and writeSecurityRule are removed; always use queryPermissions and managePermissions

Scenario 1: MySQL is not provisioned yet
  1. Call queryMysqlDatabase(action="getInstanceInfo").
  2. If no instance exists, call manageMysqlDatabase(action="provisionMySQL", confirm=true).
  3. Poll provisioning status with:
    • queryMysqlDatabase(action="describeCreateResult")
    • queryMysqlDatabase(action="describeTaskStatus")
  4. Only continue when the returned lifecycle status is READY.
  5. For MySQL provisioning, prefer describeCreateResult; reserve describeTaskStatus for destroy flows whose task response carries TaskName.
Scenario 2: Safely inspect data in a table
  1. Use queryMysqlDatabase(action="runQuery") with a limited SELECT.
  2. Include LIMIT and relevant filters.
  3. Review the result set and confirm it matches expectations before any write operation.
Scenario 3: Apply schema initialization after provisioning
  1. Confirm MySQL is ready.
  2. Prepare ordered DDL statements.
  3. Run them through manageMysqlDatabase(action="initializeSchema").
  4. After creating tables, verify permissions with queryPermissions or managePermissions.
Scenario 4: Execute a targeted write or DDL change
  1. Use queryMysqlDatabase(action="runQuery") to inspect current data or schema if needed.
  2. Run the mutation once with manageMysqlDatabase(action="runStatement").
  3. Validate with another read-only query or by checking security rules.
Scenario 5: Destroy MySQL when the environment no longer needs it
  1. Use queryMysqlDatabase(action="getInstanceInfo") to confirm the current environment still has a SQL instance.
  2. Call manageMysqlDatabase(action="destroyMySQL", confirm=true).
  3. Query queryMysqlDatabase(action="describeTaskStatus") until the destroy task completes or fails.
  4. If the task succeeds, optionally call queryMysqlDatabase(action="getInstanceInfo") to confirm the instance no longer exists.
  5. If the task fails, treat the returned error as the terminal result and let the caller decide whether to retry.

Key principle: MCP tools vs SDKs

  • MCP tools are for agent operations and database management:

    • Provision MySQL.
    • Destroy MySQL.
    • Poll lifecycle state.
    • Run ad-hoc SQL.
    • Inspect and change resource permissions.
    • Do not depend on application auth state.
  • SDKs are for application code:

    • Frontend Web apps -> Web Relational Database skill.
    • Backend Node apps -> Node Relational Database quickstart.

When working as an MCP agent, always prefer these MCP tools for CloudBase Relational Database, and avoid mixing them with SDK initialization in the same flow.

© TencentCloudBase, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in config/source/skills/relational-database-mcp-cloudbase of TencentCloudBase/CloudBase-AI-Toolkit.

Open the folder on GitHubat commit 21af91c

Used in 1 other repository

We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in TencentCloudBase/CloudBase-AI-Toolkit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Relational Database MCP Cloudbase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Relational Database MCP Cloudbase compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Relational Database MCP Cloudbase this skillTencentCloudBase/CloudBase-AI-Toolkit1.1k1 repos~2.5kAutomated safety check: PassMIT
Mindsdb MCP SkillLeoYeAI/openclaw-master-skills2.2k—~2.5kAutomated safety check: PassMIT
Aurora Dsqlaws/agent-toolkit-for-aws2.8k—~9.6kAutomated safety check: PassApache-2.0
Semantic Analystsidequery/sidemantic129—~982Automated safety check: PassAGPL-3.0
Cloud SQL Basicsgoogle/skills21k—~973Automated safety check: PassApache-2.0
Cloud SQL Basicsdavila7/claude-code-templates32k—~810Automated safety check: PassMIT

Similar skills

  • Mindsdb MCP Skill

    LeoYeAI/openclaw-master-skills

    MindsDB MCP服务器交互技能,用于通过自然语言查询和操作200+企业级数据源。当用户需要查询数据库、分析数据、创建AI模型、连接数据源(MySQL、PostgreSQL、MongoDB、Excel、CSV、Gmail、Slack等)、执行SQL查询、进行数据预测、构建知识库(RAG)、智能问答、文档检索或任何与数据库交互的任务时使用此技能。即使没有明确提到MindsDB,只要涉及数据库操…

    2.2k GitHub stars~2.5k tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • Aurora Dsql

    aws/agent-toolkit-for-aws

    Official

    Provisions and manages Aurora DSQL clusters, connects via psql or DSQL Connectors, manages schemas, runs queries, migrates from MySQL, diagnoses query plans, and develops apps on serverless…

    2.8k GitHub stars~9.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Semantic Analyst

    sidequery/sidemantic

    Answer analytical, KPI, metric, trend, cohort, and business-performance questions through a Sidemantic semantic layer.

    129 GitHub stars~982 tokensUpdated today
    DatabasesAuto-check passed
  • Cloud SQL Basics

    google/skills

    Official

    This file generates or explains Cloud SQL resources. An agent skill from google/skills.

    21k GitHub stars~973 tokensUpdated today
    DatabasesAuto-check passed
  • Cloud SQL Basics

    davila7/claude-code-templates

    Creates and manages Cloud SQL instances for MySQL, PostgreSQL, and SQL Server.

    32k GitHub stars~810 tokensUpdated today
    DatabasesAuto-check passed
  • Sql2er

    ystemsrx/sql_to_ER

    A skill your agent uses when the user wants a Chen-model ER diagram from SQL CREATE TABLE statements or DBML, wants to rearrange or clean up an existing sql2er state, wants a skeleton-only overview…

    188 GitHub starsUsed in 1 repo~1.1k tokens
    DatabasesAuto-check passed

More from TencentCloudBase/CloudBase-AI-Toolkit

All 49 skills in this repo
  • AI Model Nodejs

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses for Node.js backend AI via @cloudbase/node-sdk (=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration.

    1.1k GitHub starsUsed in 3 repos~5k tokens
    Auto-check passed
  • HTTP API Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    CloudBase official HTTP API client guide. An agent skill from TencentCloudBase/CloudBase-AI-Toolkit.

    1.1k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Cloud API Recipe Authoring

    TencentCloudBase/CloudBase-AI-Toolkit

    Author or revise a cloud-api-operations recipe (config/source/skills/cloud-api-operations/references/recipes/).

    1.1k GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Manage Local Skills

    TencentCloudBase/CloudBase-AI-Toolkit

    Analyze, standardize, validate, and sync locally maintained skills into agent skill directories with a skills CLI-aligned workflow.

    1.1k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Cloudbase Agent Python

    TencentCloudBase/CloudBase-AI-Toolkit

    Build production-ready AI agent backends using the CloudBase Agent Python SDK — create agents with LangGraph/CrewAI/LlamaIndex, serve them via FastAPI with AG-UI protocol streaming +…

    1.1k GitHub starsUsed in 2 repos~2.9k tokens
    Auto-check: notes
  • Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses when you develop, design, build, deploy, debug, migrate, or troubleshoot CloudBase (腾讯云开发, 云开发, TCB, 微信云开发) projects — Web, 微信小程序, 小程序, uni-app, mobile (iOS, Android…

    1.1k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed

Categories

Questions about Relational Database MCP Cloudbase

What does Relational Database MCP Cloudbase do?

[Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP. Relational Database MCP Cloudbase is an agent skill from TencentCloudBase/CloudBase-AI-Toolkit. [Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP.

When should I use Relational Database MCP Cloudbase?

Relational Database MCP Cloudbase fits situations like: tasks that involve MCP servers; tasks that involve SQL.

How do I install Relational Database MCP Cloudbase in Claude Code?

Run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill relational-database-mcp-cloudbase -a claude-code`. Or copy the skill folder (config/source/skills/relational-database-mcp-cloudbase in TencentCloudBase/CloudBase-AI-Toolkit) into .claude/skills/relational-database-mcp-cloudbase in your project. Claude Code loads it when a task matches its description.

How do I install Relational Database MCP Cloudbase in Codex?

Run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill relational-database-mcp-cloudbase -a codex`. Or copy the skill folder (config/source/skills/relational-database-mcp-cloudbase in TencentCloudBase/CloudBase-AI-Toolkit) into .agents/skills/relational-database-mcp-cloudbase in your project. Codex loads it when a task matches its description.

Can I use Relational Database MCP Cloudbase in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill relational-database-mcp-cloudbase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/relational-database-mcp-cloudbase, .gemini/skills/relational-database-mcp-cloudbase, .github/skills/relational-database-mcp-cloudbase and .opencode/skills/relational-database-mcp-cloudbase in your project.

What does Relational Database MCP Cloudbase need to run?

SKILL.md names no scripts, command-line tools or credentials: Relational Database MCP Cloudbase is instructions for the agent only. Our summary lists: Node.js.

Does Relational Database MCP Cloudbase access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Relational Database MCP Cloudbase safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Relational Database MCP Cloudbase use?

Relational Database MCP Cloudbase is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Relational Database MCP Cloudbase use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Relational Database MCP Cloudbase?

Skills that share tags, products or a category with Relational Database MCP Cloudbase: Mindsdb MCP Skill (LeoYeAI/openclaw-master-skills, 2.2k stars), Aurora Dsql (aws/agent-toolkit-for-aws, 2.8k stars), Semantic Analyst (sidequery/sidemantic, 129 stars) and Cloud SQL Basics (google/skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Relational Database MCP Cloudbase?

TencentCloudBase (a GitHub organization) maintains it in TencentCloudBase/CloudBase-AI-Toolkit, which has 1,133 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 7, 2026.

Source: TencentCloudBase/CloudBase-AI-Toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.