drio
Open app

mcp-server-tidb

Source

mcp server for tidb

Catalog onlyCatalog onlySTDIO

Overview

MCP server-tidb is an implementation of a server for the TiDB (serverless) database, designed to facilitate database management and operations.

To use mcp-server-tidb, clone the repository from GitHub, install the necessary dependencies using the Python package installer (uv), and configure the environment variables for your TiDB database.

  • Server implementation for TiDB database - Easy installation and configuration - Supports environment variable configuration for database connection
  1. Managing serverless database operations with TiDB.
  2. Integrating with Claude Desktop for enhanced functionality.
  3. Running database commands in a WSL environment.

Add to your AI client

Use these steps to connect mcp-server-tidb in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-tidb-c4pt0r": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tidb-c4pt0r"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-tidb-c4pt0r": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tidb-c4pt0r"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-tidb-c4pt0r": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tidb-c4pt0r"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-tidb-c4pt0r": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tidb-c4pt0r"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-tidb-c4pt0r": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tidb-c4pt0r"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-tidb-c4pt0r": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tidb-c4pt0r"
      ]
    }
  }
}

FAQ

What is TiDB?

TiDB is a distributed SQL database that supports hybrid transactional and analytical processing.

How do I configure my TiDB database?

You can configure your TiDB database using environment variables or a .env file.

Is there a guide for installation?

Yes, the installation steps are provided in the repository's README file.