sqlserver-mcp 0.6.0

SQL Server 2025/2022/2019/2017 - master/msdb/model combined catalog MCP server, generated by mcpify.
Documentation
# SQL Server operational workflows — start here

This server exposes exactly 3 generic tools — `search`, `get`, `call` — over
a SQL Server catalog (system stored procedures, functions, DMVs/DMFs, and
catalog views) introspected live from `master`/`msdb`/`model` and ranked to
the ~500 most useful operations per engine version — see
docs/sqlserver-eda-openapi-pipeline/README.md's "Known limitations" for what
that ranking leaves out (notably: extended stored procedures like
`sp_executesql` have no queryable metadata and aren't in the catalog at all —
there is no general "run arbitrary T-SQL" escape hatch). The prompts below
sequence the covered operations into guided, multi-step workflows for common
operational tasks, so you don't have to re-derive the right order of calls,
the gotchas, and the verification steps from scratch.

## Menu

| Prompt | Use when the goal is... |
|---|---|
| `sqlserver-schema-exploration` | Discovering what databases/schemas/tables/views/columns exist |
| `sqlserver-indexes-constraints` | Inspecting a table's indexes, foreign keys, or check constraints |
| `sqlserver-security-provisioning` | Creating a login, granting database access, or managing role membership |
| `sqlserver-sql-agent-jobs` | Scheduling or managing a SQL Agent job |
| `sqlserver-server-administration` | Server/database config, renaming objects, disk usage, linked servers |
| `sqlserver-performance-diagnostics` | Diagnosing high CPU, slow queries, I/O, or resource limits |
| `sqlserver-blocking-and-locks` | Diagnosing a blocked/stuck query, and — only with explicit confirmation — killing the session causing it |
| `sqlserver-index-tuning-recommendations` | Finding and, with explicit confirmation, creating a missing index |

## Routing

1. Match the user's goal (or `goal`, if already supplied above) to exactly one
   row in the menu. Ask a clarifying question if more than one plausibly
   applies, or none do.
2. **Delegate the whole matched sub-workflow if your environment supports
   running an isolated sub-task** (an agent/task tool): hand the sub-task the
   matched prompt's name plus any parameters already known, let it fetch that
   prompt itself and carry out every step — including all of its own
   `search`/`get`/`call` traffic — in its own context, and have it report
   back only a short summary (what was accomplished/confirmed, and anything
   still needed from the user). This is what keeps a workflow's full tool-call
   trace out of this conversation.
3. If no such delegation mechanism is available, fetch the matched prompt
   yourself and carry out its steps directly here.

Every sub-workflow prompt is self-contained: don't read this menu's
description as the full instructions — fetch the matched prompt for the real
steps, gates, and forks.