MSSQL MCP Server is a **Model Context Protocol (MCP) server** that enables secure and structured interaction with **Microsoft SQL Server (MSSQL)**
Mssql mcp server connects Mssql to AI assistants that speak the Model Context Protocol. MSSQL MCP Server is a Model Context Protocol (MCP) server that enables secure and structured interaction with Microsoft SQL Server (MSSQL) databases. It allows AI assistants to: - List available tables - Read table contents - Execute SQL queries with controlled access.
MSSQL MCP Server is a Model Context Protocol (MCP) server that enables secure and structured interaction with Microsoft SQL Server (MSSQL) databases. It allows AI assistants to: - List available tables - Read table contents - Execute SQL queries with controlled access
The server is distributed via PyPI as mssql-mcp-server, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
The server reads 5 environment variables: MSSQL_DRIVER, MSSQL_HOST, MSSQL_USER, MSSQL_PASSWORD, MSSQL_DATABASE. Keep credentials in your client's env block or a secrets manager rather than committing them.
Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Mssql sits in that group. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
{
"mcpServers": {
"mssql": {
"command": "uvx",
"args": ["mssql-mcp-server"],
"env": {
"MSSQL_DRIVER": "your-value",
"MSSQL_HOST": "your-value",
"MSSQL_USER": "your-value",
"MSSQL_PASSWORD": "your-value",
"MSSQL_DATABASE": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MSSQL_DRIVER | Configuration value read at startup. | Optional |
| MSSQL_HOST | Endpoint or connection string the server talks to. | Optional |
| MSSQL_USER | Configuration value read at startup. | Optional |
| MSSQL_PASSWORD | Configuration value read at startup. | Optional |
| MSSQL_DATABASE | Configuration value read at startup. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.