RBDC Database MCP server

Provides SQL database access through the RBDC framework, supporting SQLite, MySQL, PostgreSQL, and MSSQL with connection pooling for executing queries, data modifications, and monitoring database connections.
Back to servers
Setup instructions
Provider
rbdc team
Release date
Jun 22, 2025
Language
Go
Stats
16 stars

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.

Installation Options

Download Pre-built Binaries

Download the latest release for your platform from GitHub Releases:

Windows:

  1. Download rbdc-mcp-windows-x86_64.exe
  2. Rename to rbdc-mcp.exe
  3. Move to a directory, e.g., C:\tools\rbdc-mcp.exe
  4. Add to PATH environment variable:
    • Right-click "This PC" → "Properties" → "Advanced system settings" → "Environment Variables"
    • Find "Path" in "System variables", click "Edit"
    • Add C:\tools to the path list
  5. Restart command prompt, test: rbdc-mcp --help

macOS:

  1. Download the appropriate file (Intel chip: rbdc-mcp-macos-x86_64 or Apple Silicon: rbdc-mcp-macos-aarch64)
  2. Rename and install:
    mv rbdc-mcp-macos-* rbdc-mcp
    chmod +x rbdc-mcp
    sudo mv rbdc-mcp /usr/local/bin/
    
  3. Test: rbdc-mcp --help

Linux:

  1. Download rbdc-mcp-linux-x86_64
  2. Rename and install:
    mv rbdc-mcp-linux-x86_64 rbdc-mcp
    chmod +x rbdc-mcp
    sudo mv rbdc-mcp /usr/local/bin/
    
  3. Test: rbdc-mcp --help

Install via Cargo

Prerequisites: Install Rust first.

cargo install --git https://github.com/rbatis/rbdc-mcp.git

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

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"]
    }
  }
}

Database Connection Examples

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"]
    }
  }
}

After Configuration

  1. Save the configuration file
  2. Restart Claude Desktop to load the MCP server
  3. Test the connection with queries like:
    • "Show me the database connection status"
    • "What tables are in my database?"

Usage Examples

Natural Language Database Operations

You can interact with your database using natural language queries in Claude:

  • Query Data: "Show me all users in the database"
  • Modify Data: "Add a new user named John with email [email protected]"
  • Get Status: "What's the database connection status?"
  • Schema Info: "What tables exist in my database?"

Supported Databases

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 safely
  • sql_exec: Execute INSERT/UPDATE/DELETE operations
  • db_status: Check connection pool status

How to install this MCP server

For Claude Code

To 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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later