MSSQL

MSSQL is an MCP server that connects LLM clients directly to Microsoft SQL Server databases for query execution and business intelligence analysis. Designed for database administrators, data analysts, and software developers, it enables AI assistants to inspect schemas, execute read queries, run data manipulation commands, and manage stored procedures. Built using the FastMCP Python SDK, the server supports the MCP 2025-06-18 specification, offering features like structured content outputs, multi-database routing, and dynamic resource templates that serve table layouts without wasting context tokens on repeated schema dumps. It enforces static query validation to prevent dangerous statements, allows per-connection read-only enforcement, and includes optional write confirmations via elicitation on supported platforms. With built-in tools for listing views, inspecting indexes, running batch procedures, and recording business notes into an active memo resource, it provides a controlled environment for database operations across local, staging, and production SQL Server instances.

Category: Data & Analytics

Tags: database, microsoft, mssql, SQL, sql server

Visit MSSQL

How to install and configure MSSQL

  1. Ensure Python 3.10+ and ODBC Driver 17 or 18 for SQL Server are installed on your system. 2. Clone the repository and install dependencies using git clone https://github.com/daobataotie/mssql-mcp, change to the directory, and run pip install -r requirements.txt or install as a package with pip install .. 3. Create a config.json file defining your database connection parameters, setting keys such as driver, server, database, username, and password. 4. Register the server in your MCP client configuration (such as claude_desktop_config.json) under mcpServers using command python with the path to server.py in args, or run mssql-mcp directly if installed as a package.

What you can do with MSSQL

  • Running validated read-only SQL queries with automatic row limits to extract and summarize business performance metrics. - Inspecting detailed database schemas, foreign keys, and indexes on demand using lightweight dynamic resource templates. - Executing stored procedures that return multiple result sets for reporting and automated data validation workflows. - Safely applying INSERT, UPDATE, DELETE, or MERGE statements under strict single-statement validation and execution guardrails. - Managing multiple database environments like development and production simultaneously by routing tool calls with connection-specific parameters.

Key facts

  • https://github.com/daobataotie/mssql-mcp
  • Data & Analytics, Databases & Data Stores
  • database, microsoft, mssql, SQL, sql server

Part of MCP Servers

Related MCP servers

  • MCP KQL Server — MCP KQL Server is an MCP server that connects AI assistants to Azure Data Explorer clusters using Azure CLI authentication.…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP Memory Keeper — MCP Memory Keeper is an MCP server that provides persistent context management and memory storage for Claude AI coding assistants.…
  • MCP Notes — MCP Notes is an MCP server that provides note-taking and note-management capabilities to AI models using Amazon Web Services DynamoDB…
  • MCP Neo4j Server — MCP Neo4j Server is an MCP server that provides an integration between the Neo4j graph database and Model Context Protocol…
  • MCP Mempool — MCP Mempool is an MCP server that exposes the mempool.space WebSocket and REST APIs to AI agents, LLM assistants, and…

How do I install MSSQL MCP Server?

You can install it from source by cloning the GitHub repository and running pip install -r requirements.txt, or by installing the package directly with pip install . using Python 3.10 or newer. You also need ODBC Driver 17 or 18 for SQL Server installed on your operating system alongside a configured config.json file.

What can MSSQL MCP Server do?

It provides tools to execute SELECT queries, run write operations like INSERT and UPDATE, create tables, list databases and views, fetch detailed schema information, and execute stored procedures with multiple result sets. It also supports resource templates for on-demand table schemas and an insight memo resource for tracking business notes.

Which MCP clients work with MSSQL MCP Server?

It works with mainstream standard input/output MCP clients including Claude Desktop, Cursor, Windsurf, and Cline, as well as the official Model Context Protocol Inspector. For features requiring user elicitation prompts on write actions, clients must support the MCP elicitation specification, while other clients execute queries directly unless configured in read-only mode.

Is MSSQL MCP Server open source?

Yes, MSSQL MCP Server is open source and licensed under the MIT License. The complete source code, test suites, and documentation are publicly available on GitHub.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories