
Security News
Open VSX Unblocks Extension IDs Used in Malware Campaign
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.
sql-server-analyst-mcp
Advanced tools
Read-only SQL Server Analyst MCP server — safe schema exploration, stored procedure explanation, dependency mapping, and performance guidance for AI tools.
Read-only SQL Server analyst for AI tools — safe schema exploration, stored procedure explanation, dependency mapping, permission analysis, and performance guidance.
Built for developers, DBAs, and support engineers who need an AI assistant that understands SQL Server databases deeply and safely.
All operations are strictly read-only. Data modification is not possible.
npm install
npm run build
cp .env.example .env
# Edit .env with your SQL Server credentials
Minimum required .env:
MSSQL_SERVER=localhost
MSSQL_USER=sa
MSSQL_PASSWORD=your_password
MSSQL_DATABASE=YourDatabase
MSSQL_TRUST_SERVER_CERT=true # for local dev only
claude_desktop_config.json){
"mcpServers": {
"sql-server-analyst": {
"command": "node",
"args": ["C:/path/to/sql-server-analyst-mcp/dist/index.js"],
"env": {
"MSSQL_SERVER": "localhost",
"MSSQL_USER": "sa",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "YourDatabase",
"MSSQL_TRUST_SERVER_CERT": "true"
}
}
}
}
.mcp.json){
"servers": {
"sql-server-analyst": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"MSSQL_SERVER": "localhost",
"MSSQL_USER": "sa",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "YourDatabase",
"MSSQL_TRUST_SERVER_CERT": "true"
}
}
}
}
| Tool | Description |
|---|---|
ping | Test connection, return server version and capabilities |
list_databases | List accessible databases |
list_schemas | List schemas with object counts |
search_objects | Find tables, views, procedures, and functions by keyword |
describe_object | Full metadata for any database object |
inspect_schema_summary | Compact domain overview of a database or schema |
execute_safe_query | Run a SELECT query with enforced limits |
explain_stored_procedure | Plain-language explanation of a procedure or function |
get_dependency_map | Upstream and downstream dependency map for change impact |
analyze_permissions | Users, roles, memberships, and object grants |
analyze_sql_risks | Static risk analysis of SQL text or a named object |
get_table_stats | Row counts, sizes, indexes, and constraints for a table |
The login used by this server requires only:
-- Grant VIEW DEFINITION to inspect object definitions
GRANT VIEW DEFINITION TO [your_login];
-- Grant SELECT on the schema(s) you want to expose
GRANT SELECT ON SCHEMA::dbo TO [your_login];
-- For row count and size data
GRANT VIEW DATABASE STATE TO [your_login];
No sysadmin, db_owner, or write permissions are needed or wanted.
See docs/security.md for the full security model.
npm run build # Compile TypeScript
npm run typecheck # Type check without emitting
npm test # Run unit tests
npm run test:watch # Watch mode
npm run dev # Watch + run (requires built dist/)
See docs/setup.md for the full development guide.
SQL Server 2016 and later. Earlier versions may lack some system catalog views used for dependency tracking.
MIT
FAQs
Read-only SQL Server Analyst MCP server — safe schema exploration, stored procedure explanation, dependency mapping, and performance guidance for AI tools.
The npm package sql-server-analyst-mcp receives a total of 23 weekly downloads. As such, sql-server-analyst-mcp popularity was classified as not popular.
We found that sql-server-analyst-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.