Strut Stack SQL logo

Strut Stack SQL

Query and inspect MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse databases through token-efficient MCP tools.

Install Strut Stack SQL

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://insiders.vscode.dev/redirect/mcp/install?name=strut-stack-sql&config=%7B%22command%22%3A%22strut-stack-sql%22%2C%22args%22%3A%5B%22--url-env%22%2C%22DATABASE_URL%22%2C%22--full-tools%22%5D%2C%22env%22%3A%7B%22DATABASE_URL%22%3A%22%24%7Binput%3Adatabase_url%7D%22%7D%2C%22inputs%22%3A%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22database_url%22%2C%22description%22%3A%22DATABASE_URL%20for%20strut-stack-sql%20%28e.g.%20postgresql%3A%2F%2Fuser%3Apassword%40localhost%3A5432%2Fdbname%29%22%2C%22password%22%3Atrue%7D%5D%7D

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

strut-stack-sql connects AI agents to MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse through a small Rust-based MCP binary. Its tools support ranked schema discovery, parameterized SQL execution, controlled concurrent batches, pagination, and query-performance analysis. Read-only configuration is the default, with no writes or DDL in the standard setup. Reach for it when an agent needs database exploration and query work without loading an entire schema into context.

Use cases

  • Search a database schema for tables and related objects
  • Run parameterized SQL queries from an AI client
  • Page through large query results
  • Inspect execution plans and review index advice

Key features

  • Supports six SQL database engines
  • Ranks schema searches progressively
  • Executes parameterized statements and governed batches
  • Provides cursor pagination and multiple result formats
  • Returns normalized EXPLAIN analysis
  • Defaults to read-only operation

Tools3

What Strut Stack SQL lets your agent do. Expand a tool for its parameters.

Self-reported~89 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 83d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit7d agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Strut Stack SQL works

What strut-stack-sql does

strut-stack-sql gives MCP-compatible AI clients a database interface for MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse. It is designed to reduce the amount of schema and query-result text sent through the model context. The server runs as a single Rust binary and connects to a database using a database URL.

The default setup is read-only: it exposes 13 tools consisting of three core tools and ten introspection tools, while disabling writes and DDL. This makes the standard configuration suitable for agents that need to inspect a database, retrieve records, and investigate query behavior without changing the schema or data.

How it works

The search_objects tool helps an agent locate database objects progressively. Results are ranked from strongest to weakest match: exact name, prefix, substring, and comment match. This lets an agent search for relevant tables or other schema objects instead of receiving a full schema dump up front.

execute_sql handles one SQL statement, bound parameters, or a governed concurrent batch. Results can use columnar, row-based, or automatic formatting. Cursor pagination is available for large result sets, helping agents retrieve data in manageable portions.

analyze_query_performance returns a normalized EXPLAIN tree, organizes findings by tier, and provides index advice as text. The advice is informational; the tool does not execute the suggested index changes.

Setup and configuration

The installation script can download a release binary with SHA256 verification and configure detected AI clients. It can also limit setup to selected clients, create project-local configuration files, skip binary installation, or install without changing client configuration. Existing server entries are preserved and files modified by the setup process are backed up first.

A typical setup passes the database connection through DATABASE_URL:

Terminal
curl -fsSL https://raw.githubusercontent.com/rzlco666/strut-stack-sql/main/install.sh | bash -s -- --setup --database-url 'postgresql://user:pass@localhost:5432/mydb'

Without a URL supplied during installation, configure the client to use --url-env DATABASE_URL and export DATABASE_URL in the environment that launches the editor or agent. The manual configurations use MCP stdio transport and pass --full-tools to enable the complete tool set. Claude Desktop users can install a platform-specific .mcpb bundle from the releases page; Cursor and VS Code also have one-click setup links.

Tools and capabilities

  • Ranked, progressive schema-object search.
  • Single-statement SQL execution with bound parameters.
  • Governed concurrent SQL batches.
  • Columnar, row, and automatic result formats.
  • Cursor-based pagination for large query results.
  • Normalized query-plan output with tiered findings.
  • Text-only index recommendations that are never applied automatically.
  • Introspection tools available alongside the three core tools in the full configuration.

The server is licensed under MIT. It is listed in the official MCP Registry as io.github.rzlco666/strut-stack-sql.

Limitations and notes

The standard setup does not permit writes or DDL, so it is intended for read-only database exploration and analysis unless a different operating mode is configured. Index advice from query analysis must be reviewed and applied separately. Client configuration syntax differs between tools: VS Code uses a top-level servers object, while several other clients use mcpServers; Codex uses TOML rather than JSON.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Strut Stack SQL

strut-stack-sql is an MCP server that connects AI clients to MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse. Its main tools search schema objects, execute parameterized SQL or governed batches, paginate large results, and analyze query performance with normalized EXPLAIN output and text-only index advice.

Run the installation script with `--setup` to download the verified binary and configure detected AI clients. Add `--database-url` to provide the connection during setup, or use `--url-env DATABASE_URL` and export `DATABASE_URL` before launching your client.

Yes, strut-stack-sql works with Cursor through global or project MCP configuration. The installer can configure Cursor automatically, and the manual setup uses `.cursor/mcp.json` with stdio transport, `--url-env DATABASE_URL`, and `--full-tools`.

strut-stack-sql supports MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse. Configure the server with a database URL for the target engine, either directly or through the `DATABASE_URL` environment variable.

Yes, the standard configuration is read-only and provides no writes or DDL. It exposes three core tools plus ten introspection tools; query-performance index advice is returned as text and is never executed automatically.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStrut Stack SQL AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/strut-stack-sql?style=directory)](https://allmcps.com/mcp/strut-stack-sql)
HTML Embed
<a href="https://allmcps.com/mcp/strut-stack-sql"><img src="https://allmcps.com/api/badge/strut-stack-sql?style=directory" alt="Strut Stack SQL on AllMCPs" /></a>