Skip to content

Commit 3b09f53

Browse files
committed
Add TiDB MCP server
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com> Claude-Session: https://claude.ai/code/session_01S58U7phvDgphx6ZTXuWMJQ
1 parent ee298ab commit 3b09f53

1 file changed

Lines changed: 111 additions & 0 deletions

File tree

servers/com.tidb-mcp-uvx.json

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.tidb-mcp-uvx",
4+
"name": "TiDB (uvx)",
5+
"alias": "tidb",
6+
"description": "Connect to a TiDB or TiDB Cloud database. List databases and tables, run read-only queries, execute data-modifying SQL, and manage database users.",
7+
"logo": "https://avatars.githubusercontent.com/u/11855343?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"database"
11+
],
12+
"tags": [
13+
"tidb",
14+
"tidb-cloud",
15+
"database",
16+
"sql",
17+
"mysql",
18+
"pingcap"
19+
],
20+
"transport": {
21+
"type": "stdio",
22+
"command": "uvx",
23+
"args": [
24+
"--from",
25+
"pytidb[mcp]",
26+
"tidb-mcp-server"
27+
],
28+
"env": {
29+
"TIDB_HOST": "${input:TIDB_HOST}",
30+
"TIDB_PORT": "${input:TIDB_PORT}",
31+
"TIDB_USERNAME": "${input:TIDB_USERNAME}",
32+
"TIDB_PASSWORD": "${input:TIDB_PASSWORD}",
33+
"TIDB_DATABASE": "${input:TIDB_DATABASE}"
34+
},
35+
"metadata": {
36+
"inputs": [
37+
{
38+
"id": "TIDB_HOST",
39+
"label": "TiDB Host",
40+
"description": "Hostname of your TiDB server. For TiDB Cloud, use the gateway host shown in the connection dialog.",
41+
"type": "text",
42+
"required": true,
43+
"secret": false,
44+
"placeholder": "gateway01.xxx.prod.aws.tidbcloud.com"
45+
},
46+
{
47+
"id": "TIDB_PORT",
48+
"label": "TiDB Port",
49+
"description": "Port of your TiDB server. Defaults to 4000.",
50+
"type": "number",
51+
"required": false,
52+
"secret": false,
53+
"default": "4000",
54+
"placeholder": "4000"
55+
},
56+
{
57+
"id": "TIDB_USERNAME",
58+
"label": "TiDB Username",
59+
"description": "Database username. For TiDB Cloud this looks like '<prefix>.root'.",
60+
"type": "text",
61+
"required": true,
62+
"secret": false,
63+
"placeholder": "xxxxxxxx.root"
64+
},
65+
{
66+
"id": "TIDB_PASSWORD",
67+
"label": "TiDB Password",
68+
"description": "Password for the TiDB user.",
69+
"type": "text",
70+
"required": true,
71+
"secret": true,
72+
"placeholder": "********************"
73+
},
74+
{
75+
"id": "TIDB_DATABASE",
76+
"label": "TiDB Database",
77+
"description": "Default database to connect to. Defaults to 'test'.",
78+
"type": "text",
79+
"required": true,
80+
"secret": false,
81+
"default": "test",
82+
"placeholder": "test"
83+
}
84+
]
85+
}
86+
},
87+
"auth": {
88+
"type": "api_key",
89+
"instructions": "Provide your TiDB connection details (host, port, username, password, database). For TiDB Cloud, create a cluster and copy the connection parameters from the cluster's Connect dialog."
90+
},
91+
"contributor": {
92+
"name": "PingCAP",
93+
"github": "pingcap",
94+
"url": "https://www.pingcap.com"
95+
},
96+
"links": {
97+
"repository": "https://github.com/pingcap/pytidb",
98+
"homepage": "https://www.pingcap.com",
99+
"documentation": "https://pingcap.github.io/ai/integrations/tidb-mcp-server/"
100+
},
101+
"platforms": [
102+
"all"
103+
],
104+
"capabilities": {
105+
"tools": true,
106+
"resources": false,
107+
"prompts": false,
108+
"read_only_mode": false
109+
},
110+
"changelog_url": "https://github.com/pingcap/pytidb/releases"
111+
}

0 commit comments

Comments
 (0)