Plugin · Claude Code · Databases

Zx06 Xsql

zx06-xsql is a Claude Code plugin for the Build phase that exposes a cross-database CLI to query MySQL and PostgreSQL safely with read-only mode, SSH tunnels, and JSON output.

by zx06 · github.com/zx06/xsql

Inspect and query MySQL or PostgreSQL from Claude Code with read-only guards, SSH tunnels, and JSON the agent can reason over.

3
GitHub stars
0
Installs
0
Community votes
One vote per signed-in builder - it helps surface the tools the community actually relies on.
Install

Add it to Claude Code

Install the plugin in Claude Code. One command, paste-ready.

Install the plugin
/plugin install zx06-xsql@zx06/xsql
Add to ClaudeUse the Agent APISkillselion is itself an MCP server - your agent can fetch this config directly.
Agent API

Built to be called by your agent

Skillselion is itself an MCP server. Your agent can pull this entry and a paste-ready install config straight from the API - no copy-paste.

Retrieve this entry with skillselion.get_details("plugin:zx06/xsql") and the paste-ready config with skillselion.get_install_config("plugin:zx06/xsql").

About

What it does

zx06-xsql is a Claude Code plugin bundle around an AI-first cross-database CLI called xsql. Solo builders and small teams use it when they need to explore MySQL or PostgreSQL schemas and run constrained queries while coding features, fixing bugs, or validating assumptions against real data. The tool emphasizes safety with read-only protection so agents are less likely to mutate production or shared dev databases during ad-hoc investigation. SSH tunneling supports common indie setups where the database lives on a VPS, tunnel host, or cloud instance rather than localhost. Structured JSON output is tuned for LLM consumption, which makes it easier to paste results into plans, migrations, or API design notes inside Claude Code. It is a task integration for data access, not a full ORM or migration framework; pair it with your existing stack when you want fast, guarded visibility into tables and columns without leaving the agent session.

Highlights

  • Cross-database CLI for MySQL and PostgreSQL with AI-oriented structured JSON output
  • Read-only protection to reduce accidental writes during agent-driven exploration
  • SSH tunneling for remote staging or production read access without exposing ports broadly
  • Schema inspection workflows aligned with agent tooling keywords (inspect, schema, safely)

Why builders use it

Agents and solo builders often need live schema and sample rows but lack a safe, repeatable way to query remote MySQL or PostgreSQL without risking writes or messy copy-paste dumps.

You get read-only, tunnel-friendly database queries with structured JSON so Claude can inspect schemas and answer data questions during backend work.

At a glance

  • Type - Plugin in Databases.
  • Adoption - 0 installs, 3 stars, 0 votes.

FAQ

Who is zx06-xsql for?

Solo builders and small teams using Claude Code who work with MySQL or PostgreSQL and want guarded, agent-friendly query and schema inspection.

When should I use zx06-xsql?

Use it during backend build and debug when you need read-only SQL against local or SSH-tunneled databases with JSON results the model can parse.

How do I add zx06-xsql to my agent?

Register the zx06/xsql Claude Code marketplace plugin in your Claude Code plugin configuration, then invoke the bundled xsql CLI skill or command per the repo README.

Discussion

Comments

Share how you use zx06-xsql, gotchas, or tips for other indie builders.

No comments yet - be the first to share how you use it.

This week for builders

Five minutes, every Monday — the tools, releases and tactics for shipping solo.

unsubscribe anytime.