---
name: database-connect
description: Database MCP server integration for PostgreSQL, MySQL, MongoDB
disable-model-invocation: true
---

# Database Connection & Management

I'll help you connect to and manage databases through MCP servers for data exploration, schema inspection, and queries.

Arguments: `$ARGUMENTS` - database type (postgres, mysql, mongodb), connection details, or query

## Database Capabilities

**Supported Databases:**
- PostgreSQL (via MCP or native psql)
- MySQL/MariaDB (via MCP or native mysql)
- MongoDB (via MCP or native mongo)
- SQLite (local database files)

**Operations:**
- Schema inspection and exploration
- Safe query execution
- Data exploration and analysis
- Migration support

## Token Optimization

**Expected range**: 1,500–2,500 tokens (initial), 400 tokens (cache hit)

**Caching**: Caches database connection config in `.claude/cache/database/` for 7 days. Invalidated when connection strings change.

**Early exit**: Returns immediately if MCP server for the target database is already connected.

**Patterns used**: Grep-before-Read, early exit, template-based generation, caching


---
Source attribution: manastalukdar
Original project: https://github.com/manastalukdar/claude-devstudio/blob/292aa42f5d781830c5c72d50838c337bbf8af39d/skills/database-connect/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License 2025

Copyright (c) 2025 Brenner Cruvinel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: manastalukdar
Original project: https://github.com/manastalukdar/claude-devstudio/blob/292aa42f5d781830c5c72d50838c337bbf8af39d/skills/database-connect/SKILL.md
Attribution basis: Recovered original package and original project license at a pinned revision

Fields of work: Data & Analytics, Development & Engineering
Roles: Backend Developer, Data Analyst, Data Engineer, Database Administrator, ML / AI Engineer
Specialties: Database
Tools: MongoDB, MySQL, PostgreSQL
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 51be2935ed8bfcc6f4e55c352d274deb593b29e6a7d8ca63a4cb856acb039d9a
Metadata reviewed: 2026-10-27
This metadata supersedes earlier Dave AI catalog attribution. Original instruction and supporting files are preserved.
