SmartDB MCP logo

SmartDB MCP

by wenb1n-dev

Connects MCP clients to relational, key-value, document, vector, search, and messaging systems through one configurable gateway.

Install SmartDB MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wenb1n-dev-smartdb-mcp": {
      "command": "uvx",
      "args": [
        "SmartDB-MCP"
      ],
      "env": {
        "DATABASE_CONFIG_FILE": "YOUR_VALUE_HERE",
        "SERVER_HOST": "YOUR_VALUE_HERE",
        "SERVER_PORT": "YOUR_VALUE_HERE",
        "CLIENT_ID": "YOUR_VALUE_HERE",
        "CLIENT_SECRET": "YOUR_VALUE_HERE",
        "ACCESS_TOKEN_EXPIRE_MINUTES": "YOUR_VALUE_HERE",
        "REFRESH_TOKEN_EXPIRE_DAYS": "YOUR_VALUE_HERE",
        "TOKEN_SECRET_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx SmartDB-MCP

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

wenb1n-dev/SmartDB_MCP exposes a unified MCP gateway for MySQL, PostgreSQL, Oracle, SQL Server, Dameng, Redis, MongoDB, Milvus, Elasticsearch, and Apache Kafka. Its tools cover data queries and writes, schema and index inspection, health checks, SQL generation and optimization, vector search, Elasticsearch DSL, and Kafka monitoring. Connection pools determine which tools are exposed, while permission settings control supported SQL and write operations. Reach for it when an agent needs to work across several data paradigms through one server using STDIO, SSE, or Streamable HTTP.

Use cases

  • Query multiple database types through one MCP endpoint
  • Inspect schemas, indexes, keys, collections, and search mappings
  • Diagnose database, search, vector, or Kafka health
  • Generate and optimize SQL from database metadata
  • Monitor Kafka topics and consumer-group lag

Key features

  • Supports ten data sources across six data paradigms
  • Exposes tools dynamically by connection-pool type
  • Provides SQL execution, generation, and optimization
  • Supports Redis, MongoDB, Milvus, Elasticsearch, and Kafka operations
  • Offers STDIO, SSE, and Streamable HTTP transports
  • Includes OAuth 2.0 configuration and permission enforcement

Tools26

What SmartDB MCP lets your agent do. Expand a tool for its parameters.

Self-reported~683 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

34/35 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · SmartDB-MCP (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars78Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed26Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How SmartDB MCP works

What wenb1n-dev/SmartDB_MCP does

wenb1n-dev/SmartDB_MCP provides a single MCP interface for ten data sources across six categories: relational databases, Redis, MongoDB, Milvus, Elasticsearch, and Apache Kafka. The relational adapters cover MySQL, PostgreSQL, Oracle, SQL Server, and Dameng; the MySQL support also covers MariaDB according to the project description.

It combines operational access with inspection and maintenance tools. Depending on the configured connection pool, an MCP client can execute permitted SQL, inspect tables and indexes, query Redis keys, run MongoDB operations, search Milvus vectors, issue Elasticsearch DSL requests, or inspect Kafka topics and consumer lag.

How it works

The gateway reads database connection pools from a JSON configuration file. Each pool identifies a data source and can include connection details, a role, and pool settings. Tool exposure is selected by the paradigm associated with each pool, so a relational connection receives relational tools while a Redis, MongoDB, Milvus, Elasticsearch, or Kafka connection receives the relevant set.

The server supports three MCP transport modes: STDIO, SSE, and Streamable HTTP. OAuth 2.0 settings provide client credentials, token lifetimes, a token encryption key, and an OAuth username and password. SQL and MongoDB write operations use permission enforcement; the SQL tool supports commands ranging from SELECT and EXPLAIN to INSERT, UPDATE, CREATE, ALTER, DROP, and TRUNCATE according to configuration.

Setup and configuration

Set the path to the database configuration JSON with DATABASE_CONFIG_FILE. Server binding is controlled with SERVER_HOST and SERVER_PORT. OAuth-related environment settings include CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN_EXPIRE_MINUTES, REFRESH_TOKEN_EXPIRE_DAYS, and TOKEN_SECRET_KEY; the OAuth username and password are configured with OAUTH_USER_NAME and OAUTH_USER_PASSWORD.

A connection entry can specify host, port, user, password, database, schema, role, pool size, overflow capacity, connection recycling, timeout, and data-source type. OAuth client and key changes also need to be reflected in the corresponding static configuration.

Tools and capabilities

Relational tools provide table-name, table-description, index, and version lookups, SQL execution, SQL generation, database health analysis, and SQL optimization based on execution plans and database metadata. Health reports cover areas such as connections, transactions, running state, and locks.

Redis tools execute permitted commands, inspect key type, size, TTL, and memory usage, and scan keys by pattern with the non-blocking SCAN command.

MongoDB tools handle find and aggregate queries, writes, collection names, sampled schemas, indexes, and query plans. Extended JSON values such as $oid and $date are supported, and bulk updates or deletes require an explicit filter.

Milvus tools run vector similarity searches and inspect collection and vector-index metadata. Elasticsearch tools execute search, count, and aggregation requests, and inspect index names, mappings, and settings. Kafka tools list topics, report topic metadata, and measure consumer-group lag.

Limitations and notes

Tool availability depends on the configured connection pool and its data paradigm. SQL and MongoDB write capabilities are subject to permission rules. The supported database versions include MySQL 5.6+, PostgreSQL 9.6+, Oracle 12+, SQL Server 2012+, Dameng 8.0+, Redis 5.0+, MongoDB 4.0+, and Milvus 2.3+; Elasticsearch and Kafka support depends on the stated Python driver versions and server compatibility.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about SmartDB MCP

wenb1n-dev/SmartDB_MCP is an MCP server that connects AI clients to relational databases, Redis, MongoDB, Milvus, Elasticsearch, and Kafka. Its main tools execute queries and commands, inspect schemas and indexes, analyze health, optimize SQL, search vectors, query Elasticsearch, and monitor Kafka.

Configure the server environment and database connection JSON, then run it using one of its supported MCP transports: STDIO, SSE, or Streamable HTTP. Set `DATABASE_CONFIG_FILE` to the connection configuration path and provide the server and OAuth settings required by your deployment.

It supports MySQL, PostgreSQL, Oracle, SQL Server, Dameng, Redis, MongoDB, Milvus, Elasticsearch, and Apache Kafka. MySQL support also includes MariaDB, while Elasticsearch and Kafka compatibility depends on the project’s stated driver and server versions.

It can perform configured write operations, but permissions control what the SQL and MongoDB tools may execute. SQL supports commands such as INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, and TRUNCATE; MongoDB bulk updates and deletes require an explicit filter.

Yes. Cursor can connect to it as an MCP client through the server’s standard STDIO, SSE, or Streamable HTTP transports.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSmartDB MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wenb1n-dev-smartdb-mcp?style=directory)](https://allmcps.com/mcp/wenb1n-dev-smartdb-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/wenb1n-dev-smartdb-mcp"><img src="https://allmcps.com/api/badge/wenb1n-dev-smartdb-mcp?style=directory" alt="SmartDB MCP on AllMCPs" /></a>