What operations are allowed?
Only SELECT, DECLARE, and SET (for local variables) statements; no DDL or DML operations are permitted.
@ConnorDaytonaHolmes
基本信息
MCP server to interact with MSSQL
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mssql-mcp-server-connordaytonaholmes": {
"command": "python",
"args": [
"-m",
"mssql_mcp.server"
]
}
}
}List all accessible databases
List tables in the current database
An MCP server for read-only Microsoft SQL Server interactions, providing safe, read-only access to MSSQL databases through the Model Context Protocol. It is designed for developers who need to explore database schemas and run validated SELECT queries without modifying data.
Install the package with pip install -e ., create a .env file with connection details (e.g., MSSQL_SERVER, MSSQL_DATABASE, MSSQL_USERNAME, MSSQL_PASSWORD), then run the server in development mode with mcp dev src/mssql_mcp/server.py, integrate with Claude Desktop via mcp install src/mssql_mcp/server.py --name "MSSQL Server", or execute directly with python -m mssql_mcp.server.
Only SELECT, DECLARE, and SET (for local variables) statements; no DDL or DML operations are permitted.
Python 3.9+, access to a Microsoft SQL Server instance, and the pymssql library (installed automatically with the package).
Connection details are set in a `.env` file in the current directory, using environment variables like `MSSQL_SERVER`, `MSSQL_DATABASE`, `MSSQL_USERNAME`, and `MSSQL_PASSWORD`.
Yes, it uses `MSSQL_USERNAME` and `MSSQL_PASSWORD` environment variables, with secure connection handling.
Resources such as `db://schemas`, `db://tables/{database}`, `db://schema_tables/{schema_name}`, `db://columns/{schema_name}/{table_name}`, and `db://indexes/{database}/{schema_name}/{table_name}` are provided.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.

Fund Momentum MCP Server — VC intelligence for AI assistants. 1000+ active VC funds, live investor signals, AI-powered startup matching.
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
评论