About mcp-server-mssql
mcp-server-mssql connects MCP clients to Microsoft SQL Server using mssql-python. Its tools cover queries, stored procedures, transactions, bulk copy, and database metadata.
Key features
- 01Connect to and manage database connections
- 02Execute queries and scalar statements
- 03Call stored procedures
- 04Commit or roll back transactions
- 05Bulk copy data
- 06Inspect tables, columns, and keys
Use cases
- 01Run SQL queries against Microsoft SQL Server
- 02Call stored procedures and manage transactions
- 03Review database tables and key metadata
MCP support
It exposes Microsoft SQL Server connection and database operations to MCP clients through tools for queries, transactions, bulk copy, and schema inspection.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-server-mssql
MCP server for Microsoft SQL Server using mssql-python.
mcp-name: io.github.daedalus/mcp-server-mssql
Install
pip install mcp-server-mssql
Usage
Run as MCP Server
mcp-server-mssql
Configure in Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-mssql": {
"command": "mcp-server-mssql"
}
}
}
Available Tools
connect_tool- Connect to Microsoft SQL Serverclose_connection- Close an existing connectionlist_connections- List all active connectionsexecute_query- Execute SQL query and return resultsexecute_scalar- Execute SQL and return single valuefetch_results- Fetch results from a cursorcall_procedure- Call a stored procedurecommit- Commit current transactionrollback- Rollback current transactionbulk_copy- Perform bulk copy operationget_tables- List database tablesget_columns- List table columnsget_procedures- List stored proceduresget_foreign_keys- List foreign keysget_primary_keys- List primary keysparse_connection_string- Parse connection stringbuild_connection_string- Build connection stringset_connection_timeout- Set connection timeoutset_login_timeout- Set login timeoutset_autocommit- Set autocommit modeget_connection_info- Get connection information
Development
git clone https://github.com/daedalus/mcp-server-mssql.git
cd mcp-server-mssql
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.