
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that gives AI assistants a controlled interface to Microsoft SQL Server databases for schema exploration, query execution, and data analysis.
Microsoft SQL MCP Server is cataloged as an MCP server attributed to aaaaalexander. A Model Context Protocol server that gives AI assistants a controlled interface to Microsoft SQL Server databases for schema exploration, query execution, and data analysis. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Microsoft SQL MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Read-only mode is enabled by default, which prevents data modification.
Yes, schema restrictions limit access to specified database objects, configurable via the allowed schemas setting.
README.md · 633ce50f80b0 · 采集于 2026-11-13 11:36:55 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A robust SQL Server interface using the Model Context Protocol (MCP) standard, providing AI assistants with a controlled way to interact with SQL databases. This project offers tools for schema exploration, query execution, and data analysis, with safety mechanisms to prevent harmful operations.
This tool is primarily designed to work with Claude Desktop, allowing Claude to seamlessly access and query your SQL Server databases.
Install Prerequisites:
Create a Dedicated SQL User (Recommended):
-- Create login
CREATE LOGIN SQLMCP WITH PASSWORD = 'YourStrongPassword';
-- Switch to your database
USE YourDatabaseName;
-- Create user and grant permissions
CREATE USER SQLMCP FOR LOGIN SQLMCP;
GRANT SELECT TO SQLMCP;
-- Optionally restrict to specific schemas
GRANT SELECT ON SCHEMA::dbo TO SQLMCP;
Install This Repository:
git clone https://github.com/aaaaalexander/MS_SQL_MCP_server.git
cd MS_SQL_MCP_server
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
Create Configuration File:
claude_config.json in your Claude Desktop configuration folder{
"sqlmcp": {
"command": "C:/path/to/your/venv/Scripts/python.exe",
"args": [
"C:/path/to/your/project/sql_mcp_server.py"
],
"env": {
"PYTHONUNBUFFERED": "1",
"DB_SERVER": "\\\\SERVER\\INSTANCE",
"DB_NAME": "DATABASENAME",
"DB_USERNAME": "username",
"DB_PASSWORD": "password",
"DB_ALLOWED_SCHEMAS": "[\"dbo\"]",
"DB_DEBUG": "true",
"DB_LOG_LEVEL": "DEBUG"
}
}
}
Important Configuration Notes:
\\) for Windows network pathsDB_ALLOWED_SCHEMAS to restrict access to specific database schemasRestart Claude Desktop to apply the changes
Claude will now have access to all the SQL Server tools provided by this server
Once properly configured, you can ask Claude to:
Example prompt: "Show me the structure of the Customers table and give me a count of customers by country."
If you're not using Claude Desktop, you can still run the server in standalone mode:
python -m venv .venv.venv\Scripts\activatesource .venv/bin/activatepip install -r requirements.txt.env.example to .env and configure your database settingsrun_sql_mcp.batEdit the .env file with your SQL Server connection details:
DB_SERVER=your_server_name
DB_NAME=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password
DB_ALLOWED_SCHEMAS=["dbo"]
The server supports three variable prefix formats for backward compatibility:
DB_SERVER)SQLMCP_DB_SERVER)DB_USER_DB_SERVER)If multiple prefixes are defined for the same setting, the priority order is:
DB_ (highest priority)SQLMCP_ (medium priority)DB_USER_ (lowest priority)Discover and navigate your database structure with ease!
list_schemas - 🗂️ Get a comprehensive overview of all available database schemas - your roadmap to the database world!
list_tables - 📋 Uncover all tables and views in your schemas - see what treasures your database holds!
get_table_schema - 📊 Deep-dive into a table's anatomy - columns, data types, keys, and constraints all revealed!
search_schema_objects - 🔎 Find any database object in seconds - like Ctrl+F for your entire database!
get_query_examples - ✨ Auto-generate sample queries for any table - perfect for learning or quick starts!
Understand how your data connects across the database!
find_foreign_keys - 🔑 Discover all relationships for a table - see how tables are linked together!
find_related_tables - 🌐 Map the neighborhood of any table - see all connected entities at a glance!
find_related_tables_advanced - 🚀 Get advanced relationship insights with sample joins and visualization support!
Run powerful queries with built-in safety!
execute_select - ⚡ Execute SQL queries with secure parameter binding - safe, fast, and reliable!
query_table - 🎯 Query tables without writing SQL - perfect for simple filters and sorting!
get_sample_data - 👀 Preview table contents instantly - see actual data examples with zero effort!
Extract meaningful insights from your data!
analyze_table_data - 📈 Get statistical breakdowns of your data - distributions, patterns, and anomalies revealed!
find_duplicate_records - 🔄 Identify potential duplicate records - clean data leads to better insights!
summarize_data - 📌 Generate powerful summaries with grouping - aggregate, count, average, and more!
analyze_table_data_advanced - 🧪 Get comprehensive data analysis with samples and visualizations - for the data scientists!
Discover the hidden details of your database!
get_database_info - 🏢 Get vital statistics about your SQL Server and database - version, configuration, and more!
list_stored_procedures - 📜 Find all available stored procedures - discover powerful database routines!
get_procedure_definition - 📝 See the actual code inside stored procedures - perfect for understanding complex logic!
Share and utilize your data beyond the database!
export_data - 💾 Export query results to various formats - CSV, JSON, Excel and more!For connection issues or configuration help, refer to the sql_connection_help.md file.
Common issues to check:
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Microsoft SQL MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ms_sql_mcp_server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.