relational-database-mcp-cloudbase
Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../auth-tool-cloudbase/SKILL.md`.
Install / Use
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill relational-database-mcp-cloudbaseInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of relational-database-mcp-cloudbase
relational-database-mcp-cloudbase scores 82/100 on our quality scale, 511th of 600 Data & Analytics skills we index.
Its SKILL.md is 10 KB long, well organised into 22 sections with 2 code examples: a thorough specification that gives an agent plenty to work with.
With 1,124 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so relational-database-mcp-cloudbase is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
relational-database-mcp-cloudbase compared with similar skills
All 4 of these similar skills score higher than relational-database-mcp-cloudbase; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| relational-database-mcp-cloudbase (this skill)by TencentCloudBase | 82 | 1.1k | 46d ago | SKILL.md |
| claude-memby thedotmack | 100 | 115.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 110.4k | 1d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 81.3k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.2k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install relational-database-mcp-cloudbase?
- Run
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill relational-database-mcp-cloudbase. The install tabs above show the steps for each supported agent. - Which AI agents does relational-database-mcp-cloudbase work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is relational-database-mcp-cloudbase safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is relational-database-mcp-cloudbase still maintained?
- The repository was last updated about 2 months ago, so relational-database-mcp-cloudbase is actively maintained.
Skill content
View source on GitHubname: relational-database-mcp-cloudbase description: "[Deprecated] Existing CloudBase MySQL only. Do not recommend MySQL for new relational work — use postgresql-development. Read this when the environment already has a MySQL instance and the task is queryMysqlDatabase, manageMysqlDatabase, queryPermissions, or managePermissions (inspect, write SQL, schema, permissions, destroy). Do not provision MySQL." version: 2.37.5 license: MIT alwaysApply: false metadata: priority: "5" 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 environment already has a CloudBase MySQL instance, and the agent must inspect that instance, run SQL, change schema, manage table security rules, or destroy it through MCP.
- Do not choose this skill for a new relational database. New relational work uses
postgresql-development-cloudbase.
Read before writing code if
- The task includes
queryMysqlDatabase,manageMysqlDatabase,queryPermissions, ormanagePermissions.
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 confirming the environment already has a ready MySQL instance.
- Trying to create a MySQL instance through MCP. Provisioning has been retired from the tool surface: new environments use PostgreSQL, and instances are only created in the console.
- Treating document database tasks as MySQL management tasks.
- Skipping
_openidand 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
- Destroying an existing MySQL instance
- Polling an in-flight MySQL task (create tasks are started in the console — MCP no longer creates instances)
- 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)
-
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.
- If you can call tools like
-
Pick the right tool for the job
- Read-only SQL and create/destroy task status checks ->
queryMysqlDatabase - MySQL destruction, write SQL, DDL, schema initialization ->
manageMysqlDatabase - Inspect permissions ->
queryPermissions(action="getResourcePermission") - Change permissions ->
managePermissions(action="updateResourcePermission")
- Read-only SQL and create/destroy task status checks ->
-
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. - Destroying MySQL requires explicit confirmation because it has environment-level impact; provisioning is not offered here at all.
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 instance / task state.
- Use for:
- Running
SELECTand other read-only SQL queries withaction="runQuery" - Checking whether MySQL already exists with
action="getInstanceInfo"(lifecycle only — no connection credentials) - Inspecting an in-flight create or destroy task with
action="describeCreateResult"oraction="describeTaskStatus"(create tasks originate in the console) - 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 orrunQuery/runStatement.
- Running
Example flow:
{
"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 an existing SQL instance and execute mutating SQL.
- Use for:
- Destroying MySQL with
action="destroyMySQL" - Executing
INSERT,UPDATE,DELETE,CREATE TABLE,ALTER TABLE,DROP TABLEwithaction="runStatement" - Initializing tables and indexes with
action="initializeSchema"
- Destroying MySQL with
Provisioning is not available here. provisionMySQL has been removed from the action set: a call carrying it fails schema validation, and a missing instance returns MYSQL_NOT_CREATED with a console entry rather than a create hint.
Important: When creating a new table, you must include the _openid column for per-user access control:
_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 already has a ready MySQL instance.
- 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
describeTaskStatusafterward to inspect the destroy result.
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, andaccess-controlare still routed topermissions - Legacy tools
readSecurityRuleandwriteSecurityRuleare removed; always usequeryPermissionsandmanagePermissions
Recommended lifecycle flow
Scenario 1: The environment has no MySQL instance
- Call
queryMysqlDatabase(action="getInstanceInfo"). - If no instance exists, stop. MySQL provisioning is no longer available through MCP: the result is
MYSQL_NOT_CREATEDwith a console entry and no create hint. - New environments should use CloudBase PostgreSQL — see
../postgresql-development-cloudbase/SKILL.md. - An instance created outside the tool can still be observed: poll
queryMysqlDatabase(action="describeCreateResult")orqueryMysqlDatabase(action="describeTaskStatus"), and only continue once the lifecycle status isREADY. - Reserve
describeTaskStatusfor destroy flows whose task response carriesTaskName.
Scenario 2: Safely inspect data in a table
- Use
queryMysqlDatabase(action="runQuery")with a limitedSELECT. - Include
LIMITand relevant filters. - Review the result set and confirm it matches expectations before any write operation.
Scenario 3: Apply schema initialization on a ready instance
- Confirm MySQL is ready.
- Prepare ordered DDL statements.
- Run them through
manageMysqlDatabase(action="initializeSchema"). - After creating tables, verify permissions with
queryPermissionsormanagePermissions.
Scenario 4: Execute a targeted write or DDL change
- Use
queryMysqlDatabase(action="runQuery")to inspect current data or schema if needed. - Run the mutation once with
manageMysqlDatabase(action="runStatement"). - Validate with another read-only query or by checking security rules.
Scenario 5: Destroy MySQL when the environment no longer needs it
- Use
queryMysqlDatabase(action="getInstanceInfo")to confirm the current environment still has a SQL instance. - Call
manageMysqlDatabase(action="destroyMySQL", confirm=true). - Query
queryMysqlDatabase(action="describeTaskStatus")until the destroy task completes or fails. - If the task succeeds, optionally call
queryMysqlDatabase(action="getInstanceInfo")to confirm the instance no longer exists. - 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:
- Inspect and manage an existing MySQL instance — never create one.
- 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.
Related Skills
claude-mem
115.0kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
110.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
81.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
79.2kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
