drio
Open app

GUIDE

Source

MCP server for MSSQL

Catalog onlyCatalog onlySTDIO

Overview

MCP for MSSQL is a server designed to facilitate connections to Microsoft SQL Server databases, allowing developers to manage and interact with their databases efficiently.

To use MCP for MSSQL, create a virtual environment, activate it, set up your connection details in a .env file, and configure your cursor editor to connect to the MCP server.

  • Easy setup with a virtual environment - Customizable connection settings through a .env file - Integration with cursor editors for seamless database management
  1. Connecting to local Microsoft SQL Server databases for development.
  2. Managing database connections in Python applications.
  3. Facilitating database operations through a user-friendly interface.

Add to your AI client

Use these steps to connect GUIDE 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": {
    "mcp-mssql-faruknetworks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mssql-faruknetworks"
      ]
    }
  }
}

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": {
    "mcp-mssql-faruknetworks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mssql-faruknetworks"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-mssql-faruknetworks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mssql-faruknetworks"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

{
  "servers": {
    "mcp-mssql-faruknetworks": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mssql-faruknetworks"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-mssql-faruknetworks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mssql-faruknetworks"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-mssql-faruknetworks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mssql-faruknetworks"
      ]
    }
  }
}

FAQ

What is required to run MCP for MSSQL?

You need Python 3.10 and a local instance of Microsoft SQL Server.

Can I use MCP for MSSQL with other database systems?

No, MCP for MSSQL is specifically designed for Microsoft SQL Server.

Is there any documentation available?

Yes, detailed setup instructions are provided in the project guide.