Mssql
Read-only SQL Server querying across multiple configured databases, with description-based database selection and write blocking.
- CCM score
- 67 of 100
- skills.sh installs
- 553
- GitHub stars
- 462
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers listing configured databases, browsing tables and schemas, and running single SELECT-style queries against them
- Includes
query.pyflags--list,--tables,--schema,--query, and--limit, with--limitconverted toTOP N - Enforces query validation that allows only SELECT, SHOW, EXPLAIN, WITH, and SP_HELP, rejects multiple statements, and caps results at 10,000 rows
- Designed for analysts who need to query several SQL Server or Azure SQL databases through connections described in
connections.json
Install
$ npx -y skills add sanjay3290/ai-skills --skill mssql -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
MSSQL Read-Only Query Skill
Execute safe, read-only queries against configured Microsoft SQL Server databases.
Requirements
- Python 3.8+
- pymssql:
pip install -r requirements.txt
Setup
Create connections.json in the skill directory or ~/.config/claude/mssql-connections.json.
Security: Set file permissions to 600 since it contains credentials:
chmod 600 connections.json
{
"databases": [
{
"name": "production",
"description": "Main app database - users, orders, transactions",
"host": "db.example.com",
"port": 1433,
"database": "app_prod",
"user": "readonly_user",
"password": "your-password",
"encrypt": true,
"tds_version": "7.3"
}
]
}
Config Fields
Details
- Repository
- github.com/sanjay3290/ai-skills
- Categories
- Databases, Business, Legal & HR
- License
- Apache-2.0
- First seen
- Jun 3, 2026
Questions
What does the mssql skill do?
The mssql skill runs safe, read-only SQL queries against one or more Microsoft SQL Server databases. It can list configured databases, show tables and schemas, and run SELECT queries for data analysis. Write operations such as INSERT, UPDATE, DELETE and DROP are blocked.
How do I install the mssql skill?
Run this command in a project: npx -y skills add sanjay3290/ai-skills --skill mssql -y. Once installed, the agent can query your SQL Server databases through the skill.
What do I need to use the mssql skill?
You need Python 3.8 or newer and the pymssql package, installed with pip install -r requirements.txt. You also need a connections.json file with each database's host, name, user and password, and it should be set to file permission 600 because it holds credentials.
Where does the mssql skill stand in the Databases category?
The mssql skill sits in the Databases category on Claude Marketplaces, alongside skills such as supabase-postgres-best-practices and several Prisma skills. Its focus is read-only querying of Microsoft SQL Server specifically. It also picks the right database from several connections by matching each description to the user's question.
More from sanjay3290/ai-skills
All 20Similar to Mssql
More DatabasesmysqlSkillsanjay3290/ai-skills426 installsRead-only MySQL query skill for multiple configured databases, with description-based auto-selection and write blocking.
postgresSkillsanjay3290/ai-skills645 installsRead-only PostgreSQL query skill that targets the right database by description and blocks writes.
Microsoft SQL ServerMCP serveralyiox12 starsRead-only T-SQL, schema inspection, and plan analysis for SQL Server, with opt-in writes and multiple connection profiles.
DBHubMCP serverbytebase4K starsGateway to seven SQL databases: run queries, explore schemas, and check query plans.
chdb-sqlSkillclickhouse/agent-skills10.4K installsEmbedded ClickHouse SQL in Python for analytical queries on files, URLs, and remote databases without a server.
sql-queriesSkillphuryn/pm-skills3K installsNatural-language to SQL generator that reads schema files and targets BigQuery, PostgreSQL, MySQL, and other dialects.