This server enables interaction with a Microsoft SQL Server database, providing capabilities for database introspection, query execution, and transaction management.
Get tables: List all tables in the database
Get a specific table: Retrieve details of a table by name
Get stored procedures: List all stored procedures in the database
Get a specific stored procedure: Retrieve details of a stored procedure by name
Query the database: Execute SQL queries against the database
Start a transaction: Initiate a new database transaction
Commit a transaction: Commit an existing transaction by ID
Rollback a transaction: Rollback an existing transaction by ID
mcp-node-mssql
⚠️ Keep bobby tables at bay. Test this with read-only access first.
Usage
Cursor
See the official Cursor docs for more information.
Open (or create) the
mcp.jsonfile (it should be in~/.cursor/mcp.jsonor<project-root>/.cursor/mcp.json, but see Cursor docs for more details).Add the following details and save the file:
Windsurf
See the official Windsurf docs for more information.
Open the
Windsurf MCP Configuration PanelClick
Add custom server.Add the following details and save the file:
Claude Code
See the official Claude Code docs for more information.
You can add a new MCP server from the Claude Code CLI. But modifying the json file directly is simpler!
Open the Claude Code configuration file (it should be in
~/.claude.json).Find the
projects>mcpServerssection and add the following details and save the file:
Related MCP server: Microsoft SQL Server MCP Server
Issues and Troubleshooting
Before doing anything else, please make sure you are running the latest version!
If you run into problems using this MCP server, please open an issue on GitHub!
Development
Installation
Build
Running the Development Server Locally
To test your local development version of the MCP server rather than using the published package, follow these steps:
Build the project:
Create or modify your
mcp.jsonfile to reference your local build:
Place this
mcp.jsonfile in one of the following locations:For Cursor: In your home directory (
~/.cursor/mcp.json) or in your project directory (.cursor/mcp.json)For Windsurf: Use the MCP Configuration Panel to add the custom server
Restart your AI assistant (Cursor or Windsurf) to load the new configuration.
This allows you to instantly test changes to the MCP server without having to publish a new version.