MCP Catalogs
HomeSmartDB_MCP screenshot

SmartDB_MCP

by wenb1n-dev·79·Score 43

Universal database MCP server connecting to MySQL, PostgreSQL, SQL Server, MariaDB, DM8, Oracle with OAuth2 authentication, health checks, SQL optimization, and index health detection.

databasedeveloper-toolsmonitoring
20
Forks
10
Open issues
8 mo ago
Last commit
2d ago
Indexed

Overview

SmartDB is a comprehensive MCP server that provides universal database connectivity across multiple major database systems including MySQL, PostgreSQL, SQL Server, MariaDB, DM8, and Oracle. What sets it apart from other database tools is its integration of advanced features like OAuth 2.0 authentication, comprehensive health checks, SQL optimization suggestions, and index health monitoring. The server supports multiple connection modes including stdio, sse, and streamableHttp, making it flexible for different integration scenarios. The toolset includes SQL execution, database health analysis, table structure exploration, index management, SQL generation, and optimization features.

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:Database administrators can monitor health status and optimize performance across multiple database systems
you:Developers can explore database schemas and execute SQL queries securely through MCP clients
you:Data analysts can generate optimized SQL queries and analyze index health for better performance
you:Which databases are supported by SmartDB?
you:Does SmartDB support OAuth authentication?
you:What are the different connection modes supported?

When to choose this

Choose SmartDB when you need a unified interface to multiple database systems with advanced features like SQL optimization and health monitoring, especially when working with read-only access scenarios.

When NOT to choose this

Don't choose SmartDB if you need frequent write access or administrative privileges, as it primarily focuses on read-only and read-write scenarios with limited admin capabilities.

Tools this server exposes

8 tools extracted from the README
  • execute_sql

    Execute SQL commands (SELECT, SHOW, DESCRIBE, EXPLAIN, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, TRUNCATE)

  • get_db_health

    Analyze database health status and provide diagnostic reports

  • get_table_desc

    Search for table structures in the database

  • get_table_index

    Search for table indexes in the database

  • get_table_name

    Query all table names in the database or search by name/description

  • get_db_version

    Query database version information

  • sql_creator

    Generate SQL queries based on different database types

  • sql_optimize

    Optimize SQL performance with expert suggestions

Comparable tools

sql-mcpdatabase-tool-mcppostgres-mcpmysql-mcpshell-mcp

Installation

Installation

pip Installation

pip install SmartDB-MCP
smartdb --envfile=/path/to/.env --oauth=true

Docker Installation

docker-compose up -d

Local Development

uv sync
uv run -m core.server --mode stdio

Claude Desktop Configuration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "smartdb": {
      "name": "smartdb",
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/SmartDB/",
        "run",
        "-m",
        "core.server",
        "--mode",
        "stdio"
      ],
      "env": {
        "DATABASE_CONFIG_FILE": "/path/to/database_config.json"
      }
    }
  }
}

FAQ

Which databases are supported by SmartDB?
SmartDB supports MySQL, PostgreSQL, SQL Server, MariaDB, DM8, and Oracle databases.
Does SmartDB support OAuth authentication?
Yes, SmartDB supports OAuth 2.0 authentication for secure database access, particularly when using streamableHttp mode.
What are the different connection modes supported?
SmartDB supports three connection modes: stdio, sse (Server-Sent Events), and streamableHttp for flexible integration with different clients.

Compare SmartDB_MCP with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.