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
--usernameand--password
Features
Tools
get_allowed_databases: Get list of databases that are allowed to be accessedread_query: Execute SELECT querieswrite_query: Execute INSERT/UPDATE/DELETE queriescreate_table: Create new tableslist_tables: List all tables in databasedescribe_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_mcp_server_sqlexpress-0.1.0.tar.gz.
File metadata
- Download URL: mseep_mcp_server_sqlexpress-0.1.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46ec8d8c14743323fc02b980aaca2aa909c5c6cb1dc388239222feaf40e28c2e
|
|
| MD5 |
c493cb144db4e3d597ca9cf9a5df4323
|
|
| BLAKE2b-256 |
63c8a3ad68dfb06c3c18e49da4926eaeae6aba0abf7b28c73b1f084f3f398eea
|
File details
Details for the file mseep_mcp_server_sqlexpress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp_server_sqlexpress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e2063519d280f7c58030f8389984e9d2b1ea190350986610a1514dc8bfbcb99
|
|
| MD5 |
c0cbc96b77bc9d437d96940283b4fa77
|
|
| BLAKE2b-256 |
43ce81b28a701f3de52ab049873dc2ab7c95e36f578b90babac9adb64e671523
|