Provides database operations and query capabilities for TiDB serverless database clusters, enabling management and interaction with TiDB Cloud instances.
mcp-server-tidb
MCP server implementation for TiDB (serverless) database.
Prerequisites
uv (Python package installer)
Installation
Configuration
Go tidbcloud.com to create a free TiDB database cluster
Configuration can be provided through environment variables, or using .env:
TIDB_HOST- TiDB host address, e.g. 'gateway01.us-east-1.prod.aws.tidbcloud.com'TIDB_PORT- TiDB port (default: 4000)TIDB_USERNAME- Database username, e.g. 'xxxxxxxxxx.<username>'TIDB_PASSWORD- Database passwordTIDB_DATABASE- Database name, default is test
Run with Claude Desktop
Config Claude Desktop, HOWTO
claude_desktop_config.json:
If you're running mcp-server-tidb in WSL, the claude_desktop_config.json should look like this: