MSSQL MCP Server
MSSQL MCP サーバー
概要
MSSQL MCPサーバーは、データベースとの連携とビジネスインテリジェンス機能を提供します。このサーバーは、SQLクエリの実行、ビジネスデータの分析、ビジネスインサイトメモの自動生成を可能にします。
MSSQLに適応するための変更については、公式サイトのSQLiteを参照してください。
Related MCP server: SQLite MCP Server
コンポーネント
read_querySELECTクエリを実行してデータベースからデータを読み取ります
write_queryINSERT、UPDATE、またはDELETEクエリを実行する
create_tableデータベースに新しいテーブルを作成する
list_tablesデータベース内のすべてのテーブルのリストを取得する
describe-table特定のテーブルのスキーマ情報を表示する
append_insightメモリソースに新しいビジネスインサイトを追加する
デモ
データベーステーブルは以下のとおりです。列名は標準化されていないため、AIが独自に照合します。SQL実行中のエラーは自動的に修正されます。

以下はデモです。

動作環境
Python 3.xPackagespyodbc>=4.0.39
ピダンティック>=2.0.0
mcp>=0.1.0
ODBC Driver 17 for SQL Server
使用法
パッケージをインストールする
CD /d ~/mssql-mcp
pip install -r requirements.txt 設定
#with server.py same folder create config.json,add:
{
"database": {
"driver": "ODBC Driver 17 for SQL Server",
"server": "server ip",
"database": "db name",
"username": "username",
"password": "password",
"trusted_connection": false
},
"server": {
"name": "mssql-manager",
"version": "0.1.0"
}
}クロードデスクトップ、ウィンドサーフィン
# add to claude_desktop_config.json. Note:use your path
{
"mcpServers": {
"mssql": {
"command": "python",
"args": [
# your path,e.g.:"C:\\mssql-mcp\\src\\server.py"
"~/server.py"
]
}
}
}カーソル
# Add according to the following diagram Cursor MCP. Note:use your path 
注:カーソルの新しいバージョンもJSON構成に変更されました。前のセクションを参照してください。
MCP検査官
# Note:use your path
npx -y @modelcontextprotocol/inspector python C:\\mssql-mcp\\src\\server.pyプロジェクト構造
mssql-mcp
├── .git
├── .gitignore
├── LICENSE
├── README.md
├── README_en.md
├── README_zh.md
├── imgs
│ ├── cursor_config.png
│ ├── table.png
│ └── demo.gif
├── requirements.txt
└── src
├── __init__.py
└── server.pyライセンス
MITライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
- RumboOAuthcom.rumboar
Securely query and analyze business data, dashboards, projections, alerts, and knowledge.
Ask questions in plain language, get answers from your business database. No SQL required.
Ask your databases questions in plain English, run read-only SQL and set up data alerts.
Ask business questions in plain English. Get instant answers from your database, no SQL needed.
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceA Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through SQLite. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.91,120MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.19MIT
- AlicenseAqualityBmaintenanceEnables interaction with Microsoft SQL Server and Azure SQL databases through natural language, supporting queries, schema exploration, stored procedures, and complete database operations with connection pooling and security features.141,417 npm13MIT
- AlicenseBqualityFmaintenanceEnables users to analyze, query, and modernize Microsoft SQL Server databases through natural language, supporting multi-database connections, schema discovery, performance analysis, and legacy system migration planning.333,547 npm3MIT