Index live · v1.11.0 · NOV 25 2026

TiDB

Official

PingCAP's open-source server lets your agent list and switch databases, list tables, run read-only queries, and execute SQL statements including inserts, updates and schema changes; it can also create and remove database users. It runs locally with uvx (Python 3.10+) using your TiDB connection details, and TiDB Cloud's console can generate the Claude Code command for a TiDB Cloud Starter instance. Use a database user with only the permissions you want the agent to have. The docs place it in the TiDB for AI section, marked Preview.

stdioSSEPythonAPI Key Required
34stars
Listed official

Configuration

claude mcp add --transport stdio TiDB \
  --env TIDB_HOST='<YOUR_TIDB_HOST>' \
  --env TIDB_PORT=<YOUR_TIDB_PORT> \
  --env TIDB_USERNAME='<YOUR_TIDB_USERNAME>' \
  --env TIDB_PASSWORD='<YOUR_TIDB_PASSWORD>' \
  --env TIDB_DATABASE='<YOUR_TIDB_DATABASE>' \
  -- uvx --from 'pytidb[mcp]' 'tidb-mcp-server'

Run in a terminal. Copied verbatim from the vendor's setup docs.

Quick Stats

Trust LevelOfficial
Stars34
Transportstdio, SSE
API KeyRequired
LanguagePython
CategoryDatabases & Data

Tags

tidbmysqlsqldatabasepreview

Get new MCP servers in your inbox. What we added, what failed the security audit, and why. See a past issue.