Borrowing it
Nothing to install: this file belongs to NakiriYuuzu/Mssql-Mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/NakiriYuuzu/Mssql-Mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/NakiriYuuzu/Mssql-McpWrote 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/instructions/nakiriyuuzu/mssql-mcp/claude-md)<a href="https://agentmods.dev/instructions/nakiriyuuzu/mssql-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/nakiriyuuzu/mssql-mcp/claude-md/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/instructions/nakiriyuuzu/mssql-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/nakiriyuuzu/mssql-mcp/claude-md.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.01327 | $0.01327 |
| Opus 5 | $0.00664 | $0.00664 |
| Sonnet 5 | $0.00265 | $0.00265 |
| Haiku 4.5 | $0.00133 | $0.00133 |
Grade A, and why
Mssql-Mcp CLAUDE.md 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 10d ago.
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 — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MSSQL MCP 伺服器 - Claude Code 專案記憶體
專案概述
這是一個使用 TypeScript + Bun 開發的 Model Context Protocol (MCP) 伺服器,專門用於與 Microsoft SQL Server 資料庫互動。提供安全的資料庫查詢、瀏覽和管理功能,並利用 Bunx 實現極速啟動(比 npx 快 100 倍)。
核心功能
🔌 連接管理
- connect-database: 建立安全的 MSSQL 連接
- disconnect: 優雅地關閉資料庫連接
- connection-status: 檢查連接狀態和健康度
🗄️ 資料庫操作
- list-databases: 列出所有可用的使用者資料庫
- switch-database: 動態切換工作資料庫
- list-tables: 瀏覽目前資料庫的資料表
- describe-table: 詳細檢視資料表結構和欄位定義
📊 查詢功能
- execute-query: 執行安全的 SELECT 查詢
- 自動限制查詢結果筆數
- 內建 SQL 注入防護機制
安全特性
- 查詢限制: 僅允許 SELECT 和 WITH 查詢,自動阻擋 DML/DDL 操作
- 輸入驗證: 對所有輸入進行清理和驗證
- 連接加密: 支援 SSL/TLS 加密連接
- 權限控制: 建議使用最小權限原則的資料庫帳號
專案結構
src/
├── index.ts # MCP 伺服器主程式和工具定義
├── database.ts # MSSQL 連接管理和操作類別
├── types.ts # TypeScript 類型定義
└── utils.ts # 工具函數和安全驗證
claude-commands/ # Claude Code 自訂指令
├── sql-connect.md # 快速連接指令
├── sql-explore.md # 資料庫探索指令
├── sql-analyze.md # 資料表分析指令
└── sql-sample.md # 樣本資料預覽指令
開發指令
🚀 使用 Bun (推薦 - 極速執行)
bun install # 安裝依賴(比 npm 快 10 倍)
bun run dev # 開發模式(直接執行 TypeScript)
bun start # 啟動 MCP 伺服器
bun test # 執行測試
bun run build # 編譯為獨立執行檔
bun run clean # 清理建置檔案
# 使用 Bunx 執行
bunx --bun mssql-mcp # 自動安裝並執行
傳統 npm 指令(備用)
npm install # 安裝依賴
npm run dev # 開發模式
npm start # 啟動伺服器
npm test # 測試
Claude Code 整合
MCP 設定
專案包含 .mcp.json 設定檔,Claude Code 會自動偵測並載入 MSSQL MCP 伺服器。
自訂指令
提供以下專案特定指令:
/project:sql-connect- 快速連接資料庫/project:sql-explore- 探索資料庫結構/project:sql-analyze- 分析資料表統計/project:sql-sample- 預覽樣本資料
使用範例
# 連接到本地資料庫
connect-database server="localhost" user="sa" password="password" database="AdventureWorks"
# 探索資料庫結構
list-databases
switch-database database="Northwind"
list-tables
# 查詢資料
execute-query query="SELECT TOP 10 CustomerID, CompanyName FROM Customers"
# 使用自訂指令
/project:sql-explore Northwind
/project:sql-analyze Customers
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.
- 10d ago First seen · 124 lines · 1,327 tokens per session scan A 7f900c3b2087
Mssql-Mcp CLAUDE.md is an instructions file published in the GitHub repository NakiriYuuzu/Mssql-Mcp (0 stars, last pushed 9mo ago), licensed MIT. It adds 1,327 tokens to every session, about $0.0066 per session on Opus 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-08-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).