Cursor supports MCP servers viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/A-Point-Systems-ltd/ms-sql-mcp/llms.txt
Use this file to discover all available pages before exploring further.
mcp.json config files placed at project level (.cursor/mcp.json) or user level (~/.cursor/mcp.json). Both scopes use the same JSON structure — project-level configs take precedence for that workspace, while user-level configs apply across all projects. This page shows how to configure MSSQL MCP Server in either location.
Project-level config
Build or publish the server
Follow the steps in Build and Publish to produce a
MssqlMcp.exe binary. Use the Debug build for local development or a self-contained published executable for a shared or production setup.Create the config file
Create
.cursor/mcp.json in your project root (for a project-scoped server), or open ~/.cursor/mcp.json (for a user-scoped server that applies to all Cursor workspaces). Create the file if it does not already exist.Paste the server configuration
Add the following JSON, replacing the All four
command path and connection string with values matching your environment:env keys are shown above for completeness. USE_INSIGHTS_LAYER and INSIGHTS_AUTOPOPULATE are enabled by default — you may omit them if you are happy with the defaults. LOG_FILE_PATH is optional but recommended while getting started.Restart Cursor or reload the MCP server
After saving the file, restart Cursor or open the Cursor MCP panel and click Reload next to the MSSQL-MCP entry. The server status indicator should turn green once the process starts and the SQL connection test passes.
Debug build vs. published executable
The path you set forcommand depends on how you built the server.
Debug build — produced by dotnet build with no additional flags. The output lands at:
publish-release.ps1. This creates a self-contained, single-file executable at the path configured in the publish profile:
command at this path for a more stable, portable deployment.
Azure SQL with Entra ID
To connect to an Azure SQL Database using Microsoft Entra ID interactive authentication, replace theCONNECTION_STRING value with:
<server> with your Azure SQL logical server name and <database> with the target database name. The first connection attempt will open an Entra ID browser login prompt.
Restart the MCP server after any environment variable change — the process reads environment variables once at startup, so changes to
CONNECTION_STRING or any other env key do not take effect until the server process restarts. Use the Reload button in the Cursor MCP panel or restart Cursor entirely.