SQL Querystore MCP server
io.github.deepeshd87/mcp-sql-querystore·v0.1.1Read-only SQL Server diagnostics for LLM agents: Query Store, waits, plans, indexes
0 stars
Reviews
Write oneNobody has reviewed SQL Querystore yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
SQL Querystore tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-03 · same rubric, same numbers if you re-run it
- Code scan7 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner6/10
How SQL Querystore compares
Against every graded E-commerce MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 89/100
- higher than 87% of 2,174 E-commerce servers
Install SQL Querystore in Claude Code, Cursor or VS Code
claude mcp add mcp-sql-querystore -- uvx mcp-sql-querystore
What the publisher says
From the SQL Querystore repository's README, as published. We do not edit it. Read it on GitHub
mcp-name: io.github.deepeshd87/mcp-sql-querystore
mcp-sql-querystore
Read-only MCP server exposing SQL Server Query Store diagnostics to LLM agents.
Six read-only diagnostic tools over Query Store, DMVs, and execution plans. The tools have been validated against a live SQL Server instance and are covered by a unit + integration test suite. Still validate against a non-prod instance of your own before pointing it at production, especially on SQL Server versions other than those noted under caveats.
Quickstart
against your instance (edit names first). This login's permissions are the read-only guarantee — see the security model below.
- Provision a read-only login. Run provisioning/createreadonlylogin.sql
SQL Server must be installed on the host.
- Install. pip install -e . in a virtual environment. ODBC Driver 18 for
the repo can't reach (not under the project folder):
- Store the password outside the repo. Put it in a plain-text file somewhere
# Windows PowerShell, UTF-8, password only, no quotes/newline New-Item -ItemType Directory -Force C:\Users\you\secrets | Out-Null Set-Content -NoNewline -Encoding utf8 C:\Users\you\secrets\mcp_sql.pwd 'your-password'
Or skip the password entirely with integrated auth (MCPSQLTRUSTED=yes) — preferred for CJIS/PCI. See Secret handling below for all options.
claudedesktopconfig.example.json into your real Claude Desktop config (Windows: %APPDATA%\Claude\claudedesktopconfig.json), then replace the placeholder paths, server name, and MCPSQLPWDFILE. Set MCPSQLTRUSTCERT=yes only for a self-signed/local cert; leave it no against instances with proper certificates.
- Configure your MCP client. Copy the sql-querystore block from
- Restart your MCP client and confirm the server shows as running.
Never commit your real config or your password file. .gitignore already excludes .pwd, .env, and claudedesktop_config.json.
Security model (read this first)
The read-only guarantee comes from the SQL login's permissions, not from any code in this repo:
only if you use server-scoped DMVs) and nothing else — no dbdatareader, no SELECT on user tables. See provisioning/createreadonly_login.sql.
- Provision a dedicated login with VIEW DATABASE STATE (and VIEW SERVER STATE
defense-in-depth, not the primary control.
- The keyword screen in db.py and the fixed SELECT-only query text are
secondary in an availability group. On a standalone instance it does not make the session read-only. Do not rely on it for safety.
- ApplicationIntent=ReadOnly in the connection string only routes to a readable
MCPSQLCONNECTIONSTRING env var, but for CJIS/PCI environments prefer integrated auth or a file/secret-store-sourced password — see the Secret handling** section below.
- Credentials never belong in code. The simplest setup uses the
a regulated environment, route that logger to a durable file or SIEM.
- Every query is recorded via the audit logger — see Audit logging below. In
Setup
ODBC Driver 18 for SQL Server must be installed on the host. Install the package, then configure the connection via environment variables (see Secret handling for all options). The recommended form keeps the password in a file, not inline:
pip install -e .
# PowerShell — connection assembled from parts, password read from a file
$env:MCP_SQL_SERVER = "yourhost\INSTANCE"
$env:MCP_SQL_DATABASE = "master"
$env:MCP_SQL_UID = "mcp_readonly"
$env:MCP_SQL_PWD_FILE = "C:\path\to\your\secret.pwd"
$env:MCP_SQL_TRUST_CERT = "no" # "yes" only for a self-signed/local cert
python -m mcp_sql_querystore.serverOr use integrated auth with no stored password at all (MCPSQLTRUSTED=yes). A full MCPSQLCONNECTIONSTRING is also accepted for simple cases — see Secret handling**.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
SQL Querystore: common questions
- Is SQL Querystore MCP server safe?
- Yes, by our scan: it is graded A (89/100). Read the SQL Querystore safety report
- How do I install SQL Querystore?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does SQL Querystore need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is SQL Querystore maintained?
- The last commit was 32 days ago (2026-10-03). The latest release is v0.1.1.
- What can I use instead of SQL Querystore?
- Servers from other publishers that do the same job: Storelift MCP server, Apify MCP server and Mneme Memory MCP server.
Alternatives to SQL Querystore
Same job from other publishers: the closest match first, then the best rated.
StoreliftApp Store & Google Play keyword ranks, rivals, reviews and AI visibility. Free plan included.not reviewedGrowingA- ApifyExtract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡not reviewedEstablishedA
- Mneme MemoryCross-session memory for AI coding agents via six tools; local-first SQLite store.not reviewedEstablishedA
- HeimdallEvery App Store Connect + StoreKit 2 endpoint. 929 tools in 13 profiles, narrow to 27.not reviewedEstablishedB
BuywhereAgent-native product catalog: 300M+ products, 150,000+ stores, deliver_to ranking.not reviewedEstablishedA