Enables secure interaction with Microsoft SQL Server databases via a controlled interface for AI assistants.
Enables secure interaction with Microsoft SQL Server databases via a controlled interface for AI assistants. The mssql mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 1 defined tool rather than through you.
A Model Context Protocol (MCP) server for secure SQL Server database access through Claude Desktop.
Everything the assistant can do here goes through one of these:
Development — The Development tool exposed by this serverYou will need 4 environment variables: MSSQL_SERVER, MSSQL_DATABASE, MSSQL_USER, MSSQL_PASSWORD. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
The server ships on PyPI as microsoft_sql_server_mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Mssql's toolset — Development — is a fair guide to whether it matches your workflow. It is maintained by RichardHan; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Mssql's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Development | The Development tool exposed by this server. |
{
"mcpServers": {
"mssql": {
"command": "uvx",
"args": ["microsoft_sql_server_mcp"],
"env": {
"MSSQL_SERVER": "localhost",
"MSSQL_DATABASE": "your_database",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| MSSQL_SERVER | Configuration value read at startup. | Optional |
| MSSQL_DATABASE | Configuration value read at startup. | Optional |
| MSSQL_USER | Configuration value read at startup. | Optional |
| MSSQL_PASSWORD | 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.