MCP MSSQL Server

MCP MSSQL Server

mcp-mssql-server•byblueshiftlabs-ai

A NestJS-based MCP server that lets MCP clients interact with Microsoft SQL Server databases through standardized SQL tools.

License: ISC•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Supports both Windows (NTLM) and SQL Server authentication for database connections.
  • •Exposes SQL operations as MCP tools including query execution, schema retrieval, table listing, and stored procedures.
  • •Provides tools to list tables, describe table structures with constraints, and retrieve paginated table data with filtering.
  • •Includes built-in health checks for database connectivity and connection pooling.

BEST FOR

  • •Querying and exploring SQL Server databases from MCP clients such as Claude Code.
  • •Inspecting database schema and table structures through a standardized MCP interface.
  • •Running stored procedures and parameterized SQL queries via MCP tools.

ABOUT MCP-MSSQL-SERVER

MCP MSSQL Server is cataloged as an MCP server attributed to blueshiftlabs-ai. A NestJS-based MCP server that lets MCP clients interact with Microsoft SQL Server databases through standardized SQL tools. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: ISC. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP MSSQL Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How do clients connect to this MCP server?

The server exposes an MCP protocol endpoint under the /mssql namespace that MCP clients such as Claude Code can connect to.

Does the server expose any REST endpoints?

No; all functionality is exposed through MCP tools only.

Upstream README

View this exact version on GitHub

README.md · b5ea933fe7ea · Fetched 2026-11-13 11:08:41 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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

MCP Tools

The server exposes these SQL operations as MCP tools:

  • execute-query: Execute SQL queries with parameter support
  • get-schema: Retrieve database schema information
  • list-tables: List all tables in the database
  • describe-table: Get detailed table structure with constraints
  • get-table-data: Retrieve paginated table data with filtering
  • execute-procedure: Execute stored procedures with parameters

Installation

npm install

Configuration

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=3000

Development

# 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:prod

Testing

# Unit tests
npm run test

# Watch mode
npm run test:watch

# End-to-end tests
npm run test:e2e

# Test coverage
npm run test:cov

Code Quality

# Run ESLint with auto-fix
npm run lint

# Format code with Prettier
npm run format

MCP Endpoints

When the server is running (default port 3000):

  • MCP Protocol: http://localhost:3000/mssql/mcp
  • SSE (Claude Code): http://localhost:3000/mssql/sse
  • Health Check: http://localhost:3000/mssql/health

Usage with Claude Code

  1. Start the MCP server: npm run start:dev
  2. Configure Claude Code to connect to: http://localhost:3000/mssql/mcp
  3. Use the exposed SQL tools through Claude Code's MCP interface

Architecture

  • MCPModule: Handles MCP protocol implementation with /mssql namespace
  • DatabaseModule: Manages SQL Server connectivity and authentication
  • HealthModule: Provides database health monitoring
  • No REST endpoints: All functionality exposed through MCP tools only

License

ISC

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP MSSQL Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-mssql-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage