
mssql-mcp
by daobataotie·★ 39·Score 39
A Python-based MCP server that enables SQL query execution and business intelligence capabilities for MSSQL databases.
Overview
The mssql-mcp server provides database interaction capabilities through well-defined tools for reading and writing data, creating tables, and retrieving schema information. It also includes a unique business intelligence feature that can automatically generate insight memos based on data analysis. The implementation uses pyodbc for database connectivity and includes proper configuration options for different MCP clients.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you need AI-assisted SQL query capabilities specifically for Microsoft SQL Server databases.
When NOT to choose this
Avoid if you need to connect to non-MSSQL databases, as this server is specifically designed for Microsoft SQL Server.
Tools this server exposes
6 tools extracted from the READMEread_queryExecute SELECT queries to read data from the database
write_queryExecute INSERT, UPDATE, or DELETE queries
create_tableCreate new tables in the database
list_tablesGet a list of all tables in the database
describe-tableView schema information for a specific table
append_insightAdd new business insights to the memo resource
Comparable tools
Installation
- Install dependencies:
pip install -r requirements.txt - Create a
config.jsonfile in the same directory asserver.pywith your database connection details - Add to Claude Desktop configuration:
{
"mcpServers": {
"mssql": {
"command": "python",
"args": ["/path/to/mssql-mcp/src/server.py"]
}
}
}```FAQ
- What SQL Server versions are supported?
- The server uses ODBC Driver 17 for SQL Server, which supports SQL Server 2008 and later versions.
- Can this server be used with other database systems?
- This implementation is specifically designed for MSSQL. The README mentions it was adapted from an SQLite example.
Compare mssql-mcp with
Last updated · Auto-generated from public README + GitHub signals.