Best for
- Developers who need to access their own databases from a local AI coding client.
- Teams that want to reuse DBeaver-compatible connections and control access with read-only mode or connection allowlists.
This is a stdio MCP server for local database workflows, with connection, query, export, and schema tools across several database engines. It defaults to read-only and offers access controls, while its security boundary still depends on database grants, client access to local files, and deployment configuration.
Strongest · Documentation 15/20 Weakest · Reliability 10/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 22.15+ within 22.x, · Bun 1.4.3+
OMNISQL_DISCOVER_WORKSPACE
Set whether to discover saved workspace connections; the default depends on whether a config file is set.
OMNISQL_CONFIG_FILE
Set the path to the JSON configuration for database instances and their settings.
OMNISQL_POLICY_FILE
Set the path to additional access rules.
OMNISQL_WORKSPACE
Set the path to the local database client workspace directory.
OMNISQL_PROJECT
Set the database client project or workspace folder to search.
OMNISQL_TIMEOUT
Set the query timeout in milliseconds.
OMNISQL_DEBUG
Enable debug logging.
OMNISQL_UPDATE_NOTIFIER
Set whether to check npm for updates and display notices.
OMNISQL_READ_ONLY
Set read-only mode; enabled by default.
OMNISQL_ALLOWED_CONNECTIONS
Set a comma-separated list of allowed connection IDs or names.
OMNISQL_DISABLED_TOOLS
Set a comma-separated list of tool names to disable.
OMNISQL_POOL_MIN
Set the minimum number of connections per pool.
OMNISQL_POOL_MAX
Set the maximum number of connections per pool.
OMNISQL_POOL_IDLE_TIMEOUT
Set the idle connection timeout in milliseconds.
OMNISQL_POOL_ACQUIRE_TIMEOUT
Set the connection acquisition timeout in milliseconds.
OMNISQL_AWS_CLI_PATH
Set the AWS CLI path for RDS IAM authentication.
OMNISQL_IAM_TOKEN_TIMEOUT
Set the timeout for minting an RDS IAM authentication token in milliseconds.
OMNISQL_SSH_KNOWN_HOSTS
Set the known_hosts file used to verify SSH tunnel hosts.
OMNISQL_SSH_STRICT_HOST_KEY
Set whether to refuse SSH tunnel hosts without a known_hosts entry; enabled by default.
OMNISQL_DUCKDB_CLI
Set the DuckDB executable path if it is outside the MCP client's PATH.
OMNISQL_INSTALL_DIR
Set the installation directory used by the standalone installer.
OMNISQL_BIN_DIR
Set the directory where the standalone installer places its launcher.
SSH_AUTH_SOCK
Set the agent socket path in the MCP server environment when using SSH agent authentication.
Prepare a database connection or DBeaver-compatible workspace and meet the runtime requirement: Bun 1.4.3+, Node.js 22.15+ within 22.x, or Node.js 24+. Run npx -y omnisql-mcp@latest install and follow the prompts to select Claude Code, Codex, or OpenCode; native client MCP registration commands are also documented. The example client configuration uses stdio and sets OMNISQL_CONFIG_FILE to a local JSON connection file. Restart the client session to load the server.
{"mcpServers":{"omnisql":{"command":"npx","args":["-y","omnisql-mcp@latest"],"env":{"OMNISQL_CONFIG_FILE":"/absolute/path/connections.json"}}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"omnisql": {
"command": "npx",
"args": [
"-y",
"omnisql-mcp@latest"
],
"env": {
"OMNISQL_CONFIG_FILE": "/absolute/path/connections.json"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.omnisql] command = "npx" args = ["-y", "omnisql-mcp@latest"] [mcp_servers.omnisql.env] OMNISQL_CONFIG_FILE = "/absolute/path/connections.json"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add omnisql -e OMNISQL_CONFIG_FILE=/absolute/path/connections.json -- npx -y omnisql-mcp@latest
Run it in a terminal; replace any <…> placeholders with your own values first.
After installation and startup, confirm `list_connections` appears in the client’s tool list. Call it to view connections, then use `test_connection` to check database connectivity.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
OmniSQL MCP is an MCP server for managing database connections and querying, exporting, and inspecting database structures. It can reuse saved connections from DBeaver-compatible workspaces or use JSON configuration for multiple instances. Supported engines include PostgreSQL, MySQL/MariaDB, SQL Server, SQLite, Oracle, DuckDB, and ClickHouse; some PostgreSQL-compatible databases route through the pg driver. Read-only mode is enabled by default, with controls such as connection allowlists, tool disabling, and table access policies.
Unofficial MCP server providing advanced access to the ChEMBL chemical database
Let LLMs interact directly with your Directus data.
Read-only DB access for safe analysis
Connect AI clients to Couchbase clusters.
Source revision 7a86cc954a84 Data synced 2026-12-05 Read the FMRS scoring method Markdown