RBDC MCP Server
An MCP-based database server with support for SQLite, MySQL, PostgreSQL, and MSSQL.
RBDC MCP Server
A database server based on Model Context Protocol (MCP), supporting SQLite, MySQL, PostgreSQL, and MSSQL databases.
π¨π³ δΈζζζ‘£ / Chinese Documentation: README_cn.md
Advantages
- Multiple Database Support: Seamlessly work with SQLite, MySQL, PostgreSQL, and MSSQL 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
π Method 1: Download Pre-built Binaries (Recommended)
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 |
Installation Steps:
Windows:
- Download (
rbdc-mcp-windows-x86_64.exe)[https://github.com/rbatis/rbdc-mcp/releases] - Rename to
rbdc-mcp.exe - Move to a directory, e.g.,
C:\tools\rbdc-mcp.exe - Add to PATH environment variable:
- Right-click "This PC" β "Properties" β "Advanced system settings" β "Environment Variables"
- Find "Path" in "System variables", click "Edit"
- Add
C:\toolsto the path list
- Restart command prompt, test:
rbdc-mcp --help
macOS:
- Download the appropriate file:
- Intel chip: (
rbdc-mcp-macos-x86_64)[https://github.com/rbatis/rbdc-mcp/releases] - Apple Silicon: (
rbdc-mcp-macos-aarch64)[https://github.com/rbatis/rbdc-mcp/releases]
- Intel chip: (
- Rename and install:
mv rbdc-mcp-macos-* rbdc-mcp chmod +x rbdc-mcp sudo mv rbdc-mcp /usr/local/bin/ - Test:
rbdc-mcp --help
Linux:
- Download
rbdc-mcp-linux-x86_64 - Rename and install:
mv rbdc-mcp-linux-x86_64 rbdc-mcp chmod +x rbdc-mcp sudo mv rbdc-mcp /usr/local/bin/ - Test:
rbdc-mcp --help
π οΈ Method 2: Install via Cargo
Prerequisites: Install Rust first.
cargo install --git https://github.com/rbatis/rbdc-mcp.git
π§ Method 3: Build from Source
git clone https://github.com/rbatis/rbdc-mcp.git
cd rbdc-mcp
cargo build --release
# Executable: target/release/rbdc-mcp
π§ Quick Setup
Step 1: Configure Claude Desktop
Configuration File Location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Basic Configuration:
{
"mcpServers": {
"rbdc-mcp": {
"command": "rbdc-mcp",
"args": ["--database-url", "sqlite://./database.db"]
}
}
}
Platform-Specific Examples:
{
"mcpServers": {
"rbdc-mcp-sqlite": {
"command": "rbdc-mcp",
"args": ["--database-url", "sqlite://./database.db"]
},
"rbdc-mcp-mysql": {
"command": "rbdc-mcp",
"args": ["--database-url", "mysql://user:password@localhost:3306/database"]
},
"rbdc-mcp-postgres": {
"command": "rbdc-mcp",
"args": ["--database-url", "postgres://user:password@localhost:5432/database"]
}
}
}
{
"mcpServers": {
"rbdc-mcp": {
"command": "C:\\tools\\rbdc-mcp.exe",
"args": ["--database-url", "sqlite://C:\\path\\to\\database.db"]
}
}
}
Step 2: Restart Claude Desktop
After saving the configuration, restart Claude Desktop to load the MCP server.
Step 3: Test the Connection
In Claude Desktop, try asking:
- "Show me the database connection status"
- "What tables are in my database?"
π Usage Examples
Natural Language Database Operations
- Query Data: "Show me all users in the database"
- Modify Data: "Add a new user named John with email john@example.com"
- Get Status: "What's the database connection status?"
- Schema Info: "What tables exist in my database?"
ποΈ Database Support
| Database | Connection URL Format |
|---|---|
| SQLite | sqlite://path/to/database.db |
| MySQL | mysql://user:password@host:port/database |
| PostgreSQL | postgres://user:password@host:port/database |
| MSSQL | mssql://user:password@host:port/database |
βοΈ Configuration Options
| Parameter | Description | Default |
|---|---|---|
--database-url, -d | Database connection URL | Required |
--max-connections | Maximum connection pool size | 1 |
--timeout | Connection timeout (seconds) | 30 |
--log-level | Log level (error/warn/info/debug) | info |
π οΈ Available Tools
sql_query: Execute SELECT queries safelysql_exec: Execute INSERT/UPDATE/DELETE operationsdb_status: Check connection pool status
πΈ Screenshots
Step 1: Configuration

Step 2: Usage in Claude

License
Apache-2.0
Related Servers
Milvus
Search, Query and interact with data in your Milvus Vector Database.
Quran Cloud
Access the Quran API from alquran.cloud to retrieve accurate Quranic text and reduce LLM hallucinations.
FrankfurterMCP
MCP server acting as an interface to the Frankfurter API for currency exchange data.
Memory Cache Server
An MCP server that reduces token consumption by efficiently caching data between language model interactions.
AWS RDS Management
Manage Amazon RDS and Aurora database clusters, including instances, backups, parameters, costs, and monitoring.
GraphMem
An MCP server for graph-based memory management, enabling AI to create, retrieve, and manage knowledge entities and their relationships.
MCP SQLite Server
A Node.js MCP server for interacting with local SQLite databases, runnable via npx.
Supermarket Database
A dockerized PostgreSQL database project for a supermarket data schema, with MCP integration for Claude Desktop.
FOCUS DATA MCP Server
Enables AI assistants to query data from DataFocus using natural language.
Odoo Accounting MCP Server
Integrates with Odoo Accounting via XML-RPC, allowing AI tools to query and analyze account journal entries for auditing purposes.