Tidb Sql
Executes complex TiDB SQL queries directly within this AI, allowing for rapid data exploration and analysis without needing a live database connection.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add pingcap-tidb-sql npx -- -y @trustedskills/pingcap-tidb-sql
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"pingcap-tidb-sql": {
"command": "npx",
"args": [
"-y",
"@trustedskills/pingcap-tidb-sql"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with a TiDB database using SQL queries. It enables agents to retrieve, update, and manage data stored within the TiDB system. The agent can execute complex SQL statements, including SELECT, INSERT, UPDATE, and DELETE operations, facilitating data-driven decision making and automated workflows.
When to use it
- Data Analysis: An agent needs to extract specific insights from a large dataset stored in TiDB for reporting or further analysis.
- Automated Data Entry: An agent is tasked with populating a TiDB database with information gathered from external sources, such as web scraping or API integrations.
- Inventory Management: An agent manages stock levels by updating records within a TiDB database based on sales data or new shipments.
- Customer Relationship Management (CRM): An agent updates customer profiles and order history stored in TiDB.
Key capabilities
- Execute SQL queries against a TiDB instance.
- Retrieve, insert, update, and delete data within tables.
- Supports complex SQL statements.
Example prompts
- "Run the query 'SELECT * FROM orders WHERE customer_id = 123'"
- "Insert a new record into the 'products' table with name='Widget', price=19.99."
- "Update the 'customers' table, setting the status to 'active' for user ID 456."
Tips & gotchas
- Ensure the agent has appropriate credentials and network access to connect to the TiDB database.
- Be mindful of SQL injection vulnerabilities when constructing queries dynamically; sanitize inputs properly.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.