mcp-server-tidb logo

mcp-server-tidb这个服务器连接 AI 对话工具到 TiDB 云数据库,让他们能够安全地读取和写入数据。您只需在本地文件中设置登录凭证,助手就可以运行查询或检查表格。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

MCP Server with TiDB 是一种无服务器的实现,旨在连接 AI 对话工具与TiDB 云数据库。它允许安全地读取和写入数据,让用户通过环境变量或 .env 文件设置登录凭证,而不是直接在工具中设置。要使用服务器,用户首先克隆存储库,安装必要的包,配置他们的 TiDB 数据库。这可以通过环境变量或 .env 文件完成,指定主机地址、端口、用户名、密码和数据库名称。为了与对话工具集成,用户需要配置一个 JSON 文件,例如 claude_desktop_config.json,该文件指示工具运行 MCP 服务器。这种实现使用 Python并且在 Apache-2.0 版权下。虽然文档未指定任何特定要求或推荐,但它的意图是可以在 Windows、Linux 和 WSL 等多个平台上运行。

主要功能

  • TiDB 数据库连接
  • 环境变量配置
  • Claude Desktop 集成
  • 安全数据访问

价格

模型
Free
评分
暂无评价

使用场景

AI Chatbot 数据集成

安全地将 AI 对话工具连接到 TiDB 云数据库进行数据读取和写入。

Claude Desktop 服务器

将 mcp-server-tidb 运行为 Claude Desktop 服务,实现对 AI 工具的数据访问。

优点 & 缺点

优点

  • 为 AI 聊天工具提供安全的数据访问
  • 支持 TiDB 云数据库
  • 可通过环境变量或 .env 文件进行配置

缺点

  • 需要 TiDB 数据库集群设置
  • 仅限于 Python 环境

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the main limitations of MCP Server for TiDB?

It requires a pre‑existing TiDB cloud cluster and is limited to Python environments; there are no additional platform requirements listed in the documentation.

Asked by Isabela Almeida · Sep 20, 2025

Can I use this server with non‑Claude AI chat tools?

The repository includes a JSON configuration example for Claude Desktop, but the server itself is generic; you can adapt the `mcpServers` section to any tool that can invoke the MCP server command.

Asked by Fiorella Bianchi · Aug 8, 2025

What programming language and license does the tool use?

It is written in Python and is distributed under the Apache‑2.0 license, so you can use, modify, and redistribute it freely under those terms.

Asked by Hana Kobayashi · Aug 10, 2025

How do I configure the MCP Server to connect to my TiDB cloud database?

Set your TiDB credentials either via environment variables (TIDB_HOST, TIDB_PORT, TIDB_USERNAME, TIDB_PASSWORD, TIDB_DATABASE) or by creating a .env file with the same keys. Then run the server with the provided command, e.g., `uv run src/main.py`.

Asked by Larisa Ionescu · Jun 26, 2025

提问

服务配缩器 的替代品