TiDB MCP Server

by l1806858547

125 downloads Not rated yet

About

A Model Context Protocol (MCP) server that enables AI assistants to execute SELECT queries on a TiDB database through MCP tools. It uses environment variables for secure connection and is intended for developers integrating TiDB querying into MCP-compatible clients.

Explore

- Execute SELECT queries on TiDB
- Secure connection via environment variables
- Lightweight and easy to use

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name TiDB MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Node.js 16+
- TiDB instance

To install TiDB Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @l1806858547/tidb-server --client claude
npm install -g tidb-mcp-server
tidb-mcp-server

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "tidb mcp server": {
            "tidb-server": {
                "command": "npx",
                "args": [
                    "tidb-mcp-server"
                ]
            }
        }
    }
}

McpServers

{
    "tidb-server": {
        "command": "npx",
        "args": [
            "tidb-mcp-server"
        ]
    }
}

smithery badge

A Model Context Protocol (MCP) server for TiDB that allows executing SELECT queries through MCP tools.

<a href="https://glama.ai/mcp/servers/@l1806858547/tidb-server">
TiDB Server MCP server
</a>

Features

- Execute SELECT queries on TiDB - Secure connection via environment variables - Lightweight and easy to use

Prerequisites

- Node.js 16+ - TiDB instance

Installation

Installing via Smithery

To install TiDB Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @l1806858547/tidb-server --client claude

Via npx

npx tidb-mcp-server

Global installation

npm install -g tidb-mcp-server
tidb-mcp-server

Configuration

Set these environment variables before running:

```bash
export TIDB_HOST="your_tidb_host"
export TIDB_PORT="your_tidb_port"
export TIDB_USER="your_username"
export TIDB_PASS="your_password"
export TIDB_DB="your_database"

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.