querydig
● Activeio.github.milankatira/querydig
Find, fix and verify N+1 and slow MongoDB/SQL queries in JS/TS, Python, Go, Java, Ruby and PHP.
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"querydig": {
"command": "npx",
"args": [
"-y",
"querydig@0.10.1",
"mcp"
],
"env": {
"QUERYDIG_DB_URI": "<your QUERYDIG_DB_URI>"
}
}
}
}claude mcp add --env QUERYDIG_DB_URI='<your QUERYDIG_DB_URI>' --transport stdio querydig -- npx -y querydig@0.10.1 mcpcodex mcp add querydig --env QUERYDIG_DB_URI='<your QUERYDIG_DB_URI>' -- npx -y querydig@0.10.1 mcpcode --add-mcp '{"name":"querydig","type":"stdio","command":"npx","args":["-y","querydig@0.10.1","mcp"],"env":{"QUERYDIG_DB_URI":"<your QUERYDIG_DB_URI>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- QUERYDIG_DB_URIsecretOptional read-only MongoDB or Postgres URI for live evidence (query plans, row counts, slow queries, missing indexes).
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
Is it safe? Is it maintained?
Serverdex check: Dec 5, 2026Looks healthy: querydig is maintained, open source.
- Maintained
- Active
- Last commit 10 days ago (Nov 25, 2026), 0 open issues.
- Official registry
- Active
- Published as io.github.milankatira/querydig in the official MCP registry, version 0.10.1.
- Source
- Open source, MIT
- Public repository under the MIT licence, 0 stars, 0 forks.
- Runs
- On your machine
- A local npm package started by your client; it can reach whatever your user account can.
- Credentials
- 1 required
- Declared environment variables: QUERYDIG_DB_URI. They stay on your machine; the config on this page shows where each goes.
- Owner
- Unclaimed
- Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.
Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.
Report Card
How the grade works →Grade A · Production-ready
Maintenance & production-readiness — 80/100 from the six repository signals below. A comparable rollup, not a code audit.
- Recent commits+30/30
Last commit 10 days ago.
- Open licence+15/15
MIT on GitHub.
- Documentation+15/15
The repository ships a README.
- Adoption0/20
0 GitHub stars.
- Registry status+12/12
Active in the official MCP registry.
- Product surface+8/8
Has a homepage or a published package/endpoint.
Own this server? Add the grade badge — it links back here
<a href="https://serverdex.io/server/io-github-milankatira-querydig?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-milankatira-querydig/report-badge.svg" alt="querydig — Serverdex Report Card A" height="22"></a>Compare every server's grade on best-maintained MCP servers.
On GitHub
read Nov 26, 2026TypeScriptclimongodbn-plus-oneperformancesqlstatic-analysis
From the README
querydig Find slow, N+1 and unoptimized database queries before they reach production. querydig is a zero-config CLI that statically scans your code for MongoDB and SQL query anti-patterns: N+1 queries, nested queries over results (N²), writes in loops, unbounded reads, unanchored regexes, skip()/OFFSET pagination, non-sargable SQL and more. Each finding gets a severity (critical / high / medium / low), the exact location, why it's slow and how to fix it. • Runs locally. No account, no server, your code never leaves the machine. • Fast. Tree-sitter (WASM) parsing in a worker pool: about 2,000 files in under 1 second. • Multi-language. JavaScript, TypeScript, Python, Go, Java, Ruby and PHP. • Multi-database. MongoDB (Mongoose, native driver, PyMongo/Motor, mongo-go-driver) and SQL (Prisma, TypeORM, Sequelize, pg/mysql2/knex raw, Django ORM, SQLAlchemy, DB-API cursors, GORM/xorm, database/sql, Spring Data JPA, Hibernate, JDBC/JdbcTemplate, jOOQ, ActiveRecord, Sequel, Laravel Eloquent/Query Builder, Doctrine, PDO/mysqli). MongoDB also via the Java driver, Spring Data MongoDB, Mongoid and the MongoDB PHP library. • Live evidence (optional). Point --uri at a MongoDB or Postgres replica to confirm full scans, missing and unused indexes, and slow queries. • CI-ready. GitHub Action with PR comments, --fail-on, baselines, --diff, SARIF for GitHub code scanning, HTML report. • In your editor.…
Read the full README on GitHub →Alternatives to querydig
All querydig alternatives →Best Developer Tools servers →Compare side by side →The most-starred Developer Tools servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| REA | 477,629 | Nov 2026 | Local / not checked |
| AutoGPT | 188,274 | Dec 2026 | Needs sign-in |
| GitHub | 34,870 | Nov 2026 | Needs sign-in |
| Repomix | 29,604 | Dec 2026 | Local / not checked |
| Oh My Posh Validator | 23,801 | Nov 2026 | Working |
querydig: questions people ask
- Is querydig a remote or a local MCP server?
- According to its entry in the official MCP registry, querydig ships as a local package (npm) that your client starts on your machine.
- Does querydig need an API key?
- Its registry entry declares one required environment variable: QUERYDIG_DB_URI. The config on this page shows where each goes.
- Is querydig safe to use?
- Looks healthy: querydig is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, MIT; runs: On your machine; credentials: 1 required. Serverdex check of Dec 5, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
- Is querydig still maintained?
- Active: the repository's last commit 10 days ago. Last push Nov 25, 2026, 0 GitHub stars, MIT licence. Read from GitHub on Nov 26, 2026.
- How do I add querydig to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Developer Tools servers
Browse all Developer Tools →Mind Elixir
Well-maintained
Create, edit, and organize mind maps in the Mind Elixir Desktop app from any MCP client.
Mini Course Generator
Some gaps
Build, publish and track interactive micro-courses, quizzes and learner analytics.
Mirasim Computer Use
Production-ready
Drive browsers, macOS apps and Electron apps through their accessibility trees.
Miro
Production-ready
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
Apple Docs 2.0 MCP
Production-ready
Apple developer docs, Human Interface Guidelines and 1,700 WWDC sessions with code for AI assistants
RenewalMath: verified small-business software prices
Needs work
Verified prices for 177 business software tools and AI model APIs: compare, audit a stack.
Add the badge to your site
Show visitors that querydig is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-milankatira-querydig?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="querydig — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-milankatira-querydig?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-milankatira-querydig) [](https://serverdex.io/install/vscode/io-github-milankatira-querydig) [](https://serverdex.io/install/claude-code/io-github-milankatira-querydig)One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.
Install buttons — HTML for your docs
<a href="https://serverdex.io/install/cursor/io-github-milankatira-querydig"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-milankatira-querydig"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-milankatira-querydig"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>Same buttons as plain links for a docs page or website.
Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).