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.
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:
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 READMEexecute_sqlExecute SQL commands (SELECT, SHOW, DESCRIBE, EXPLAIN, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, TRUNCATE)
get_db_healthAnalyze database health status and provide diagnostic reports
get_table_descSearch for table structures in the database
get_table_indexSearch for table indexes in the database
get_table_nameQuery all table names in the database or search by name/description
get_db_versionQuery database version information
sql_creatorGenerate SQL queries based on different database types
sql_optimizeOptimize SQL performance with expert suggestions
Comparable tools
Installation
Installation
pip Installation
pip install SmartDB-MCP
smartdb --envfile=/path/to/.env --oauth=trueDocker Installation
docker-compose up -dLocal Development
uv sync
uv run -m core.server --mode stdioClaude 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
Last updated · Auto-generated from public README + GitHub signals.