L'Agora
MCPLocal

Microsoft SQL Server

io.github.alyiox/mcp-mssql

MCP server for SQL Server metadata, parameterized queries, plan analysis, and writes opt-in.

No review yet · 0 questions Write a reviewAsk the authorFollow this entry

Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.

All projects by alyiox

Repository
github.com/alyiox/mcp-mssql
Website
github.com/alyiox/mcp-mssql
Version
1.8.0
Author
alyiox (namespace verified by the registry)
Source
Official MCP registry (updated Oct 26, 2026)

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Questions for the author

No question yet.

Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.

Continue with GoogleGet a link by email

How to install it

Variables to fill in: MCPMSSQL_CONNECTION_STRING, MCPMSSQL_DESCRIPTION, MCPMSSQL_QUERY_MAX_ROWS, MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS, MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS, MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS, MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS, MCPMSSQL_ALLOW_WRITE, MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS, DOTNET_ENVIRONMENT.

On your machine

Claude Code

The server runs on your machine (nuget package). In a terminal:

claude mcp add mcp-mssql -e MCPMSSQL_CONNECTION_STRING=YOUR_MCPMSSQL_CONNECTION_STRING -e MCPMSSQL_DESCRIPTION=YOUR_MCPMSSQL_DESCRIPTION -e MCPMSSQL_QUERY_MAX_ROWS=YOUR_MCPMSSQL_QUERY_MAX_ROWS -e MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS=YOUR_MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS -e MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS=YOUR_MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS -e MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS=YOUR_MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS -e MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS=YOUR_MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS -e MCPMSSQL_ALLOW_WRITE=YOUR_MCPMSSQL_ALLOW_WRITE -e MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS=YOUR_MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS -e DOTNET_ENVIRONMENT=YOUR_DOTNET_ENVIRONMENT -- dnx [email protected] --yes
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "mcp-mssql": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "MCPMSSQL_CONNECTION_STRING": "YOUR_MCPMSSQL_CONNECTION_STRING",
        "MCPMSSQL_DESCRIPTION": "YOUR_MCPMSSQL_DESCRIPTION",
        "MCPMSSQL_QUERY_MAX_ROWS": "YOUR_MCPMSSQL_QUERY_MAX_ROWS",
        "MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS": "YOUR_MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS",
        "MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_ALLOW_WRITE": "YOUR_MCPMSSQL_ALLOW_WRITE",
        "MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS",
        "DOTNET_ENVIRONMENT": "YOUR_DOTNET_ENVIRONMENT"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mcp-mssql": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "MCPMSSQL_CONNECTION_STRING": "YOUR_MCPMSSQL_CONNECTION_STRING",
        "MCPMSSQL_DESCRIPTION": "YOUR_MCPMSSQL_DESCRIPTION",
        "MCPMSSQL_QUERY_MAX_ROWS": "YOUR_MCPMSSQL_QUERY_MAX_ROWS",
        "MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS": "YOUR_MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS",
        "MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_ALLOW_WRITE": "YOUR_MCPMSSQL_ALLOW_WRITE",
        "MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS",
        "DOTNET_ENVIRONMENT": "YOUR_DOTNET_ENVIRONMENT"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "mcp-mssql": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "MCPMSSQL_CONNECTION_STRING": "YOUR_MCPMSSQL_CONNECTION_STRING",
        "MCPMSSQL_DESCRIPTION": "YOUR_MCPMSSQL_DESCRIPTION",
        "MCPMSSQL_QUERY_MAX_ROWS": "YOUR_MCPMSSQL_QUERY_MAX_ROWS",
        "MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS": "YOUR_MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS",
        "MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS",
        "MCPMSSQL_ALLOW_WRITE": "YOUR_MCPMSSQL_ALLOW_WRITE",
        "MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS": "YOUR_MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDS",
        "DOTNET_ENVIRONMENT": "YOUR_DOTNET_ENVIRONMENT"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Cite this entry

For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.

Microsoft SQL Server · L’Agora

[Microsoft SQL Server — L’Agora](https://lagora.dev/en/entry/io.github.alyiox/mcp-mssql)

Sources, methodology and limitations

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.alyiox/mcp-mssql on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.alyiox/mcp-mssql on L’Agora](https://lagora.dev/badge/io.github.alyiox/mcp-mssql.svg?lang=en)](https://lagora.dev/en/entry/io.github.alyiox/mcp-mssql)

HTML

<a href="https://lagora.dev/en/entry/io.github.alyiox/mcp-mssql"><img src="https://lagora.dev/badge/io.github.alyiox/mcp-mssql.svg?lang=en" alt="io.github.alyiox/mcp-mssql on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

ClickHouse Local

Documentation Search Local

OpenAPI Services Local

Walmart & Sam's Club APIs Local

Report this entry