
Security News
How AI Agents Expand the Software Supply Chain Attack Surface
In his AI Council 2026 talk, Feross Aboukhadijeh covers recent package compromises, vulnerability discovery, and a more automated security model.
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.
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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
In his AI Council 2026 talk, Feross Aboukhadijeh covers recent package compromises, vulnerability discovery, and a more automated security model.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.