Skip to main content

A Microsoft SQL Server (SQLEXPRESS) MCP server

Project description

SQL Server Express MCP Server

An MCP server for interacting with Microsoft SQL Server Express. Supports Windows and SQL Server authentication.

Prerequisites

  • Python 3.10 or higher
  • Microsoft ODBC Driver 18 for SQL Server
  • SQL Server instance with appropriate permissions

Installation

Clone this repo

cd mcp-sqlexpress

# Create and activate virtual environment
uv venv
.venv\Scripts\activate

# Install dependencies
uv pip install --editable .

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
    "mcpServers": {
        "sqlexpress": {
            "command": "uv",
            "args": [
                "--directory",
                "PATH\\TO\\PROJECT\\mcp-sqlexpress",
                "run",
                "mcp-server-sqlexpress",
                "--server",
                "server\\instance",
                "--auth",
                "windows",
                "--trusted-connection",
                "yes",
                "--trust-server-certificate",
                "yes",
                "--allowed-databases",
                "database1,database2"
            ]
        }
    }
}

Authentication Options

For Windows Authentication:

  • Set --auth windows
  • Set --trusted-connection yes

For SQL Server Authentication:

  • Set --auth sql
  • Add --username and --password

Features

Tools

  • get_allowed_databases: Get list of databases that are allowed to be accessed
  • read_query: Execute SELECT queries
  • write_query: Execute INSERT/UPDATE/DELETE queries
  • create_table: Create new tables
  • list_tables: List all tables in database
  • describe_table: Show table schema

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_server_sqlexpress-0.1.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_server_sqlexpress-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_server_sqlexpress-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mseep_mcp_server_sqlexpress-0.1.0.tar.gz
Algorithm Hash digest
SHA256 46ec8d8c14743323fc02b980aaca2aa909c5c6cb1dc388239222feaf40e28c2e
MD5 c493cb144db4e3d597ca9cf9a5df4323
BLAKE2b-256 63c8a3ad68dfb06c3c18e49da4926eaeae6aba0abf7b28c73b1f084f3f398eea

See more details on using hashes here.

File details

Details for the file mseep_mcp_server_sqlexpress-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_server_sqlexpress-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e2063519d280f7c58030f8389984e9d2b1ea190350986610a1514dc8bfbcb99
MD5 c0cbc96b77bc9d437d96940283b4fa77
BLAKE2b-256 43ce81b28a701f3de52ab049873dc2ab7c95e36f578b90babac9adb64e671523

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page