mcp-mssql-server
Click on "Install 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-mssql-serverlist all tables 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 MSSQL Server
An MCP (Model Context Protocol) server for Microsoft SQL Server integration built with NestJS. This server enables Claude Code and other MCP clients to interact with SQL Server databases through standardized tools.
Features
MCP Protocol Support: Full implementation of Model Context Protocol for SQL Server operations
Windows Authentication: Supports both Windows (NTLM) and SQL Server authentication
Comprehensive SQL Tools: Execute queries, explore schema, manage tables, and run stored procedures
Health Monitoring: Built-in health checks for database connectivity
Connection Pooling: Efficient database connection management
Related MCP server: MCP SQL Server
MCP Tools
The server exposes these SQL operations as MCP tools:
execute-query: Execute SQL queries with parameter supportget-schema: Retrieve database schema informationlist-tables: List all tables in the databasedescribe-table: Get detailed table structure with constraintsget-table-data: Retrieve paginated table data with filteringexecute-procedure: Execute stored procedures with parameters
Installation
npm installConfiguration
Create a .env file with your database configuration:
# SQL Server Connection
MSSQL_HOST=localhost
MSSQL_PORT=1433
MSSQL_DATABASE=your_database
# Authentication Mode (choose one)
# For SQL Server Authentication:
MSSQL_USERNAME=your_username
MSSQL_PASSWORD=your_password
# For Windows Authentication:
MSSQL_WIN_AUTH=true
MSSQL_DOMAIN=your_domain
MSSQL_USERNAME=domain\username
MSSQL_PASSWORD=your_password
# Connection Options
MSSQL_ENCRYPT=true
MSSQL_TRUST_CERT=true
# Server Port
PORT=3000Development
# Start in development mode
npm run start:dev
# Start with debugging
npm run start:debug
# Build the application
npm run build
# Start production build
npm run start:prodTesting
# Unit tests
npm run test
# Watch mode
npm run test:watch
# End-to-end tests
npm run test:e2e
# Test coverage
npm run test:covCode Quality
# Run ESLint with auto-fix
npm run lint
# Format code with Prettier
npm run formatMCP Endpoints
When the server is running (default port 3000):
MCP Protocol:
http://localhost:3000/mssql/mcpSSE (Claude Code):
http://localhost:3000/mssql/sseHealth Check:
http://localhost:3000/mssql/health
Usage with Claude Code
Start the MCP server:
npm run start:devConfigure Claude Code to connect to:
http://localhost:3000/mssql/mcpUse the exposed SQL tools through Claude Code's MCP interface
Architecture
MCPModule: Handles MCP protocol implementation with
/mssqlnamespaceDatabaseModule: Manages SQL Server connectivity and authentication
HealthModule: Provides database health monitoring
No REST endpoints: All functionality exposed through MCP tools only
License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/blueshiftlabs-ai/mcp-mssql-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server