Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

sprocguard

by JheysonJhordyHuarauyaRiquelmeversion 0.3.0i★ 1iRuns on your computerRepository ↗
Registry nameio.github.JheysonJhordyHuarauyaRiquelme/sprocguard

How to install

What it does

Safety net for SQL Server stored procedures: capture their behavior and verify changes.

  • Connects Runs on your computer
  • Account or key Needs SPROCGUARD_ODBC, SPROCGUARD_PASSWORD
  • Category Databases & datasets

Use together with

Skills that teach the AI this kind of work; they work alongside this one

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,6421 skills

Skill · How-to guide

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

by BigBodyCobain★ 11,6081 skills

Skill · How-to guide

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

by gosom★ 8,2561 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity4/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score16/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install sprocguard. Follow https://mcp.popnx.com/i/jheysonjhordyhuarauyariquelme-sprocguard.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 15, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server sprocguard for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "sprocguard": { "command": "uvx", "args": [ "sprocguard", "serve" ], "env": { "SPROCGUARD_ODBC": "your-value", "SPROCGUARD_PASSWORD": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SPROCGUARD_ODBC, SPROCGUARD_PASSWORD, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the sprocguard tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a sprocguard key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the sprocguard site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "sprocguard": {
          "command": "uvx",
          "args": [
            "sprocguard",
            "serve"
          ],
          "env": {
            "SPROCGUARD_ODBC": "your-value",
            "SPROCGUARD_PASSWORD": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use sprocguard and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using sprocguard or shows a sprocguard tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SPROCGUARD_CONFIG Path to sprocguard.toml (defaults to ./sprocguard.toml in the working directory)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect sprocguard yet

sprocguard runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect sprocguard

  • You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

B · Others in Databases & datasets that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server sprocguard for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user sprocguard --env SPROCGUARD_ODBC=your-value --env SPROCGUARD_PASSWORD=your-value -- uvx sprocguard serve 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SPROCGUARD_ODBC, SPROCGUARD_PASSWORD, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the sprocguard tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a sprocguard key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the sprocguard site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user sprocguard --env SPROCGUARD_ODBC=your-value --env SPROCGUARD_PASSWORD=your-value -- uvx sprocguard serve

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see sprocguard listed as connected

  6. Try it

    Use sprocguard and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using sprocguard or shows a sprocguard tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SPROCGUARD_CONFIG Path to sprocguard.toml (defaults to ./sprocguard.toml in the working directory)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server sprocguard for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "sprocguard": { "command": "uvx", "args": [ "sprocguard", "serve" ], "env": { "SPROCGUARD_ODBC": "your-value", "SPROCGUARD_PASSWORD": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SPROCGUARD_ODBC, SPROCGUARD_PASSWORD, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the sprocguard tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a sprocguard key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the sprocguard site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the sprocguard settings, SPROCGUARD_ODBC, SPROCGUARD_PASSWORD is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use sprocguard and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using sprocguard or shows a sprocguard tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SPROCGUARD_CONFIG Path to sprocguard.toml (defaults to ./sprocguard.toml in the working directory)

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a sprocguard key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server sprocguard for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "sprocguard": { "type": "stdio", "command": "uvx", "args": [ "sprocguard", "serve" ], "env": { "SPROCGUARD_ODBC": "your-value", "SPROCGUARD_PASSWORD": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SPROCGUARD_ODBC, SPROCGUARD_PASSWORD, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the sprocguard tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a sprocguard key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the sprocguard site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the sprocguard settings, SPROCGUARD_ODBC, SPROCGUARD_PASSWORD is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use sprocguard and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using sprocguard or shows a sprocguard tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SPROCGUARD_CONFIG Path to sprocguard.toml (defaults to ./sprocguard.toml in the working directory)

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use sprocguard💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user sprocguard --env SPROCGUARD_ODBC=your-value --env SPROCGUARD_PASSWORD=your-value -- uvx sprocguard serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "sprocguard": {
      "command": "uvx",
      "args": [
        "sprocguard",
        "serve"
      ],
      "env": {
        "SPROCGUARD_ODBC": "your-value",
        "SPROCGUARD_PASSWORD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "sprocguard": {
      "command": "uvx",
      "args": [
        "sprocguard",
        "serve"
      ],
      "env": {
        "SPROCGUARD_ODBC": "your-value",
        "SPROCGUARD_PASSWORD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "sprocguard": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "sprocguard",
        "serve"
      ],
      "env": {
        "SPROCGUARD_ODBC": "your-value",
        "SPROCGUARD_PASSWORD": "your-value"
      }
    }
  }
}

Values you fill in

  • SPROCGUARD_CONFIG env
    Path to sprocguard.toml (defaults to ./sprocguard.toml in the working directory)
  • SPROCGUARD_ODBC secret required env
    ODBC connection string; overrides the connection in sprocguard.toml
  • SPROCGUARD_PASSWORD secret required env
    SQL login password, only when the config uses user/password_env

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
0.3.0
Published to registryi
Nov 14, 2026
Code last changedi
Nov 14, 2026
Maker
JheysonJhordyHuarauyaRiquelme
Packages
pypi: sprocguard
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account JheysonJhordyHuarauyaRiquelme, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 6 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for sprocguard@0.3.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/jheysonjhordyhuarauyariquelme-sprocguard.svg)](https://mcp.popnx.com/en/servers/jheysonjhordyhuarauyariquelme-sprocguard)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Databases & datasetsi

  • More stars than 78% of the other 1247 servers in this category
  • Published to the registry more recently than 89% of the other 1247 servers in this category
  • Basic checks equal to or better than 99% of the other 1247 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is sprocguard safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: SPROCGUARD_ODBC, SPROCGUARD_PASSWORD

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 6 days ago, and the latest version (0.3.0) reached the registry 6 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Supabase, Neon, DBCode, Keboola MCP, WaveHouse Cloud

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

by supabaseWidely used↓ 245.5K/wk★ 3K Stars for the whole repoUpdated 2 days ago

Computer or cloud✓ service owner · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

by neondatabaseGrowing★ 667Updated 14 days ago

Runs in the cloud✓ service owner · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

by dbcodeioEarly↓ 118/wk★ 369 Stars for the whole repoUpdated 2 months ago

Runs on your computer✓ service owner · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

by keboolaGrowing↓ 1.4K/wk★ 84Updated yesterday

Computer or cloud✓ service owner · keboola.com

WaveHouse Cloud

Browse, query, and administer your managed WaveHouse + ClickHouse projects (schema, pipes, policy).

by Wave-RFEarly★ 41Updated today

Runs in the cloud✓ service owner · wavehouse.cloud
Compared with similar ones
This one
sprocguard
SupabaseNeonDBCodeKeboola MCPWaveHouse Cloud
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to install
Needs a keyYesYesNoNoNoNo
Add with + in ClaudeNoYesYesNoNoNo
Basic checks3/35/55/52/35/54/4
LicenseMITApache-2.0MITNOASSERTIONMITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

sprocguard

A safety net for SQL Server stored procedures. Capture what a procedure does *today*, let a human or an AI agent change it, and get a clear report of every behavior that changed — before it reaches production.

Leer en español

$ sprocguard verify dbo.usp_PlaceOrder

FAIL dbo.usp_PlaceOrder: 3/5 case(s) behave exactly as in the baseline. (the procedure definition changed since the baseline was captured) ok regular customer buys 2 coffees XX VIP customer gets 10% off

  • Result set #1, row 1: Total "33.75" -> "33.80"
  • dbo.Orders: no longer inserts {"CustomerId": 1, "Total": "33.75"}
  • dbo.Orders: now inserts {"CustomerId": 1, "Total": "33.80"} XX VIP discount with odd cents
  • Result set #1, row 1: Total "78.75" -> "78.80"
  • dbo.Orders: no longer inserts {"CustomerId": 1, "Total": "78.75"}
  • dbo.Orders: now inserts {"CustomerId": 1, "Total": "78.80"} ok buys exactly the last units ok insufficient stock raises error

Three ways to use it

WhereHowFor
Terminalpip install sprocguard (CLI)Checking a change on your machine
AI agentsMCP server and Claude Code plugin (MCP)Letting an agent verify its own SQL edits
Pull requestsGitHub Action, also on the GitHub MarketplaceBlocking a merge that changes behavior

Why

Many companies keep their business rules inside stored procedures, usually without tests. AI coding agents are now asked to "clean up" or "optimize" them, and a refactor that looks equivalent can quietly change a rounding rule, an error path or a table it updates.

sprocguard gives you characterization tests (also called *golden master* tests) in minutes: it records what the procedure returns and what it changes in the database, then compares any new version against that record.

What it captures

For every case (a set of parameter values):

  • every result set, in order when the order is stable;
  • the return value and OUTPUT parameters;
  • the error raised, if any (errors are behavior too);
  • the rows inserted, updated and deleted in each table the procedure writes, including tables written by procedures it calls and by triggers.

Each case runs twice. Values that change by themselves (new IDENTITY values, NEWID(), and any date or time taken while the procedure was running, even at second or day precision) are detected automatically and ignored when verifying.

Safety model

sprocguard executes your procedures, so safety comes first:

ProtectionHow
Nothing is ever committedEach execution runs inside a transaction that is always rolled back, with IMPLICIT_TRANSACTIONS ON and two nesting levels, so an inner ROLLBACK or a stray COMMIT in the procedure cannot leak changes.
Only development databasesIt refuses to connect to any database not listed in allowed_databases.
No irreversible side effectsProcedures that send e-mail, run xp_cmdshell, start jobs, use OPENROWSET/OPENQUERY or linked servers are refused by default: a rollback cannot undo them.
Big tables are not dumpedTables above max_rows_per_table are not snapshotted (reported as skipped).
SQL injectionParameter values are always sent as query parameters, never concatenated.

Captures hold locks on the tables involved for a moment: use a development database.

Install

Requires Python 3.11+ and the Microsoft ODBC Driver 17 or 18 for SQL Server (usually already installed with SQL Server or SSMS). Check which one you have with Get-OdbcDriver | Where-Object Name -like "*SQL Server*" in PowerShell.

pip install sprocguard

SQL authentication without ODBC: pip install "sprocguard[pymssql]"

Quick start (5 minutes, with the demo database)

The demo scripts live in the examples folder of the repository:

git clone https://github.com/JheysonJhordyHuarauyaRiquelme/sprocguard.git

cd sprocguard

sqlcmd -S localhost -E -i examples/demo.sql        # creates DemoShop with two procedures

sprocguard init # writes sprocguard.toml; edit the connection sprocguard inspect dbo.usp_PlaceOrder # parameters, tables, risks sprocguard capture dbo.usp_PlaceOrder --cases examples/cases/usp_PlaceOrder.json sqlcmd -S localhost -E -i examples/regression.sql # a "harmless" refactor sprocguard verify dbo.usp_PlaceOrder # catches the rounding change (exit code 2)

sprocguard.toml (use ODBC Driver 17 for SQL Server if that is the one you have):

[connection]

odbc = "Driver={ODBC Driver 18 for SQL Server};Server=localhost;Database=DemoShop;Trusted_Connection=yes;TrustServerCertificate=yes"

[safety] allowed_databases = ["DemoShop"] max_rows_per_table = 5000 allow_external_side_effects = false

[storage] baseline_dir = ".sprocguard/baselines" # commit this folder tsqlt_dir = ".sprocguard/tsqlt"

Use it with AI agents (MCP)

sprocguard ships an MCP server and an Agent Skill that teaches agents the workflow: *inspect → design cases → capture → change → verify*.

Claude Code (plugin with the MCP server and the skill):

/plugin marketplace add JheysonJhordyHuarauyaRiquelme/sprocguard

/plugin install sprocguard@sprocguard

Any MCP client (VS Code, Cursor, Claude Desktop...):

{ "mcpServers": { "sprocguard": { "command": "sprocguard", "args": ["serve"] } } }

With uv you can skip the install step: use "command": "uvx", "args": ["sprocguard", "serve"]. sprocguard is also listed in the MCP Registry as io.github.JheysonJhordyHuarauyaRiquelme/sprocguard.

ToolWhat it doesRead-only
inspect_procedureParameters, tables read/written, procedures and triggers involved, risksyes
suggest_casesReal parameter values from related tables plus edge valuesyes
capture_baselineRecords the current behavior (refuses to overwrite unless asked)writes a file
verify_procedureRe-runs the cases and lists every differenceyes
generate_tsqlt_testsTurns a baseline into tSQLt testswrites a file
list_baselinesLists captured baselinesyes

CLI

sprocguard init                                   create sprocguard.toml

sprocguard inspect [--definition] describe a procedure and its risks sprocguard suggest suggest parameter values sprocguard capture --cases cases.json capture a baseline [--watch schema.table ...] [--overwrite] sprocguard capture-cases capture every cases file (usp_X.json -> dbo.usp_X) [--overwrite] [--skip-missing] sprocguard verify [ ...] verify one, several or all baselines (exit 2 if behavior changed) [--markdown-report report.md] [--only-failures] sprocguard tsqlt generate tSQLt tests (read-only procedures) sprocguard list list baselines sprocguard serve run the MCP server (stdio)

Add --json for machine-readable output.

Use sprocguard verify --only-failures to keep passing procedures to one PASS line and show only failing cases with their differences for changed procedures. JSON output and Markdown reports are unaffected.

Verify on every pull request (GitHub Action)

This repository is also a GitHub Action, listed on the GitHub Marketplace. It starts a throwaway SQL Server in Docker, builds your database from the scripts in your repository and runs sprocguard verify. The pull request fails when a procedure changed behavior, and the job summary lists every difference.

It compares against one of two references:

  • The base branch (mode: base-branch, from v0.3.0): nothing to prepare on your machine.
  • Baselines committed in the repository (the default, mode: committed).
Compare with the base branch

The action builds the database with the scripts of the base branch, captures baselines with your cases files, rebuilds the database with the scripts of the pull request and verifies.

name: Stored procedures

on: pull_request permissions: contents: read jobs: sprocguard: runs-on: ubuntu-latest steps:

  • uses: actions/checkout@v7
  • uses: JheysonJhordyHuarauyaRiquelme/sprocguard@v0.3.0 with: mode: base-branch cases: db/cases setup-scripts: | db/schema.sql db/seed.sql db/procedures/*.sql

db/cases holds one file per procedure, named after it (usp_PlaceOrder.json is dbo.usp_PlaceOrder, sales.usp_Refund.json is sales.usp_Refund), in the same format as sprocguard capture --cases. Procedures that do not exist on the base branch yet are skipped. If the pull request moves or renames the scripts, set base-setup-scripts to the paths on the base branch. Your scripts must create the same test data every time, because both sides are compared on the data they build.

Compare with committed baselines
      - uses: actions/checkout@v7
  • uses: JheysonJhordyHuarauyaRiquelme/sprocguard@v0.3.0 with: setup-scripts: | db/schema.sql db/seed.sql db/procedures/*.sql

To set it up:

  1. Keep scripts that build a development copy of your database (tables, test data and procedures) in the repository. The action runs them in order with sqlcmd.
  2. Build that database on your machine from the same scripts and capture the baselines there, so they describe the same data the action will build.
  3. Commit the baselines (.sprocguard/baselines) and a sprocguard configuration file. The action replaces its [connection] with the throwaway server, so it does not need your real connection string; point config at a separate file such as sprocguard.ci.toml if you prefer. The [safety] rules still apply.
Inputs and outputs
InputDefaultWhat it does
modecommittedcommitted or base-branch (see above)

| cases | | Cases files or folders, one per

Only the beginning is shown; read the rest in the repo