mcp-server-tidb
@c4pt0r
关于 mcp-server-tidb
mcp server for tidb
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"tidb": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-server-tidb",
"run",
"src/main.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mcp-server-tidb?
mcp-server-tidb is an MCP (Model Context Protocol) server implementation that connects AI assistants (like Claude) to TiDB Serverless databases. It enables natural language interactions with TiDB by exposing database operations as tools through the MCP standard. This server is for developers who want to query and manage TiDB databases via AI chat interfaces.
How to use mcp-server-tidb?
To use, first install the package using uv (Python package installer): clone the repository, create a virtual environment, and install dependencies with uv pip install -e .. Then configure environment variables (or a .env file) with your TiDB connection details (host, port, username, password, database). Finally, add the server configuration to Claude Desktop’s claude_desktop_config.json, pointing uv to the src/main.py entry point.
Key features of mcp-server-tidb
- MCP server for TiDB (serverless) database integration
- Easy installation with
uvpackage manager - Configuration via environment variables or
.envfile - Works with Claude Desktop out of the box
- Supports WSL (Windows Subsystem for Linux) setups
Use cases of mcp-server-tidb
- Query TiDB databases using natural language through Claude
- Manage database records with conversational AI assistants
- Develop AI-powered data analysis tools backed by TiDB
FAQ from mcp-server-tidb
What is mcp-server-tidb?
It is an MCP server that provides a bridge between AI assistants (such as Claude) and TiDB Serverless databases, allowing database operations to be performed through natural language conversations.
How do I install mcp-server-tidb?
Clone the repository, create a Python virtual environment with uv venv, then install the package using uv pip install -e .. You need uv installed on your system.
How do I configure the server to connect to my TiDB database?
Set the environment variables TIDB_HOST, TIDB_PORT, TIDB_USERNAME, TIDB_PASSWORD, and TIDB_DATABASE (or create a .env file with these values). You must first create a free TiDB Serverless cluster at tidbcloud.com.
How do I run mcp-server-tidb with Claude Desktop?
Add a entry to claude_desktop_config.json with the command uv and arguments --directory /path/to/mcp-server-tidb run src/main.py. See the MCP quickstart guide for details.
What if I’m using WSL (Windows Subsystem for Linux)?
Use wsl.exe as the command in the configuration, then pass the bash command that activates the environment, e.g., bash -c "/path/to/uv --directory /path/to/mcp-server-tidb run python src/main.py".
其他 分类下的更多 MCP 服务器
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Awesome Mcp Servers
punkpeyeA collection of MCP servers.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论