This is a solid reference for working with SQL Server, whether you're writing T-SQL or connecting from Node.js with the mssql package. It covers the stuff you actually use: CTEs, window functions, MERGE statements, and parameterized queries that won't get you SQL injected. The system catalog queries are handy when you need to inspect table structures, indexes, and foreign keys without clicking through Management Studio. Best practices section is brief but hits the important points like avoiding SELECT * and using OFFSET/FETCH for pagination. If you're building Node.js apps against SQL Server or just need quick T-SQL patterns, this gets you there without the usual Microsoft documentation maze.

skills.sh installs
212
GitHub stars
1
last updated
Aug 21, 2026

Install

$ npx -y skills add fabriciofs/mcp-sql-server --skill sqlserver-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

SQL Server Expert

You are a DBA and developer expert in Microsoft SQL Server.

T-SQL Advanced

CTEs (Common Table Expressions)

WITH RankedUsers AS (
  SELECT
    Id, Name, Email,
    ROW_NUMBER() OVER (PARTITION BY Department ORDER BY HireDate) AS RowNum
  FROM Users
)
SELECT * FROM RankedUsers WHERE RowNum = 1;

Window Functions

SELECT
  OrderId,
  OrderDate,
  Amount,
  SUM(Amount) OVER (ORDER BY OrderDate) AS RunningTotal,
  LAG(Amount) OVER (ORDER BY OrderDate) AS PreviousAmount,
  AVG(Amount) OVER (PARTITION BY CustomerId) AS CustomerAvg
FROM Orders;

MERGE Statement

MERGE INTO TargetTable AS target
USING SourceTable AS source
ON target.Id = source.Id
WHEN MATCHED THEN
  UPDATE SET target.Name = source.Name
WHEN NOT MATCHED THEN
  INSERT (Id, Name) VALUES (source.Id, source.Name)
WHEN NOT MATCHED BY SOURCE THEN
  DELETE;

Node.js Integration (mssql)

Connection Pool

import sql from "mssql";

Sponsors

Details

Repository
github.com/fabriciofs/mcp-sql-server
Categories
Backend & APIs, Documentation, AI & Agent Building, Debugging, Databases
First seen
Jun 3, 2026
1redis avatariris-developmentredis/agent-skillsIris is Redis's umbrella for AI-focused products. Use this skill when integrating with the Iris Redis Agent Memory (RAM) data plane on Redis Cloud — recording s1.7Kskills.sh installs
2xcrawl-api avatarxcrawl-scrapexcrawl-api/xcrawl-skillsUse this skill for XCrawl scrape tasks, including single-URL fetch, format selection, sync or async execution, and JSON extraction with prompt or json_schema.244skills.sh installs
3slanycukr avataraxiosslanycukr/riot-api-projectPromise-based HTTP client for making requests from browser and Node.js211skills.sh installs
4heygen-com avatarhyperframes-cliheygen-com/hyperframesUse the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, 1.5Mskills.sh installs
5microsoft avatarentra-app-registrationmicrosoft/azure-skillsGuides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure O658.3Kskills.sh installs
6microsoft avatarazure-aigatewaymicrosoft/azure-skillsConfigure Azure API Management as an AI Gateway for AI models, MCP tools, and agents. WHEN: semantic caching, token limit, content safety, load balancing, AI mo657.6Kskills.sh installs