mcp-sqlserver-readonly
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sqlserver-readonlywhat tables are in the database?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-sqlserver
Read-only SQL Server MCP server for Claude Desktop (and any MCP-compatible client).
Tools exposed
Tool | Description |
| Run a SELECT query |
| List all user tables with row-count estimate and size |
| Show columns, types, nullability, PK for a table |
| List user-defined schemas |
Related MCP server: sql-explorer-mcp
Security protections
Attack | Example | Status |
Direct writes |
| ✅ Blocked |
Multiple statements |
| ✅ Blocked |
System procedures |
| ✅ Blocked |
DoS |
| ✅ Blocked |
Whitespace bypass | tabs and newlines between keywords | ✅ Blocked |
Comment bypass |
| ✅ Blocked |
Valid queries |
| ✅ Allowed |
Environment variables
Variable | Required | Default | Description |
| ✅ | — | Server hostname or IP |
| ✅ | — | Database name |
| ✅ | — | SQL login username |
| ✅ | — | SQL login password |
|
| TCP port | |
|
| Enable TLS ( | |
|
| Trust self-signed certs |
Build
npm install
npm run buildClaude Desktop configuration
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"sqlserver": {
"command": "node",
"args": ["../path-to/mcp-sqlserver/dist/index.js"],
"env": {
"MSSQL_SERVER": "localhost",
"MSSQL_DATABASE": "MyDatabase",
"MSSQL_USER": "sa",
"MSSQL_PASSWORD": "YourPassword",
"MSSQL_TRUST_SERVER_CERTIFICATE": "true"
}
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
- dataOAuthco.thinair
Read-only PostgreSQL, MySQL, SQL Server access via MCP — 24 dialect-aware hosted tools.
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceRead-only MCP server for SQL databases (SQL Server, Postgres, SQLite) with multi-server support and three-layer safety using AST validation and linting.MIT
- FlicenseAqualityCmaintenanceA read-only MCP server for browsing and querying SQL Server databases, providing tools to list schemas, tables, describe columns, and execute safe SELECT queries with validated parameters.15-
- AlicenseAqualityBmaintenanceMCP server for Microsoft SQL Server that lets LLMs explore schema and execute read-only SELECT queries, with optional stored procedure execution when explicitly enabled.342 npmMIT
- AlicenseNot gradedqualityCmaintenanceLocal MCP server for running ad hoc T-SQL queries against SQL Server databases, read-only by default with security safeguards.591 npmMIT