D

Dbeast

by snss10 · io.github.snss10/dbeast

DBeast MCP is a robust, security-first Model Context Protocol server designed to empower AI coding assistants (like Claude Desktop) with deep PostgreSQL database insights. Instead of just running basic SQL queries, DBeast equips your AI agent with tools to inspect active locks, audit slow queries, analyze table schemas, and safely generate index recommendations in real-time. Built specifically for

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-snss10-dbeast": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "DB_HOST=<YOUR_VALUE>",
        "-e",
        "DB_PORT=<YOUR_VALUE>",
        "-e",
        "DB_USER=<YOUR_VALUE>",
        "-e",
        "DB_PASSWORD=<YOUR_VALUE>",
        "-e",
        "DB_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_SECRET_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_REGION=<YOUR_VALUE>",
        "-e",
        "DB_SSLMODE=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_DIR=<YOUR_VALUE>",
        "-e",
        "DBEAST_SSL_VERIFY=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_ENABLED=<YOUR_VALUE>",
        "-e",
        "DBEAST_QUERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_COMMAND_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_SCHEMA_CACHE_TTL=<YOUR_VALUE>",
        "-e",
        "DBEAST_DEFAULT_ROW_LIMIT=<YOUR_VALUE>",
        "ghcr.io/snss10/dbeast:2.0.2"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-snss10-dbeast": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "DB_HOST=<YOUR_VALUE>",
        "-e",
        "DB_PORT=<YOUR_VALUE>",
        "-e",
        "DB_USER=<YOUR_VALUE>",
        "-e",
        "DB_PASSWORD=<YOUR_VALUE>",
        "-e",
        "DB_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_SECRET_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_REGION=<YOUR_VALUE>",
        "-e",
        "DB_SSLMODE=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_DIR=<YOUR_VALUE>",
        "-e",
        "DBEAST_SSL_VERIFY=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_ENABLED=<YOUR_VALUE>",
        "-e",
        "DBEAST_QUERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_COMMAND_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_SCHEMA_CACHE_TTL=<YOUR_VALUE>",
        "-e",
        "DBEAST_DEFAULT_ROW_LIMIT=<YOUR_VALUE>",
        "ghcr.io/snss10/dbeast:2.0.2"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-snss10-dbeast": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "DB_HOST=<YOUR_VALUE>",
        "-e",
        "DB_PORT=<YOUR_VALUE>",
        "-e",
        "DB_USER=<YOUR_VALUE>",
        "-e",
        "DB_PASSWORD=<YOUR_VALUE>",
        "-e",
        "DB_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_SECRET_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_REGION=<YOUR_VALUE>",
        "-e",
        "DB_SSLMODE=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_DIR=<YOUR_VALUE>",
        "-e",
        "DBEAST_SSL_VERIFY=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_ENABLED=<YOUR_VALUE>",
        "-e",
        "DBEAST_QUERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_COMMAND_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_SCHEMA_CACHE_TTL=<YOUR_VALUE>",
        "-e",
        "DBEAST_DEFAULT_ROW_LIMIT=<YOUR_VALUE>",
        "ghcr.io/snss10/dbeast:2.0.2"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-snss10-dbeast": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "DB_HOST=<YOUR_VALUE>",
        "-e",
        "DB_PORT=<YOUR_VALUE>",
        "-e",
        "DB_USER=<YOUR_VALUE>",
        "-e",
        "DB_PASSWORD=<YOUR_VALUE>",
        "-e",
        "DB_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_SECRET_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_REGION=<YOUR_VALUE>",
        "-e",
        "DB_SSLMODE=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_DIR=<YOUR_VALUE>",
        "-e",
        "DBEAST_SSL_VERIFY=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_ENABLED=<YOUR_VALUE>",
        "-e",
        "DBEAST_QUERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_COMMAND_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_SCHEMA_CACHE_TTL=<YOUR_VALUE>",
        "-e",
        "DBEAST_DEFAULT_ROW_LIMIT=<YOUR_VALUE>",
        "ghcr.io/snss10/dbeast:2.0.2"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-snss10-dbeast": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "DB_HOST=<YOUR_VALUE>",
        "-e",
        "DB_PORT=<YOUR_VALUE>",
        "-e",
        "DB_USER=<YOUR_VALUE>",
        "-e",
        "DB_PASSWORD=<YOUR_VALUE>",
        "-e",
        "DB_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_SECRET_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_REGION=<YOUR_VALUE>",
        "-e",
        "DB_SSLMODE=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_DIR=<YOUR_VALUE>",
        "-e",
        "DBEAST_SSL_VERIFY=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_ENABLED=<YOUR_VALUE>",
        "-e",
        "DBEAST_QUERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_COMMAND_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_SCHEMA_CACHE_TTL=<YOUR_VALUE>",
        "-e",
        "DBEAST_DEFAULT_ROW_LIMIT=<YOUR_VALUE>",
        "ghcr.io/snss10/dbeast:2.0.2"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-snss10-dbeast": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "DB_HOST=<YOUR_VALUE>",
        "-e",
        "DB_PORT=<YOUR_VALUE>",
        "-e",
        "DB_USER=<YOUR_VALUE>",
        "-e",
        "DB_PASSWORD=<YOUR_VALUE>",
        "-e",
        "DB_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_SECRET_NAME=<YOUR_VALUE>",
        "-e",
        "AWS_REGION=<YOUR_VALUE>",
        "-e",
        "DB_SSLMODE=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_DIR=<YOUR_VALUE>",
        "-e",
        "DBEAST_SSL_VERIFY=<YOUR_VALUE>",
        "-e",
        "DBEAST_AUDIT_ENABLED=<YOUR_VALUE>",
        "-e",
        "DBEAST_QUERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_COMMAND_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "DBEAST_SCHEMA_CACHE_TTL=<YOUR_VALUE>",
        "-e",
        "DBEAST_DEFAULT_ROW_LIMIT=<YOUR_VALUE>",
        "ghcr.io/snss10/dbeast:2.0.2"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DATABASE_URL secret No Full PostgreSQL connection URL (e.g., postgresql://user:pass@host:5432/db)
DB_HOST No Database hostname or IP
DB_PORT No Database port Default: 5432
DB_USER No Database user
DB_PASSWORD secret No Database password
DB_NAME No Database name
AWS_SECRET_NAME No AWS Secrets Manager secret name containing database credentials
AWS_REGION No AWS region for Secrets Manager
DB_SSLMODE No SSL mode for connection Default: prefer
DBEAST_AUDIT_DIR No Audit log directory Default: logs/mcp_audit
DBEAST_SSL_VERIFY No Set to false for SSH tunnels where certificates do not match localhost Default: true
DBEAST_AUDIT_ENABLED No Log MCP tool calls Default: true
DBEAST_QUERY_TIMEOUT No Query execution timeout in seconds Default: 300
DBEAST_COMMAND_TIMEOUT No SQL command timeout in seconds Default: 300
DBEAST_SCHEMA_CACHE_TTL No Schema cache TTL in seconds, 0 disables caching Default: 60
DBEAST_DEFAULT_ROW_LIMIT No Maximum rows returned by execute_query Default: 100

Similar servers