RR

rbatis/rbdc-mcp

数据库管理

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 7 forks 质量 61 趋势 8

RBDC-MCP-服务器

概览

基于模型上下文协议(MCP)的数据库服务器,支持 SQLite、MySQL、PostgreSQL、MSSQL、DuckDB 和 Turso 数据库。 - : 通过统一界面无缝兼容 SQLite、MySQL、PostgreSQL、MSSQL、DuckDB 和 Turso - : 通过模型上下文协议与 Claude AI 原生集成 - : 自动管理数据库连接和资源 - : 通过 AI 驱动的自然语言查询控制数据库访问 - : 使用自然语言查询和修改数据库,无需编写 SQL 根据您的需求选择安装命令: 如果你只需要一个数据库(例如 SQLite),可以添加 --no-default-features --features sqlite,这样可以跳过编译未使用的驱动,将构建时间从 ~15 分钟缩短到 ~2 分钟。 从GitHub Releases下载你平台的最新版本: 下载后,将文件重命名为rbdc-mcp(Windows上为rbdc-mcp.exe),并添加到系统PATH。

概述(AI 翻译)

基于模型上下文协议(MCP)的数据库服务器,支持 SQLite、MySQL、PostgreSQL、MSSQL、DuckDB 和 Turso 数据库。

** 🇨🇳 中文文档 / 中文文档**:readme_cn.md

优点

  • 多数据库支持:通过统一界面无缝兼容SQLite、MySQL、PostgreSQL、MSSQL、DuckDB和Turso
  • AI 集成:通过模型上下文协议与 Claude AI 的原生集成
  • 零配置:自动管理数据库连接和资源
  • 安全性:通过AI驱动的自然语言查询,对数据库的控制访问
  • 简洁性:使用自然语言查询和修改数据库,无需编写 SQL

安装

🚀 方法1:通过货物安装(推荐)

前提条件: 先安装Rust。

根据您的需求选择安装命令:

** 💡 构建速度提示:** 如果你只需要一个数据库(例如 SQLite),可以添加 --no-default-features --features sqlite 跳过编译未使用的驱动,将构建时间从 ~15 分钟缩短到 ~2 分钟。

可用功能

特色 驾驶员 描述
sqlite rbdc-sqlite SQLite 支持

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

RBDC MCP Server

A database server based on Model Context Protocol (MCP), supporting SQLite, MySQL, PostgreSQL, MSSQL, DuckDB, and Turso databases.

🇨🇳 中文文档 / Chinese Documentation: readme_cn.md

Advantages

  • Multiple Database Support: Seamlessly work with SQLite, MySQL, PostgreSQL, MSSQL, DuckDB, and Turso using a unified interface
  • AI Integration: Native integration with Claude AI through the Model Context Protocol
  • Zero Configuration: Automatic management of database connections and resources
  • Security: Controlled access to your database through AI-driven natural language queries
  • Simplicity: Use natural language to query and modify your database without writing SQL

Installation

Prerequisites: Install Rust first.

Choose the install command based on your needs:

# All drivers (default, ~10-15 minutes build)
cargo install --git https://github.com/rbatis/rbdc-mcp.git

# Minimal: SQLite only (fastest build, ~2-3 minutes)
cargo install --git https://github.com/rbatis/rbdc-mcp.git --no-default-features --features sqlite

# Single driver (e.g., MySQL):
cargo install --git https://github.com/rbatis/rbdc-mcp.git --no-default-features --features mysql

# Multiple drivers:
cargo install --git https://github.com/rbatis/rbdc-mcp.git --no-default-features --features "mysql postgres"

💡 Build speed tip: If you only need one database (e.g., SQLite), add --no-default-features --features sqlite to skip compiling unused drivers, cutting build time from ~15 minutes to ~2 minutes.

Available Features

Feature Driver Description
sqlite rbdc-sqlite SQLite support
mysql rbdc-mysql MySQL support
postgres rbdc-pg PostgreSQL support
mssql rbdc-mssql MSSQL/SQL Server support
duckdb rbdc-duckdb DuckDB support
turso rbdc-turso Turso/libsql support
full (all above) Enable all database drivers

📦 Method 2: Download Pre-built Binaries

Download the latest release for your platform from GitHub Releases:

Platform Download
Windows (x64) rbdc-mcp-windows-x86_64.exe
macOS (Intel) rbdc-mcp-macos-x86_64
macOS (Apple Silicon) rbdc-mcp-macos-aarch64
Linux (x64) rbdc-mcp-linux-x86_64

After downloading, rename the file to rbdc-mcp (or rbdc-mcp.exe on Windows) and add it to your system PATH.

🔧 Agent Client Configuration

Configure rbdc-mcp in your MCP-compatible client by adding it to the MCP server list.

Claude Desktop

Configuration File Location:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Basic Configuration:

{
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "rbdc-mcp": { "command": "rbdc-mcp", "args": [] } } }