drio
Open app

SQL Server MCP Server for Windsurf IDE

Source

SQL Server MCP Server for Windsurf IDE - A standalone MCP server providing SQL Server integration capabilities

Catalog onlyCatalog onlySTDIO

Overview

MCPSqlServer is a standalone Model Context Protocol (MCP) server written in C# that provides SQL Server integration capabilities as an addon to Windsurf IDE.

To use MCPSqlServer, build the project using .NET SDK, configure the application settings in appsettings.json, and integrate it with Windsurf IDE by updating the MCP configuration file.

  • SQL Server connectivity - Database schema exploration - Table and view inspection - Column metadata retrieval - Stored procedure enumeration - SQL query execution - Debug mode for troubleshooting - Configurable logging path
  1. Connecting to SQL Server databases from Windsurf IDE.
  2. Executing SQL queries and retrieving results.
  3. Browsing and analyzing database schemas.
  4. Running stored procedures and generating SQL code snippets.

Add to your AI client

Use these steps to connect SQL Server MCP Server for Windsurf IDE in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcpsqlserver-ian-cowley": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcpsqlserver-ian-cowley"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcpsqlserver-ian-cowley": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcpsqlserver-ian-cowley"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcpsqlserver-ian-cowley": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcpsqlserver-ian-cowley"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcpsqlserver-ian-cowley": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcpsqlserver-ian-cowley"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcpsqlserver-ian-cowley": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcpsqlserver-ian-cowley"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcpsqlserver-ian-cowley": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcpsqlserver-ian-cowley"
      ]
    }
  }
}

FAQ

What are the prerequisites for using MCPSqlServer?

You need .NET 9.0 SDK or higher, a SQL Server instance, and SQL Server client tools.

Is MCPSqlServer free to use?

Yes! MCPSqlServer is open-source and available under the MIT License.

How can I contribute to MCPSqlServer?

You can fork the repository, create a feature branch, and submit a pull request.