MCP server for Microsoft SQL Server using mssql-python
MCP server for Microsoft SQL Server using mssql-python.
mcp-name: io.github.daedalus/mcp-server-mssql
pip install mcp-server-mssql
mcp-server-mssql
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-mssql": {
"command": "mcp-server-mssql"
}
}
}
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 informationgit 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/
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-server-mssqlMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-server-mssql": {
"command": "uvx",
"args": [
"mcp-server-mssql"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-server-mssqlpypiio.github.daedalus/mcp-server-mssql works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.