Skip to main content

mcp-server-mssql

MCP server for Microsoft SQL Server using mssql-python.

PyPI Python Ruff

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 Server
  • close_connection - Close an existing connection
  • list_connections - List all active connections
  • execute_query - Execute SQL query and return results
  • execute_scalar - Execute SQL and return single value
  • fetch_results - Fetch results from a cursor
  • call_procedure - Call a stored procedure
  • commit - Commit current transaction
  • rollback - Rollback current transaction
  • bulk_copy - Perform bulk copy operation
  • get_tables - List database tables
  • get_columns - List table columns
  • get_procedures - List stored procedures
  • get_foreign_keys - List foreign keys
  • get_primary_keys - List primary keys
  • parse_connection_string - Parse connection string
  • build_connection_string - Build connection string
  • set_connection_timeout - Set connection timeout
  • set_login_timeout - Set login timeout
  • set_autocommit - Set autocommit mode
  • get_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/

Metadata

Release files for mcp-server-mssql 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-mssql 0.1.0
File Size Uploaded
mcp_server_mssql-0.1.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-mssql 0.1.0
File Interpreter ABI Platform
mcp_server_mssql-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / mcp_server_mssql-0.1.0.tar.gz

Download URL mcp_server_mssql-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0b10af6122f708fc7c7d4697dfd24d64ef193c000725bcf5fb249557df9b81f
BLAKE2b-256 checksum
How to use checksums
9ac2673f9cb8f2a087a1a7efca09bbb95b2b68f13bc5776bf6fd9ea898efad6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 3, 2026.

Transparency log

Release files / mcp_server_mssql-0.1.0-py3-none-any.whl

Download URL mcp_server_mssql-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
283ed7ee41397be5909410b22b92c4df33b15706bb7365f443e153bf428da9ce
BLAKE2b-256 checksum
How to use checksums
3872d20892e53fda53bde5dca0ebe1b175fb1c0060418ad085fb4595c4a24f40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page