Feedback

Sql Server Mcp

@hendrickcastro Claim

Basic information

Runtime
TypeScript
Category
License
MIT
Transports
stdio
Author
hendrickcastro
Submitted by
Community
Quality
25
Stars
15

About Sql Server Mcp

A comprehensive Model Context Protocol (MCP) server for SQL Server database operations. This server provides 10 powerful tools for database analysis, object discovery, and data manipulation through the MCP protocol.

Sql Server Mcp is a MCP server in the Databases category listed in the AddMCP.net directory, published by hendrickcastro. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 15 GitHub stars. Source code is hosted on github.com. Related topics: azuresql, database, databaseanalysis, databasetools, mcp.

Setup

{
    "mcpServers": {
        "mcpql": {
            "command": "npx",
            "args": [
                "-y",
                "hendrickcastro/mcpql"
            ],
            "env": {
                "DB_AUTHENTICATION_TYPE": "sql",
                "DB_SERVER": "your_server",
                "DB_NAME": "your_database",
                "DB_USER": "your_username",
                "DB_PASSWORD": "your_password",
                "DB_PORT": "1433",
                "DB_ENCRYPT": "false",
                "DB_TRUST_SERVER_CERTIFICATE": "true"
            }
        }
    }
}

Sql Server Mcp config

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

{
    "mcpServers": {
        "mcpql": {
            "command": "npx",
            "args": [
                "-y",
                "hendrickcastro/mcpql"
            ],
            "env": {
                "DB_AUTHENTICATION_TYPE": "sql",
                "DB_SERVER": "your_server",
                "DB_NAME": "your_database",
                "DB_USER": "your_username",
                "DB_PASSWORD": "your_password",
                "DB_PORT": "1433",
                "DB_ENCRYPT": "false",
                "DB_TRUST_SERVER_CERTIFICATE": "true"
            }
        }
    }
}

Sql Server Mcp 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 Sql Server Mcp?

Sql Server Mcp is a comprehensive Model Context Protocol (MCP) server for SQL Server database operations. It provides 10 tools for database analysis, object discovery, and data manipulation through the MCP protocol. The server is designed for developers and DBAs using MCP-compatible clients like Claude Desktop or Cursor IDE.

How to use Sql Server Mcp?

Installation is recommended via npx with no local setup required. Configure your MCP client (e.g., Claude Desktop or Cursor IDE) with the command npx -y hendrickcastro/mcpql and set the required environment variables for database connection. Alternatively, clone the repository, run npm install and npm run build, then point your MCP client to the built server file.

Key features of Sql Server Mcp

  • 10 dedicated MCP tools for SQL Server operations
  • Supports SQL Server, SQL Server Express, and Azure SQL
  • SQL, Windows, and Azure AD authentication
  • Connection pooling and comprehensive timeout settings
  • Docker-ready and security audited
  • Configurable via environment variables or connection string

Use cases of Sql Server Mcp

  • Analyze table structures, indexes, and constraints via MCP tools
  • Execute custom SQL queries and stored procedures with parameters
  • Search database objects by name and definition across the entire database
  • Preview data and get column statistics for quick analysis
  • Discover object dependencies for tables, views, and procedures

Frequently asked questions

1 What databases does Sql Server Mcp support?

It supports SQL Server 2016+, SQL Server Express (named instances), and Azure SQL Database.

2 What authentication types are available?

Sql Server Mcp supports SQL Server Authentication, Windows Authentication, and Azure Active Directory Authentication (including service principals).

3 Do I need to install anything locally to use Sql Server Mcp?

No. You can use npx -y hendrickcastro/mcpql directly – no local installation required.

4 What are the required environment variables?

At minimum, you must set DB_AUTHENTICATION_TYPE, DB_SERVER, and DB_NAME. For SQL auth, also set DB_USER and DB_PASSWORD. See the README for the full variable table.

5 How is data privacy handled?

The server connects directly to your SQL Server instance; data stays on your database. All configuration is done through environment variables or a connection string.

Comments

No comments yet

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

Sign In

Feedback 💬