mcp-server-mssql

mcp-server-mssql

3.2

If you are the rightful owner of mcp-server-mssql and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project provides a Model Context Protocol (MCP) server that allows AI agents to interact with Microsoft SQL Server databases using Node.js and TypeScript.

The MCP Server for Microsoft SQL Server is designed to facilitate seamless interaction between AI agents and MSSQL databases. Implemented in Node.js and TypeScript, this server connects directly to a single MSSQL database instance, configured via environment variables. It offers a suite of tools for database management, including listing tables, retrieving table schemas, and performing CRUD operations. The server requires Node.js (v18 or later) and npm, along with access to a Microsoft SQL Server instance and the necessary MSSQL ODBC drivers. Configuration is managed through environment variables, ensuring flexibility and ease of setup. The server can be built and run using npm scripts, and it supports connection via MCP clients like Roo.

Features

  • Direct connection to a single MSSQL database instance.
  • Environment variable-based configuration.
  • Tools for listing tables and retrieving table schemas.
  • CRUD operations on database tables.
  • Node.js and TypeScript implementation.

Tools

  1. list_tables

    List all tables in the database

  2. get_table_schema

    Get the structure information of the specified table

  3. read_table_rows

    Read row data in a table

  4. create_table_records

    Create a new record in a table

  5. update_table_records

    Update records in the table

  6. delete_table_records

    Delete records in the table