MCP.so
登录
M

MSSQL DBA MCP Server

@dba-i

基本信息

分类

数据库

传输方式

stdio

作者

dba-i

提交者

Evgenii Vaniukov

关于 MSSQL DBA MCP Server

The server provides context to an LLM, empowering models to complete various Database Administration tasks, such as improving table health, optimizing existing indexes, and identifying missing ones. The server aims to find the best way to provide context so the LLMs can maximize

#dba#database-administration

MSSQL DBA MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mssql-dba": {
      "command": "npx",
      "args": [
        "@dba-i/mssql-dba"
      ],
      "env": {
        "DB_HOST": "host",
        "DB_PORT": "1433",
        "DB_USER": "user",
        "DB_PASSWORD": "password",
        "DB_NAME": "database name",
        "TRUST_SERVER_CERTIFICATE": "true",
        "ENCRYPT": "false",
        "MAX_POOL": "10",
        "MIN_POOL": "0",
        "IDLE": "30000"
      }
    }
  }
}

MSSQL DBA MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MSSQL DBA?

MSSQL DBA is an MCP (Model Context Protocol) server that provides structured database context to LLMs, enabling automated SQL Server administration tasks such as index optimization, query performance tuning, and schema health analysis. It is built for database administrators and developers working with Microsoft SQL Server.

How to use MSSQL DBA?

Configure the server by adding an entry to your MCP client’s configuration file (e.g., claude_desktop_config.json) using the npx command and supplying required environment variables (host, port, user, password, database name). Optional parameters include trust server certificate, encryption, and connection pooling settings. The server currently supports only SQL Server Authentication.

Key features of MSSQL DBA

  • Provides prompts to optimize SQL queries and indexes.
  • Exposes tools for table metadata, index health, and missing indexes.
  • Retrieves server-level information (version, timezone).
  • Analyzes database collation and identifies mismatches.
  • Generates optimization scripts with rollback and maintenance procedures.

Use cases of MSSQL DBA

  • Automate index maintenance and missing index detection.
  • Optimize slow-running SQL queries with schema-level suggestions.
  • Assess and report on index health across specified tables.
  • Detect and resolve collation mismatches within a database.

常见问题

1

What prerequisites are needed to run MSSQL DBA?

Create a SQL Server login with `VIEW SERVER STATE` and `VIEW DEFINITION` permissions, and ensure the server uses SQL Server Authentication. The server runs via `npx` and Node.js.

2

Does MSSQL DBA support Windows Authentication or other transport methods?

No, the server currently supports only SQL Server Authentication. It uses the stdio transport and runs as an MCP client tool via `npx`.

3

Where does MSSQL DBA store data or context?

The server does not persist data; it connects to a live SQL Server instance and returns context to the LLM in real time. No local storage is involved.

4

What are the optional configuration parameters?

Optional environment variables include `TRUST_SERVER_CERTIFICATE`, `ENCRYPT`, `MAX_POOL`, `MIN_POOL`, and `IDLE` for connection pooling behavior.

5

Can MSSQL DBA work with databases that have collation differences?

Yes, it provides a `get-collation-mismatches` tool that identifies columns with collation settings differing from the database default.

评论

数据库 分类下的更多 MCP 服务器