Loading...
{
"mcpServers": {
"tidb": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-server-tidb",
"run",
"src/main.py"
]
}
}
}query_databaseExecutes a SQL query against the TiDB database and returns the results.
Allows arbitrary SQL queries, potentially including write operations if the user has permissions.
insert_dataInserts new data into a specified table in the TiDB database.
Adds new data to the database, which could lead to data integrity issues if not properly validated.
read_tableReads data from a specified table in the TiDB database.
Read-only operation, no data modification.
This server allows both read and write operations on a TiDB database, making it moderately risky. It is safe when used with strong environment variable management and appropriate database user permissions. It becomes risky if environment variables are exposed or the database user has excessive privileges.