SuperAPI AI Directory

mcp-server-tidb

mcp-server-tidb is an MCP server implementation for TiDB (Serverless) databases, with the code hosted on GitHub. The project configures the database connection through environment variables or a .env file, and supports integration with Claude Desktop. You need to first install uv (a Python package installer), and you can use it after creating a free database cluster on TiDB Cloud.

Open website

About this tool

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:

  1. Install uv (a Python package installer).
  2. Go to tidbcloud.com to create a free TiDB database cluster.
  3. 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
  4. 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.