MSSQL MCP Server logo

MSSQL MCP Server

by MCP-Mirror

A Model Context Protocol (MCP) server for connecting to Microsoft SQL Server databases. This server provides tools for executing SQL queries and managing database connections.

View on GitHub

Last updated: N/A

What is MSSQL MCP Server?

The MSSQL MCP Server is a Model Context Protocol server designed to facilitate communication with Microsoft SQL Server databases. It provides tools for executing SQL queries and managing database connections within an MCP environment.

How to use MSSQL MCP Server?

To use the server, install it using npm install mssql-mcp-server. Then, add it to your MCP settings configuration file, providing either a full connection string or individual connection parameters (host, port, database, username, password, etc.) in the environment variables.

Key features of MSSQL MCP Server

  • Execute SQL queries

  • Manage database connections

  • Supports connection strings and individual connection parameters

  • Configurable encryption and certificate trust settings

Use cases of MSSQL MCP Server

  • Executing SQL queries from within an MCP environment

  • Automating database tasks

  • Integrating MSSQL databases with other MCP services

  • Retrieving data from MSSQL databases for use in other applications

FAQ from MSSQL MCP Server

What is the default port for MSSQL?

The default port is 1433.

How do I specify the database connection?

You can specify the connection using a connection string or individual parameters like host, username, and password.

Is encryption supported?

Yes, encryption is supported and can be enabled using the encrypt parameter.

What happens if I provide both a connection string and individual parameters?

The connectionString parameter takes precedence over individual parameters.

What is MCP?

MCP stands for Model Context Protocol, a framework for managing and interacting with different services and tools.

MSSQL MCP Server - MCP Server | MCP Directory