readonly-mssql-mcp-db: Instructions file for Claude Code

CLAUDE.md

readonly-mssql-mcp-db CLAUDE.md is an instructions file for Claude Code from Debanjan29/readonly-mssql-mcp-db. It costs 1,726 tokens per session, scanned A, a copy of mcp-sqlserver CLAUDE.md, MIT.

A project guide for an MCP server that exposes tools for Microsoft SQL Server, including database queries, schema discovery, table changes, stored procedures, performance checks, and administration. MCP is a standard way for AI assistants to call external tools.

In plain words
What is it for?
Use it as working guidance when modifying or reviewing the readonly-mssql-mcp-db project.
Why use it?
It gives an AI assistant the project’s technology stack, directory map, commands, and rules before changes are made. This reduces mistakes such as using the wrong module format or letting version information get out of sync.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

This is Debanjan29/readonly-mssql-mcp-db's own configuration. It tells Claude Code how to work on readonly-mssql-mcp-db itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything readonly-mssql-mcp-db configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Debanjan29/readonly-mssql-mcp-db. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Debanjan29/readonly-mssql-mcp-db/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Debanjan29/readonly-mssql-mcp-db

Made for: Claude Code.

Wrote 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.

agentmods badge for readonly-mssql-mcp-db CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/debanjan29/readonly-mssql-mcp-db/claude-md/github.svg)](https://agentmods.dev/instructions/debanjan29/readonly-mssql-mcp-db/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/debanjan29/readonly-mssql-mcp-db/claude-md"><img src="https://agentmods.dev/badge/instructions/debanjan29/readonly-mssql-mcp-db/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.

agentmods 80×15 button for readonly-mssql-mcp-db CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/debanjan29/readonly-mssql-mcp-db/claude-md"><img src="https://agentmods.dev/badge/instructions/debanjan29/readonly-mssql-mcp-db/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,726 This file is loaded in full into every session.
When invoked 1,726 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.01726 $0.01726
Opus 5 $0.00863 $0.00863
Sonnet 5 $0.00345 $0.00345
Haiku 4.5 $0.00173 $0.00173

Measured 9d ago against content hash 90e8b931bc08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

readonly-mssql-mcp-db 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 9d 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.

Origin

This is a copy

100% identical to mcp-sqlserver CLAUDE.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mcp-sqlserver — Project Guide for Claude

This file tells Claude (and any AI assistant using Claude Code / MCP) how to work in this repo. Read it in full before making changes. For deeper rules, follow the links at the bottom — each file is a focused, bite-sized ruleset.

What this project is

@tugberkgunver/mcp-sqlserver is a Model Context Protocol (MCP) server for Microsoft SQL Server. It exposes 39 tools across 7 categories (schema discovery, query, DDL, stored procedures, performance, DBA diagnostics, developer utilities, server management) so AI assistants can talk to SQL Server with enterprise-grade security controls.

  • Package: @tugberkgunver/mcp-sqlserver on npm
  • Repo: gunvertugberk/mcp-sqlserver on GitHub
  • Current version: see package.json (version) and src/server.ts (McpServer version string) — keep them in sync
  • License: MIT

Stack

  • Language: TypeScript 5.8, strict: true
  • Runtime: Node.js >=18
  • Module system: Node16 ESM — imports must use .js extension even when importing .ts files (see coding-standards.md)
  • Target: ES2022
  • Key deps: @modelcontextprotocol/sdk, mssql (tedious), yaml, zod
  • Optional dep: msnodesqlv8 for Windows SSPI auth

Commands

npm install          # install dependencies
npm run build        # tsc → dist/
npm run dev          # tsc --watch
npm test             # vitest run (238 tests)
npm run test:watch   # vitest in watch mode
npm start            # node dist/index.js (after build)
npm start -- --config ./mssql-mcp.yaml
npm start -- --http 3000

Testing: Vitest with 238 tests across 10 files covering security utils, formatters, and all 38 tool handlers. Run npm test before every commit.

Directory map

src/
├── index.ts               # CLI entry: arg parsing, transport (stdio/http), graceful shutdown
├── server.ts              # createServer(config) — wires all tool groups, registers list_servers
├── config.ts              # AppConfig types, loadConfig(), resolveServer(), single+multi-server loading
├── database.ts            # Connection pool per serverName, buildSqlConfig() per auth type, executeQuery()
├── utils/
│   ├── security.ts        # escapeIdentifier, validateQuery, isDatabaseAllowed, isSchemaAllowed,
│   │                      # applyMasking, ensureRowLimit, SecurityError
│   └── formatter.ts       # formatResultSet (markdown), formatResultSetJson, ISO date handling
└── tools/
    ├── schema.ts          # 9 schema discovery tools
    ├── query.ts           # execute_query, execute_mutation
    ├── ddl.ts             # execute_ddl (admin / allowDDL only)
    ├── procedure.ts       # list_procedures, describe_procedure, execute_procedure
    ├── performance.ts     # query plans, active queries, table/index/server/db stats, missing indexes
    ├── dba.ts             # wait stats, deadlocks, blocking, backups, query store, rebuild index, health
    └── utility.ts         # compare_schemas, generate_code, ER diagram, sample/test data, export_query

Read the full file on GitHub · 98 lines

Changes

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.

  1. 9d ago First seen · 98 lines · 1,726 tokens per session scan A 90e8b931bc08

Subscribe to this mod's changes

readonly-mssql-mcp-db CLAUDE.md is an instructions file published in the GitHub repository Debanjan29/readonly-mssql-mcp-db (0 stars, last pushed 8d ago), licensed MIT. It adds 1,726 tokens to every session, about $0.0086 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to mcp-sqlserver CLAUDE.md, differing in 0 lines, and is treated as a copy.

Related

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

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.

github/spec-kit · 7,104 tokens

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).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens