LabscoMCP early access ↗
c0h1b4MCP SERVER

MSSQL MCP Server by c0h1b4

Query Microsoft SQL Server from an assistant, passing the connection with each query.

Relational SQL DatabasesCommunity

LABSCO SUMMARY

One query tool, and the connection travels with each call.

No connection details go in the client config: every call carries a connection string, or a host, username and password, so one server can reach more than one SQL Server. It is a single tool. The database, table and schema tools in the project's docs are not available, and the statement you send runs as written, with no filtering, so connect as a login whose permissions you are comfortable with.

What it is

A SQL Server client over MCP. It runs SQL against a connection passed with each call — a connection string, or a host, username and password. The project's docs also describe tools for listing databases and tables and for describing a table, but the server only provides query.

What you get

  • query — run a SQL statement against the connection given in the same call (a connection string, or host, port, database, username and password, with encrypt and trustServerCertificate); the rows come back as JSON

Requirements

Node.js and a clone of the repository, built with npm run build; the client runs build/src/index.js with node. The npm package called mssql-mcp-server is a different project. Connection details do not go in the client config: each query carries a connection string, or a host, username and password, with encrypt and trustServerCertificate for TLS.

Setup effort

Build from source — git clone https://github.com/c0h1b4/mssql-mcp-server.git