MCP Sql Server2 MCP Server

MCP server for MS SQL Server database queries

Local serverstdio

What is the MCP Sql Server2 MCP server?

MCP server for MS SQL Server database queries. That is what the mcp sql server2 mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

A Model Context Protocol (MCP) server that provides a standardized interface for AI models to interact with MS SQL Server databases. This server implements the MCP specification to enable seamless database operations through a consistent API.

  • Execute SQL queries with parameter support
  • List all tables in the database
  • Describe table schemas
  • Support for both stdio and HTTP transport modes
  • Comprehensive logging system
  • Environment-based configuration

Getting it running

Installation goes through your MCP client rather than a global install: point it at mcp-mssql-server on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

  • Node.js (version that supports ES modules) - MS SQL Server instance - Access credentials for the database

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by techybolek; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

How to install the MCP Sql Server2 MCP server

{
  "mcpServers": {
    "sql-server2": {
      "command": "npx",
      "args": ["-y", "mcp-mssql-server"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js (version that supports ES modules) - MS SQL Server instance - Access credentials for the database

Frequently asked questions

It connects MCP Sql Server2 to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with MCP Sql Server2 directly.