A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
omnisql-mcp
Universal database MCP server — give AI assistants read/write access to your databases using connections already saved in your local DB client workspace (DBeaver-compatible).
Natively supported (direct driver, fast):
pg)mysql2)mssql)sqlite3 CLI)Postgres-compatible (routed through pg driver automatically):
Other databases: Fall back to an external CLI configured via OMNISQL_CLI_PATH. Results vary by CLI.
execute_querynpm install -g omnisql-mcp
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"omnisql": {
"command": "omnisql-mcp"
}
}
}
Add to ~/.claude/settings.json:
{
"mcpServers": {
"omnisql": {
"command": "omnisql-mcp"
}
}
}
Add to Cursor Settings > MCP Servers:
{
"mcpServers": {
"omnisql": {
"command": "omnisql-mcp"
}
}
}
| Variable | Description | Default |
|---|---|---|
OMNISQL_CLI_PATH | Path to external DB client CLI (used for unsupported-driver fallback) | Unset |
OMNISQL_WORKSPACE | Path to local DB client workspace directory | OS default |
OMNISQL_TIMEOUT | Query timeout (ms) | 30000 |
OMNISQL_DEBUG | Enable debug logging | false |
OMNISQL_READ_ONLY | Disable all write operations | false |
OMNISQL_ALLOWED_CONNECTIONS | Comma-separated whitelist of connection IDs or names | All |
OMNISQL_DISABLED_TOOLS | Comma-separated tools to disable | None |
OMNISQL_POOL_MIN | Minimum connections per pool | 2 |
OMNISQL_POOL_MAX | Maximum connections per pool | 10 |
OMNISQL_POOL_IDLE_TIMEOUT | Idle connection timeout (ms) | 30000 |
OMNISQL_POOL_ACQUIRE_TIMEOUT | Connection acquire timeout (ms) | 10000 |
Blocks all write operations. The execute_query tool only allows SELECT, EXPLAIN, SHOW, and DESCRIBE statements. Transaction tools are disabled entirely.
{
"mcpServers": {
"omnisql": {
"command": "omnisql-mcp",
"env": {
"OMNISQL_READ_ONLY": "true"
}
}
}
}
Restrict which workspace connections are visible. Accepts connection IDs or display names, comma-separated:
{
"mcpServers": {
"omnisql": {
"command": "omnisql-mcp",
"env": {
"OMNISQL_ALLOWED_CONNECTIONS": "dev-postgres,staging-mysql"
}
}
}
}
{
"mcpServers": {
"omnisql": {
"command": "omnisql-mcp",
"env": {
"OMNISQL_DISABLED_TOOLS": "drop_table,alter_table,write_query"
}
}
}
}
list_connections - List all database connectionsget_connection_info - Get connection detailstest_connection - Test connectivityexecute_query - Run read-only queries (SELECT, EXPLAIN, SHOW, DESCRIBE only)write_query - Run INSERT/UPDATE/DELETEexport_data - Export to CSV/JSONlist_tables - List tables and viewsget_table_schema - Get table structurecreate_table - Create tablesalter_table - Modify tablesdrop_table - Drop tables (requires confirmation)begin_transaction - Start a new transactionexecute_in_transaction - Execute query within a transactioncommit_transaction - Commit a transactionrollback_transaction - Roll back a transactionexplain_query - Analyze query execution plancompare_schemas - Compare schemas between two connectionsget_pool_stats - Get connection pool statisticsget_database_stats - Database statisticsappend_insight - Store analysis noteslist_insights - Retrieve stored notesexecute_query only accepts read-only statements (SELECT, EXPLAIN, SHOW, DESCRIBE, PRAGMA). Write operations must use write_query.OMNISQL_ALLOWED_CONNECTIONS.OMNISQL_DISABLED_TOOLS.Supports both configuration formats written by DBeaver-compatible DB clients:
.metadata/.plugins/org.jkiss.dbeaver.core/General/.dbeaver/Credentials are automatically decrypted from the workspace credentials-config.json.
git clone https://github.com/srthkdev/omnisql-mcp.git
cd omnisql-mcp
npm install
npm run build
npm test
npm run lint
MIT
npx CLI installing 100+ agents, commands, hooks, and integrations in one command
干净、强大、属于你的 AI Agent 平台 --AI agents, without the clutter.
Native macOS app to monitor Claude AI usage limits and watch your coding sessions live
Pocket Flow: Codebase to Tutorial