mcpbeat Sign in

Quarry MCP Server

by yiminspace Your server? Claim it
local only

Quarry runs on your own machine — the client starts it, so there is no endpoint to ping. 394 installs a week from pypi. Last commit 30 Nov 2026.

Safety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.

Installs per day peak 1 095 · avg 135 · -2% w/w
a month agotoday
394
Installs / week
pypi · quarry-db
7
Stars
0 open issues
30 Nov 2026
Last commit
from GitHub
MIT
License
Python

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add quarry -- uvx --from quarry-db==2.0.1 qy mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "quarry": {
      "command": "uvx",
      "args": [
        "--from",
        "quarry-db==2.0.1",
        "qy",
        "mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.quarry]
command = "uvx"
args = ["--from", "quarry-db==2.0.1", "qy", "mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "quarry": {
      "command": "uvx",
      "args": [
        "--from",
        "quarry-db==2.0.1",
        "qy",
        "mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "quarry": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "quarry-db==2.0.1",
        "qy",
        "mcp"
      ]
    }
  }
}

What the code does

We read the source, 8 h ago · rules 995398eba69f

A tool parameter reaches a dangerous call

A value the model can set ends up inside a file or shell call. That is not a flaw by itself — for a terminal server it is the job — but it is where things go wrong when it is not.

A tool parameter reaches a dangerous call describe_table.table → src/quarry/cli.py:445
                proc = subprocess.run(cmd, capture_output=True, text=True, timeout=15)
Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

            proc = subprocess.run(cmd, input=sql, capture_output=True, text=True, timeout=timeout, env=env)
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

            proc = subprocess.run(cmd, input=sql, capture_output=True, text=True, timeout=timeout, env=env)
Builds a database query by concatenation apps/qy/src/http.rs:359
              if tokio::time::Instant::now()>=next_update {
                  next_update=tokio::time::Instant::now()+Duration::from_secs(1800);
Reads files and sends them to the network src/quarry/gui.py:116
            paths.extend(sorted(w.queries_dir.rglob("*.sql")))
        files.extend(ssh_home / name for name in ("id_rsa", "id_ecdsa", "id_ed25519"))

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

A tool parameter here reaches a dangerous call

That is not a flaw by itself — but it is where things go wrong when it is not the job. We re-read this code on every release. Watch it and you hear from us the day another one appears.

Three servers free · no card

Alternatives to Quarry

same job, measured the same way
DB Mastermind
by elh0m3r0

Explore and query PostgreSQL, SQL Server, Oracle, MySQL, SQLite and more. Read-only by default.

1 359 installs/wk local only
PDQ Deploy
by eredden

An MCP server for read-only access to the PDQ Deploy SQLite database.

903 installs/wk local only
Sakila MCP
by pantoniades

Security-first MySQL MCP server: read-only by default, with a fail-closed SQL classifier.

576 installs/wk local only
Database MCP
by cocaxcode

MCP server for database connectivity with PostgreSQL, MySQL and SQLite.

377 installs/wk local only
Amnesic
by surajkgoyal

Persistent semantic memory for SQL databases. Postgres, MySQL, MSSQL, SQLite.

366 installs/wk local only
Fastmcp Sqltools
by atarkowska

A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite.

294 installs/wk local only
A2db
by agentic-eng

Safe, read-only database access for AI agents. 5 databases, batch queries, SQLGlot.

284 installs/wk local only
SQL Safe MCP
by proprock

Minimal, read-only, PII-safe MCP server for SQL databases.

214 installs/wk local only

Quarry — questions

Answers built from our own checks of this server.

Why is there no uptime for Quarry?
Quarry runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package quarry-db was installed 394 times last week.
How do I connect Quarry?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls quarry-db straight from pypi; nothing to host, nothing to sign up for.
How many people use Quarry?
The pypi package quarry-db was installed 394 times in the last week. Week over week that is -2%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Quarry open source?
Yes — it is published under the MIT licence, written in Python and 7 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.