L'Agora
MCPLocal

io.github.coregentdevspace/sql-server-analyst-mcp

Read-only SQL Server Analyst MCP — safe schema, stored procedure, and performance analysis.

Repository
github.com/coregentdevspace/sql-server-analyst-mcp
Version
0.1.1
Author
coregentdevspace (namespace verified by the registry)
Source
Official MCP registry (updated Apr 22, 2026)

How to install it

Variables to fill in: MSSQL_SERVER, MSSQL_PORT, MSSQL_DATABASE, MSSQL_USER, MSSQL_PASSWORD, MSSQL_ENCRYPT, MSSQL_TRUST_SERVER_CERT, ALLOWED_DATABASES, ALLOWED_SCHEMAS, MAX_ROWS, MAX_ROWS_LIMIT, QUERY_TIMEOUT_MS, LOG_LEVEL.

On your machine

Claude Code

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

claude mcp add sql-server-analyst-mcp -e MSSQL_SERVER=YOUR_MSSQL_SERVER -e MSSQL_PORT=YOUR_MSSQL_PORT -e MSSQL_DATABASE=YOUR_MSSQL_DATABASE -e MSSQL_USER=YOUR_MSSQL_USER -e MSSQL_PASSWORD=YOUR_MSSQL_PASSWORD -e MSSQL_ENCRYPT=YOUR_MSSQL_ENCRYPT -e MSSQL_TRUST_SERVER_CERT=YOUR_MSSQL_TRUST_SERVER_CERT -e ALLOWED_DATABASES=YOUR_ALLOWED_DATABASES -e ALLOWED_SCHEMAS=YOUR_ALLOWED_SCHEMAS -e MAX_ROWS=YOUR_MAX_ROWS -e MAX_ROWS_LIMIT=YOUR_MAX_ROWS_LIMIT -e QUERY_TIMEOUT_MS=YOUR_QUERY_TIMEOUT_MS -e LOG_LEVEL=YOUR_LOG_LEVEL -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "sql-server-analyst-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MSSQL_SERVER": "YOUR_MSSQL_SERVER",
        "MSSQL_PORT": "YOUR_MSSQL_PORT",
        "MSSQL_DATABASE": "YOUR_MSSQL_DATABASE",
        "MSSQL_USER": "YOUR_MSSQL_USER",
        "MSSQL_PASSWORD": "YOUR_MSSQL_PASSWORD",
        "MSSQL_ENCRYPT": "YOUR_MSSQL_ENCRYPT",
        "MSSQL_TRUST_SERVER_CERT": "YOUR_MSSQL_TRUST_SERVER_CERT",
        "ALLOWED_DATABASES": "YOUR_ALLOWED_DATABASES",
        "ALLOWED_SCHEMAS": "YOUR_ALLOWED_SCHEMAS",
        "MAX_ROWS": "YOUR_MAX_ROWS",
        "MAX_ROWS_LIMIT": "YOUR_MAX_ROWS_LIMIT",
        "QUERY_TIMEOUT_MS": "YOUR_QUERY_TIMEOUT_MS",
        "LOG_LEVEL": "YOUR_LOG_LEVEL"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sql-server-analyst-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MSSQL_SERVER": "YOUR_MSSQL_SERVER",
        "MSSQL_PORT": "YOUR_MSSQL_PORT",
        "MSSQL_DATABASE": "YOUR_MSSQL_DATABASE",
        "MSSQL_USER": "YOUR_MSSQL_USER",
        "MSSQL_PASSWORD": "YOUR_MSSQL_PASSWORD",
        "MSSQL_ENCRYPT": "YOUR_MSSQL_ENCRYPT",
        "MSSQL_TRUST_SERVER_CERT": "YOUR_MSSQL_TRUST_SERVER_CERT",
        "ALLOWED_DATABASES": "YOUR_ALLOWED_DATABASES",
        "ALLOWED_SCHEMAS": "YOUR_ALLOWED_SCHEMAS",
        "MAX_ROWS": "YOUR_MAX_ROWS",
        "MAX_ROWS_LIMIT": "YOUR_MAX_ROWS_LIMIT",
        "QUERY_TIMEOUT_MS": "YOUR_QUERY_TIMEOUT_MS",
        "LOG_LEVEL": "YOUR_LOG_LEVEL"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "sql-server-analyst-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MSSQL_SERVER": "YOUR_MSSQL_SERVER",
        "MSSQL_PORT": "YOUR_MSSQL_PORT",
        "MSSQL_DATABASE": "YOUR_MSSQL_DATABASE",
        "MSSQL_USER": "YOUR_MSSQL_USER",
        "MSSQL_PASSWORD": "YOUR_MSSQL_PASSWORD",
        "MSSQL_ENCRYPT": "YOUR_MSSQL_ENCRYPT",
        "MSSQL_TRUST_SERVER_CERT": "YOUR_MSSQL_TRUST_SERVER_CERT",
        "ALLOWED_DATABASES": "YOUR_ALLOWED_DATABASES",
        "ALLOWED_SCHEMAS": "YOUR_ALLOWED_SCHEMAS",
        "MAX_ROWS": "YOUR_MAX_ROWS",
        "MAX_ROWS_LIMIT": "YOUR_MAX_ROWS_LIMIT",
        "QUERY_TIMEOUT_MS": "YOUR_QUERY_TIMEOUT_MS",
        "LOG_LEVEL": "YOUR_LOG_LEVEL"
      }
    }
  }
}
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.

Reviews

No review yet.

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

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.coregentdevspace/sql-server-analyst-mcp 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.coregentdevspace/sql-server-analyst-mcp on L’Agora](https://lagora.dev/badge/io.github.coregentdevspace/sql-server-analyst-mcp.svg?lang=en)](https://lagora.dev/en/entry/io.github.coregentdevspace/sql-server-analyst-mcp)

HTML

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

Promote

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

By the same author

YouTube Channel Lookup Key required

Company Jobs Lookup Key required

YouTube Transcript Not responding

YouTube Scraper Not responding

Report this entry