tidb-server

tidb-server

0

The TiDB MCP Server is a Model Context Protocol server designed to execute SELECT queries on TiDB databases. It offers secure connections through environment variables and is easy to use.

TiDB MCP Server

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

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.

Via npx

Global installation

Configuration

Set environment variables before running the server.

Usage

  1. Start the server.
  2. Add to MCP configuration.
  3. Use the MCP tool.

Development

  1. Clone the repo.
  2. Install dependencies.
  3. Build and run.

License

MIT