Read-only MSSQL MCP server

Read-only MSSQL MCP server

mssql-mcp-server-connordaytonaholmes•byconnordaytonaholmes

A Model Context Protocol server that provides safe, read-only access to Microsoft SQL Server databases, with schema exploration and validated querying.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Restricts operations to read-only SELECT, DECLARE, and SET statements, with no DDL or DML permitted.
  • •Exposes resources for listing schemas, tables, columns, and indexes.
  • •Offers tools to list accessible databases and tables in the current database.
  • •Includes SQL parsing and validation plus parameterized queries as security measures.

BEST FOR

  • •Exploring the schema of a Microsoft SQL Server database through MCP.
  • •Running safe, read-only queries against MSSQL data.

ABOUT MSSQL-MCP-SERVER-CONNORDAYTONAHOLMES

Read-only MSSQL MCP server is cataloged as an MCP server attributed to connordaytonaholmes. A Model Context Protocol server that provides safe, read-only access to Microsoft SQL Server databases, with schema exploration and validated querying. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Read-only MSSQL MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server allow write operations?

No; only SELECT, DECLARE, and SET for local variables are allowed, with no DDL or DML operations.

How are database connection details configured?

Connection details are set through environment variables in a .env file, such as server, database, username, password, port, and timeout.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3f1fa505d560 · 采集于 2026-11-13 11:07:32 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MSSQL MCP Server

A Model Context Protocol (MCP) server for read-only Microsoft SQL Server interactions. This server provides safe, read-only access to MSSQL databases through the MCP protocol.

Features

  • Read-only operations: Only SELECT, DECLARE, and SET (for local variables) queries are allowed
  • Schema exploration: Browse databases, tables, columns, and indexes
  • Safe querying: SQL injection protection and query validation
  • Connection management: Secure connection handling with proper cleanup

Installation

  1. Clone this repository:
git clone <repository-url>
cd mssql-mcp
  1. Install dependencies:
pip install -e .
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your database connection details

Important: The server automatically loads environment variables from a .env file in the current directory. Make sure to create this file with your database connection details.

Configuration

Create a .env file with your MSSQL connection details:

MSSQL_SERVER=localhost
MSSQL_DATABASE=your_database
MSSQL_USERNAME=your_username
MSSQL_PASSWORD=your_password
MSSQL_PORT=1433
MSSQL_TIMEOUT=30
MSSQL_CHARSET=UTF-8
MSSQL_AUTOCOMMIT=true

Usage

Development Mode

mcp dev src/mssql_mcp/server.py

Claude Desktop Integration

mcp install src/mssql_mcp/server.py --name "MSSQL Server"

Direct Execution

python -m mssql_mcp.server

Available Resources

  • db://schemas - List all schemas in the current database
  • db://tables/{database} - List all tables in the current database
  • db://schema_tables/{schema_name} - List tables in a specific schema
  • db://columns/{schema_name}/{table_name} - Get column information for a table
  • db://indexes/{database}/{schema_name}/{table_name} - Get index information for a table

Available Tools

  • list_databases - List all accessible databases
  • list_tables - List tables in the current database

Security

This server implements several security measures:

  • Only SELECT, DECLARE, and SET (for local variables) statements are allowed
  • SQL parsing and validation
  • Parameterized queries where possible
  • Connection string security
  • No DDL or DML operations permitted

Requirements

  • Python 3.9+
  • Access to a Microsoft SQL Server instance
  • pymssql library (automatically installed with dependencies)

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Read-only MSSQL MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mssql-mcp-server-connordaytonaholmes)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage