io.github.rzlco666/strut-stack-sql

Official registry Data and databases

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

MCPB package https://github.com/rzlco666/strut-stack-sql/releases/download/v1.0.4/strut-stack-sql-linux-x64.mcpb

Environment variables

  • DATABASE_URL required secret Database connection URL
MCPB package https://github.com/rzlco666/strut-stack-sql/releases/download/v1.0.4/strut-stack-sql-macos-arm64.mcpb

Environment variables

  • DATABASE_URL required secret Database connection URL
MCPB package https://github.com/rzlco666/strut-stack-sql/releases/download/v1.0.4/strut-stack-sql-macos-x64.mcpb

Environment variables

  • DATABASE_URL required secret Database connection URL
MCPB package https://github.com/rzlco666/strut-stack-sql/releases/download/v1.0.4/strut-stack-sql-linux-arm64.mcpb

Environment variables

  • DATABASE_URL required secret Database connection URL

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Strut Stack SQL
  2. Mission
  3. Install (one command)
  4. Quick start (Cursor)
  5. Why this shape
  6. CLI
  7. Docs
  8. Agent clients
  9. License

Strut Stack SQL

Light strut. Extreme load.

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite — written in Rust. Part of the StrutStack ecosystem; usable standalone with any agent client.

Formerly published as mcp-sql-rust (compat binary alias still ships in v1.0).

Mission

  • Token thrift — default 3 tools, columnar {cols,rows,meta}, row/byte caps
  • Best-practice Rust — AST SQL guard before pool checkout, lean release binary
  • Multi-engine — PostgreSQL + MySQL + SQLite in one binary
  • Ship-ready — one-command install, stdio + Streamable HTTP, Cursor-friendly launcher

Install (one command)

curl -fsSL https://raw.githubusercontent.com/rzlco666/strut-stack-sql/main/install.sh | bash
strut-stack-sql --version

Installs to ~/.local/bin (also creates mcp-sql-rust alias). Ensure ~/.local/bin is on your PATH.

Other channels (Homebrew, Scoop, winget, Docker, cargo): docs/INSTALL.md.

Quick start (Cursor)

{
  "mcpServers": {
    "strut-stack-sql": {
      "command": "strut-stack-sql",
      "args": ["--full-tools"],
      "cwd": "${workspaceFolder}"
    }
  }
}

Project .env:

DATABASE_URL=postgresql://user:pass@127.0.0.1:5432/app

Without credentials the server still starts (ephemeral sqlite::memory:) so MCP initialize succeeds; set DATABASE_URL for real queries.

Official workspace launcher (loads nested apps/api/.env, never blocks start on dead DB):

{
  "mcpServers": {
    "strut-stack-sql": {
      "command": "node",
      "args": [
        "/absolute/path/to/strut-stack-sql/packaging/cursor-mcp-launcher.mjs",
        "${workspaceFolder}"
      ]
    }
  }
}

Why this shape

ChoiceDetail
Default toolssearch_objects, execute_sql, analyze_query_performance
Extra tools--full-tools (+ DDL aliases need --allow-ddl)
ResultsColumnar JSON only by default (token-efficient)
Guardsqlparser AST; multi-statement deny; write tiers; complexity limits
TimeoutsClient timeout + PG statement_timeout / MySQL max_execution_time
Transportsstdio · --http 127.0.0.1:8080 (/mcp, /healthz)

Measured RSS / cold-start vs Node rivals (same seed query): docs/BENCHMARKS.md. We do not invent QPS leaderboards.

CLI

strut-stack-sql --version
strut-stack-sql                          # stdio, read-only
strut-stack-sql --allow-writes
strut-stack-sql --full-tools
strut-stack-sql --http 127.0.0.1:8080

Docs

DocPurpose
docs/QUICKSTART.mdFirst run
docs/INSTALL.mdAll install channels
docs/SECURITY.mdGuard + write tiers
docs/TOOLS.mdTool schemas
docs/CONFIGURATION.md.env / TOML / CLI
docs/ARCHITECTURE.mdModules
docs/BENCHMARKS.mdReproducible harness

Agent clients

See AGENTS.md for Cursor / OMNI / CodeGraph conventions.

License

MIT

Frequently asked questions

What is io.github.rzlco666/strut-stack-sql?

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite

How do I install io.github.rzlco666/strut-stack-sql?

Follow the installation steps in its documentation, shown on this page and in its repository.

Does io.github.rzlco666/strut-stack-sql need an API key?

Yes. It expects DATABASE_URL, which you set in its configuration.

Is io.github.rzlco666/strut-stack-sql open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.rzlco666/strut-stack-sql?

It is published by rzlco666. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.