mcp-server-tidb is an MCP server implementation for TiDB (Serverless) databases. The project was developed by c4pt0r and is maintained on GitHub.
Purpose: To provide MCP server capabilities for TiDB databases, enabling MCP-compatible clients (such as Claude Desktop) to interact with TiDB databases.
Main capabilities: Provides an MCP server implementation for connecting to TiDB (Serverless) databases.
How to use:
- Install uv (a Python package installer).
- Go to tidbcloud.com to create a free TiDB database cluster.
- Configure through environment variables or a .env file. Configurable items include:
- TIDB_HOST: TiDB host address, for example 'gateway01.us-east-1.prod.aws.tidbcloud.com'
- TIDB_PORT: TiDB port (default: 4000)
- TIDB_USERNAME: database username, for example 'xxxxxxxxxx.<username>'
- TIDB_PASSWORD: database password
- TIDB_DATABASE: database name, defaults to test
- Run it together with Claude Desktop: Claude Desktop needs to be configured. For the specific HOWTO, refer to the relevant instructions; the configuration file is claude_desktop_config.json. If mcp-server-tidb is run in WSL, the configuration method for claude_desktop_config.json will be different.
Applicable scenarios:
- Need to access a TiDB Serverless database in MCP clients such as Claude Desktop.
- Run the MCP server in a WSL environment and connect to TiDB.
Limitations:
- Required dependencies include uv.
- You need to create a TiDB database cluster yourself.
- Specific configuration details depend on the runtime environment (such as WSL).
- Other information is not provided for now.