Feedback

TiDB MCP Server

@l1806858547 Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
l1806858547
Submitted by
Community
Quality
10

About TiDB MCP Server

TiDB MCP Server

TiDB MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by l1806858547. Supported transport: stdio. Runtime: node. Source code is hosted on github.com.

Setup

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

TiDB MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

TiDB MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is TiDB MCP Server?

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.

How to use TiDB MCP Server?

Install via Smithery, npx, or global npm. Set required environment variables (TIDB_HOST, TIDB_PORT, TIDB_USER, TIDB_PASS, TIDB_DB); optionally enable INSERT/UPDATE/DELETE by setting the respective variables to "true". Start the server with tidb-server, add it to your MCP client configuration (e.g., cline_mcp_settings.json), then call the tidb_query tool with an SQL argument.

Key features of TiDB MCP Server

  • Execute SELECT queries on TiDB via MCP tools.
  • Secure connection through environment variables.
  • Lightweight and easy to set up.
  • Optional support for INSERT, UPDATE, DELETE (disabled by default).
  • Compatible with Claude Desktop via Smithery.

Use cases of TiDB MCP Server

  • Query a TiDB database from within an AI assistant conversation.
  • Enable read-only data exploration for LLM applications.
  • Perform safe database lookups with default read-only mode.
  • Quickly prototype MCP-based integrations with TiDB.

Frequently asked questions

1 What runtime is required?

Node.js version 16 or higher, and a running TiDB instance.

2 How do I configure connection credentials?

Set the environment variables TIDB_HOST, TIDB_PORT, TIDB_USER, TIDB_PASS, and TIDB_DB. These are read at startup.

3 Can the server perform write operations?

By default, only SELECT queries are allowed. To enable INSERT, UPDATE, or DELETE, set the corresponding environment variable (e.g., ALLOW_INSERT_OPERATION) to "true". These are disabled by default to prevent accidental modifications.

4 How do I integrate this server with an MCP client?

Add the server to your MCP

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬