SQL Server Express
STDIO用于与SQL Server交互的MCP服务器
用于与SQL Server交互的MCP服务器
An MCP server for interacting with Microsoft SQL Server Express. Supports Windows and SQL Server authentication.
Clone this repo
cd mcp-sqlexpress # Create and activate virtual environment uv venv .venv\Scripts\activate # Install dependencies uv pip install --editable .
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" ] } } }
For Windows Authentication:
--auth windows--trusted-connection yesFor SQL Server Authentication:
--auth sql--username and --passwordget_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