Queryshield MCP Server

Secure SQL proxy for AI agents — NL→SQL, AST safety, per-agent RLS, audit log.

Local serverstdioPython

What is the Queryshield MCP server?

Secure SQL proxy for AI agents — NL→SQL, AST safety, per-agent RLS, audit log. The queryshield mcp server wraps that behind the Model Context Protocol, so an assistant can use it rather than through you.

What it actually does

Secure SQL proxy between AI agents and enterprise databases.

Configuration

You will need 5 environment variables: QUERYSHIELD_API_KEY, QUERYSHIELD_BASE_URL, ANTHROPIC_API_KEY, DATABASE_URL, VAULT_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at queryshield-mcp on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by bch1212; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the queryshield mcp server does with a few real requests.

How to install the Queryshield MCP server

{
  "mcpServers": {
    "queryshield": {
      "command": "uvx",
      "args": ["queryshield-mcp"],
      "env": {
        "QUERYSHIELD_API_KEY": "your-value",
        "QUERYSHIELD_BASE_URL": "your-value",
        "ANTHROPIC_API_KEY": "your-value",
        "DATABASE_URL": "your-value",
        "VAULT_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
QUERYSHIELD_API_KEYCredential the server authenticates with.Yes
QUERYSHIELD_BASE_URLEndpoint or connection string the server talks to.Yes
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
DATABASE_URLEndpoint or connection string the server talks to.Yes
VAULT_KEYCredential the server authenticates with.Yes

Frequently asked questions

It connects Queryshield to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Queryshield directly.