- Explore MCP Servers
- mcp-server-mssql
Mcp Server Mssql
What is Mcp Server Mssql
mcp-server-mssql is a Model Context Protocol (MCP) server designed for Microsoft SQL Server integration, allowing AI agents to interact with SQL databases using Node.js and TypeScript.
Use cases
Use cases for mcp-server-mssql include developing AI applications that require database interactions, automating data management tasks, and integrating SQL Server data into machine learning workflows.
How to use
To use mcp-server-mssql, clone the repository, install dependencies using npm, configure the required environment variables for your MSSQL connection, build the TypeScript code, and then run the server. Connect your MCP client to this server to start interacting with the database.
Key features
Key features include direct connection to a single MSSQL database, tools for listing tables, retrieving table schemas, and performing CRUD operations such as reading, creating, updating, and deleting table records.
Where to use
mcp-server-mssql can be used in various fields where Microsoft SQL Server databases are utilized, including data analytics, application development, and AI-driven data processing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Server Mssql
mcp-server-mssql is a Model Context Protocol (MCP) server designed for Microsoft SQL Server integration, allowing AI agents to interact with SQL databases using Node.js and TypeScript.
Use cases
Use cases for mcp-server-mssql include developing AI applications that require database interactions, automating data management tasks, and integrating SQL Server data into machine learning workflows.
How to use
To use mcp-server-mssql, clone the repository, install dependencies using npm, configure the required environment variables for your MSSQL connection, build the TypeScript code, and then run the server. Connect your MCP client to this server to start interacting with the database.
Key features
Key features include direct connection to a single MSSQL database, tools for listing tables, retrieving table schemas, and performing CRUD operations such as reading, creating, updating, and deleting table records.
Where to use
mcp-server-mssql can be used in various fields where Microsoft SQL Server databases are utilized, including data analytics, application development, and AI-driven data processing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MCP Server for Microsoft SQL Server (Node.js/TypeScript)
This project provides a Model Context Protocol (MCP) server that allows AI agents to interact with Microsoft SQL Server databases. This version is implemented in Node.js and TypeScript.
Features
- Connects directly to a single MSSQL database instance configured via environment variables.
- Provides tools for:
- Listing tables (
list_tables). - Retrieving table schemas (
get_table_schema). - Performing CRUD operations (
read_table_rows,create_table_records,update_table_records,delete_table_records).
- Listing tables (
Prerequisites
- Node.js (v18 or later recommended)
- npm (usually comes with Node.js)
- Access to a Microsoft SQL Server instance.
- Necessary MSSQL ODBC drivers installed on the machine running the server.
Installation
- Clone the repository:
git clone <repository-url> cd mcp-server-mssql - Install dependencies:
npm install
Configuration
- Environment Variables: Configuration is handled entirely through environment variables.
- Copy
.env.exampleto.env. - Fill in the required MSSQL connection details:
MSSQL_HOSTMSSQL_PORT(defaults to 1433 if not set)MSSQL_USERMSSQL_PASSWORDMSSQL_DATABASE
- Optionally configure other MSSQL options (
MSSQL_DRIVER,MSSQL_ENCRYPT,MSSQL_TRUST_SERVER_CERTIFICATE) and logging (LOG_LEVEL) as described in.env.example.
- Copy
Usage
- Build the TypeScript code:
npm run build - Run the server:
Alternatively, for development:npm startnpm run dev - Connect via MCP Client: Configure your MCP client (e.g., Roo) to connect to this server using stdio.
Tools
(Detailed descriptions of the tools can be found in the server’s ListTools response)
list_tablesget_table_schemaread_table_rowscreate_table_recordsupdate_table_recordsdelete_table_records
Development
(Add details about running tests, linting, etc. later)
License
[MIT] - (Or your chosen license)
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










