Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add RichardHan/mssql_mcp_server --skill mssql-servergit clone --depth 1 https://github.com/RichardHan/mssql_mcp_serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/richardhan/mssql_mcp_server/mssql-server)<a href="https://agentmods.dev/skills/richardhan/mssql_mcp_server/mssql-server"><img src="https://agentmods.dev/badge/skills/richardhan/mssql_mcp_server/mssql-server/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/richardhan/mssql_mcp_server/mssql-server"><img src="https://agentmods.dev/badge/skills/richardhan/mssql_mcp_server/mssql-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00070 | $0.00598 |
| Opus 5.5 | $0.00028 | $0.00239 |
| Sonnet 5.5 | $0.00014 | $0.00120 |
| Haiku 4.5 | $0.00007 | $0.00060 |
Grade A, and why
mssql-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Microsoft SQL Server via MCP
Pairs with the open-source MCP server microsoft_sql_server_mcp (github.com/RichardHan/mssql_mcp_server, MIT). Launch: uvx microsoft_sql_server_mcp.
When to use
- User asks a question answered by data in SQL Server, Azure SQL, or LocalDB.
- Schema exploration: "what tables are there", "what columns does X have".
- Writing/running T-SQL, or setting up/troubleshooting this MCP server.
What the server exposes
- Resources: one per table,
mssql://<table>/data(reads first 100 rows as CSV). - Tool:
queryin read-only mode (default; SELECT/WITH only). WhenMSSQL_ALLOW_WRITES=truethe tool isexecute_sqland accepts any statement.MSSQL_COMMANDoverrides the tool name.
If the server is not configured, follow references/setup.md. Env vars are in references/env-vars.md.
Safe workflow
- List tables (list resources, or
SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES). - Inspect schema before querying:
SELECT COLUMN_NAME, DATA_TYPE, IS_NULLABLE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'X'. - Read with limits: always
SELECT TOP (100) ...(orOFFSET/FETCH), name columns instead of*on wide tables, filter on indexed columns, avoid unbounded joins on large tables. - Writes: never run INSERT/UPDATE/DELETE/DDL without showing the exact statement and getting explicit user confirmation. Prefer a
SELECT COUNT(*)with the same WHERE first to show impact. Wrap inBEGIN TRAN ...when possible. Leave read-only mode on unless the user deliberately enables writes. - Parameter safety: the tool takes raw SQL. Never paste untrusted user text directly into SQL; validate identifiers against INFORMATION_SCHEMA, quote with
QUOTENAME, escape string literals ('->''), and reject stacked statements.
Credentials
- Use a dedicated least-privilege login (e.g.
db_datareader), neversa. - Keep passwords in env/config, never echo them back or put them in queries or files you commit.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 34 lines · 70 tokens per session scan A d8c252ac1ae6
mssql-server is a skill published in the GitHub repository RichardHan/mssql_mcp_server (402 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 598 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.
mssql-server compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mssql-serverRichardHan/mssql_mcp_server | Skill | 402 | yesterday | MIT | A | 70 | Claude Code, Codex |
| create-prprisma/orm | Skill | 48k | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| schema-explorationlangchain-ai/deepagents | Skill | 31k | yesterday | MIT | A | 57 | Claude Code, Codex |
| atlas-mssqlariga/atlas | Skill | 8.8k | yesterday | Apache-2.0 | A | 163 | Claude Code |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 115 | Claude Code, Codex |
| nornicdb-cypher-queriesorneryd/NornicDB | Skill | 923 | today | MIT | A | 79 | Claude Code, Codex |
| volcengine-rds-postgresqlbytedance/agentkit-samples | Skill | 484 | today | Apache-2.0 | A | 63 | Claude Code, Codex |