The RBDC MCP Server is a versatile database server based on Model Context Protocol (MCP) that allows you to interact with SQLite, MySQL, PostgreSQL, and MSSQL databases using natural language through Claude AI.
Download the latest release for your platform from GitHub Releases:
Windows:
rbdc-mcp-windows-x86_64.exe
rbdc-mcp.exe
C:\tools\rbdc-mcp.exe
C:\tools
to the path listrbdc-mcp --help
macOS:
rbdc-mcp-macos-x86_64
or Apple Silicon: rbdc-mcp-macos-aarch64
)mv rbdc-mcp-macos-* rbdc-mcp
chmod +x rbdc-mcp
sudo mv rbdc-mcp /usr/local/bin/
rbdc-mcp --help
Linux:
rbdc-mcp-linux-x86_64
mv rbdc-mcp-linux-x86_64 rbdc-mcp
chmod +x rbdc-mcp
sudo mv rbdc-mcp /usr/local/bin/
rbdc-mcp --help
Prerequisites: Install Rust first.
cargo install --git https://github.com/rbatis/rbdc-mcp.git
git clone https://github.com/rbatis/rbdc-mcp.git
cd rbdc-mcp
cargo build --release
# Executable: target/release/rbdc-mcp
Configuration File Location:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
Basic Configuration:
{
"mcpServers": {
"rbdc-mcp": {
"command": "rbdc-mcp",
"args": ["--database-url", "sqlite://./database.db"]
}
}
}
SQLite:
{
"mcpServers": {
"rbdc-mcp-sqlite": {
"command": "rbdc-mcp",
"args": ["--database-url", "sqlite://./database.db"]
}
}
}
MySQL:
{
"mcpServers": {
"rbdc-mcp-mysql": {
"command": "rbdc-mcp",
"args": ["--database-url", "mysql://user:password@localhost:3306/database"]
}
}
}
PostgreSQL:
{
"mcpServers": {
"rbdc-mcp-postgres": {
"command": "rbdc-mcp",
"args": ["--database-url", "postgres://user:password@localhost:5432/database"]
}
}
}
Windows Full Path (if not in PATH):
{
"mcpServers": {
"rbdc-mcp": {
"command": "C:\\tools\\rbdc-mcp.exe",
"args": ["--database-url", "sqlite://C:\\path\\to\\database.db"]
}
}
}
You can interact with your database using natural language queries in Claude:
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 |
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 |
sql_query
: Execute SELECT queries safelysql_exec
: Execute INSERT/UPDATE/DELETE operationsdb_status
: Check connection pool statusTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "rbdc-mcp" '{"command":"rbdc-mcp","args":["--database-url","sqlite://./database.db"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"rbdc-mcp": {
"command": "rbdc-mcp",
"args": [
"--database-url",
"sqlite://./database.db"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"rbdc-mcp": {
"command": "rbdc-mcp",
"args": [
"--database-url",
"sqlite://./database.db"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect