execute-sql

Community

Read the DB with MCP tools, fallback to psql.

Authorflesler
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables reading data from a PostgreSQL-compatible database by using MCP tools, providing a reliable workflow and a clear fallback path when MCP tools are unavailable.

Core Features & Use Cases

  • Read data from a PostgreSQL database via mcp-postgres MCP tools for streamlined data access.
  • If MCP tools fail or are unavailable, extract the connection URI from the local .cursor/mcp.json file and execute SQL with psql to retrieve results.
  • Suitable for development and operational environments where quick, robust database read access is required without manual setup.

Quick Start

Use mcp-postgres to read the database, and fallback to psql if MCP tools are unavailable.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: execute-sql
Download link: https://github.com/flesler/dotfiles/archive/main.zip#execute-sql

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.