Feedback

Basic information

Runtime
node
Category
License
MIT
Transports
stdio
Author
cwilby
Submitted by
Community
Quality
20
Stars
8

About mcp-node-mssql Server

MCP Server for SQL Server using node-mssql

mcp-node-mssql is a MCP server in the Databases category listed in the AddMCP.net directory, published by cwilby. Supported transport: stdio. Runtime: node. License: MIT. The repository has 8 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "mssql": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-node-mssql"
            ],
            "env": {
                "DB_HOST": "localhost",
                "DB_PORT": "1433",
                "DB_USERNAME": "<username>",
                "DB_PASSWORD": "<password>",
                "DB_DATABASE": "<database>"
            }
        }
    }
}

mcp-node-mssql config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mssql": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-node-mssql"
            ],
            "env": {
                "DB_HOST": "localhost",
                "DB_PORT": "1433",
                "DB_USERNAME": "<username>",
                "DB_PASSWORD": "<password>",
                "DB_DATABASE": "<database>"
            }
        }
    }
}

mcp-node-mssql tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is mcp-node-mssql?

mcp-node-mssql is an MCP (Model Context Protocol) server that allows AI assistants like Cursor, Windsurf, and Claude Code to connect to a Microsoft SQL Server database. It is intended for developers who want to give their AI coding tools direct database access.

How to use mcp-node-mssql?

Configure the server in the client’s MCP JSON file (e.g., ~/.cursor/mcp.json, <project>/.cursor/mcp.json, or ~/.claude.json) by setting the command to npx with the package name mcp-node-mssql and providing the required environment variables (DB_HOST, DB_PORT, DB_USERNAME, DB_PASSWORD, DB_DATABASE, etc.). After saving, restart the AI assistant to load the server.

Key features of mcp-node-mssql

  • Connects to Microsoft SQL Server databases.
  • Configurable connection and request timeouts.
  • Runs via npx with no manual installation.
  • Supports local development builds for testing.
  • Integrates with Cursor, Windsurf, and Claude Code.

Frequently asked questions

1 What versions of SQL Server are supported?
2 How do I report an issue or get help?

Open an issue on the GitHub repository.

3 What environment variables are required?

DB_HOST, DB_PORT, DB_USERNAME, DB_PASSWORD, and DB_DATABASE must be set. Optional variables include CONNECTION_TIMEOUT, REQUEST_TIMEOUT, DB_ENCRYPT, DB_ENABLE_ARITH_ABORT, DB_TRUST_SERVER_CERTIFICATE, and TRUSTED_CONNECTION.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬