MCP Server
SQL Server Express MCP Server
Facilitates interaction with Microsoft SQL Server Express, supporting database operations such as querying, table management, and schema inspection via natural language MCP commands.
4
GitHub Stars
8/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "sqlexpress",
3 "command": "uv",
4 "args": [
5 "--directory",
6 "PATH\\TO\\PROJECT\\mcp-sqlexpress",
7 "run",
8 "mcp-server-sqlexpress",
9 "--server",
10 "server\\instance",
11 "--auth",
12 "windows",
13 "--trusted-connection",
14 "yes",
15 "--trust-server-certificate",
16 "yes",
17 "--allowed-databases",
18 "database1,database2"
19 ]
20}
JSON20 lines
README Documentation
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 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
Quick Install
Quick Actions
Key Features
Model Context Protocol
Secure Communication
Real-time Updates
Open Source