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.1.tar.gz (20.3 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mseep_mcp_server_sqlexpress-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f4431c3cc2bcace9fd2c2598697563a3f2fd2e3073d98c49495182b7aa50a68
MD5 33dc18330abec1324647ae1fb9ac5113
BLAKE2b-256 280ca07e313a64275c21abe9f8b6194de73966af80832a96eb0d02d9e3856e6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_mcp_server_sqlexpress-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fde9a4315f081b97ea0c6d43b33bc4f3474a19c4c71c05cdf28f719f30a029d
MD5 29fafb299866cd5181ac021b4589c2e2
BLAKE2b-256 9f481652b5a0881ed374d4e8878c4df8d31b0fc5e1619a726cf630c5f0c3117a

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