TiDB MCP Server

by l1806858547

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TIDB_DBYesYour TiDB database
TIDB_HOSTYesYour TiDB host
TIDB_PASSYesYour TiDB password
TIDB_PORTYesYour TiDB port
TIDB_USERYesYour TiDB username
ALLOW_DELETE_OPERATIONNoSet to 'true' to allow DELETE operationsfalse
ALLOW_INSERT_OPERATIONNoSet to 'true' to allow INSERT operationsfalse
ALLOW_UPDATE_OPERATIONNoSet to 'true' to allow UPDATE operationsfalse

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
tidb_query

Execute SQL queries against TiDB

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/l1806858547/tidb-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server