# MCP Database Assistant for MySQL & PostgreSQL

> Guide your AI agent through schema exploration, SQL queries, and authorized data changes using mcp-database.

MCP Database Assistant for MySQL & PostgreSQL is a paid AI agent skill on Agensi by Lalu Kismarahadi, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3 (one-time purchase)
- Creator: [Lalu Kismarahadi](https://www.agensi.io/creators/lkhadi)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-10-20
- Security: scan passed (2026-10-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-database-assistant-for-mysql-postgresql
- Tags: database, mysql, postgresql

## About this skill

Give your AI agent a practical workflow for working with MySQL and PostgreSQL through the mcp-database MCP server.

This companion skill explains how to discover database connections, inspect schemas, construct queries, and verify authorized data changes. It also covers situations that need extra care, including truncated results, connection failures, and queries whose execution outcome is uncertain.

What it helps your agent do

- Select the intended connection and database.
- Inspect tables, columns, keys, and relationships before querying.
- Produce focused queries and accurate aggregate reports.
- Preview affected records before authorized changes.
- Check affected-row counts and verify results afterward.
- Avoid blindly repeating queries after a lost connection.
- Recognize when a task requires a dedicated transaction connection.

What’s included

- A reusable SKILL.md with tool usage and workflow instructions.
- A setup reference covering configuration and server compatibility.

Requirements

A separately installed and configured mcp-database MCP server, your own database credentials, and an AI client that supports the required MCP tools and skill instructions.

This package provides agent instructions. It does not include a hosted database service, install the server automatically, or replace database permissions.

## Requires

- mcp-database MCP
- Node.js 18+
- npm
- MySQL or PostgreSQL database
- db-access

The MCP server's package is db-access, built locally.

## Known limitations

Requires a separately configured, compatible mcp-database server and user-provided database access.

Only one SQL statement is supported per tool call. Connections are pooled, so transactions, temporary tables, and session variables cannot reliably span separate calls.

Dangerous SQL keywords are blocked by default, but this does not enforce read-only access or replace database permissions.

Displayed results may be truncated. Connection failures can leave query outcomes uncertain; verification is needed before considering another attempt.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Database Assistant for MySQL & PostgreSQL skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What problems does this skill help solve?

It guides your agent through database discovery, schema inspection, SQL reporting, and authorized data corrections. The workflow emphasizes checking table structure before writing SQL, previewing proposed changes, and verifying results. These instructions help reduce mistakes but do not guarantee correct SQL or prevent every unsafe operation.

### Which agents and databases does this skill support?

The skill supports MySQL and PostgreSQL through the mcp-database server. Your agent must be able to load the skill instructions and call the server's MCP tools. Client configuration varies, and compatibility has not been verified with every agent.

### What do I need before using this skill?

You need Node.js 18+, npm, and a locally built and configured mcp-database server (package name: db-access). Register the server with your MCP client and configure access to your database. SSH access is needed only if your connection uses a tunnel.

The skill includes setup guidance, but it does not include database hosting, credentials, or an automatically installed server.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
