MSSQL MCP Server
Provides containerization support for the MCP server, enabling deployment as a Docker container with specified environment variables and configuration.
Uses Mermaid diagrams to visualize the architecture and data flow between the user, agent, container, and database.
Built on Python 3.11+, serving as the foundation for the MCP server implementation that connects to Microsoft SQL Server databases.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MSSQL MCP Serverlist all tables in the sales database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MSSQL MCP Server
This project is an MCP (Model Context Protocol) server for connecting to Microsoft SQL Server databases. It uses MCPO to introduce an OpenAPI proxy in front of the MCP server, enabling OpenAPI-compatible clients to interact with the MCP server via a standardized HTTP interface. The server provides tools for schema inspection and querying, all accessible via the MCP protocol or through the OpenAPI proxy.
Diagram
flowchart LR
User --> |Prompt| Agent
Agent --> |OpenAPI| Container
Container --> |T-SQL| DatabaseRelated MCP server: mcp-sqlserver
Features
Connects to Microsoft SQL Server using MCP
Provides tools for querying and schema inspection
Designed for integration with MCP-compatible clients
Container-ready (Docker)
Available Tools
read_query: Execute SELECT queries on the MSSQL database
list_tables: List all existing tables and their columns
Required Environment Variables
Set the following environment variables to configure the database connection:
MSSQL_SERVER(name.database.windows.net)MSSQL_DATABASE(Name)MSSQL_USER(Username)MSSQL_PASSWORD(Password)MCP_SERVER_NAME(mcp-database-assistant)MCP_SERVER_VERSION(1.0.0)APPLICATIONINSIGHTS_CONNECTION_STRING(InstrumentationKey=...)
These can be set in your environment or injected at container runtime.
Building and Running with Docker
Build the Docker image:
docker build -t mssql-mcp .Run the container:
docker run --rm -it mssql-mcpDefault command: The container runs:
mcpo --config config.json
Requirements
Python 3.11+
Microsoft ODBC Driver 17 for SQL Server (installed in the Docker image)
MCP-compatible client (for example, VS Code with MCP extension)
License
See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceA FastMCP-based server that enables executing Microsoft SQL Server data queries and table structure queries through a standardized MCP protocol interface.Last updated5MIT
- FlicenseAqualityDmaintenanceAn MCP server for Microsoft SQL Server that enables executing read-only queries, listing tables, and describing database schemas. It offers specialized support for custom ports and multiple authentication methods including SQL credentials, NTLM, and Windows Integrated Auth.Last updated3
- Alicense-qualityBmaintenanceMCP server for SQL Server database inspection and querying, with connection pooling, security features, and a web manager UI.Last updated4MIT
- Flicense-qualityDmaintenanceAn MCP server that enables querying SQL Server databases via tools for table search, SELECT execution, and table info retrieval.Last updated
Related MCP Connectors
An MCP server giving access to Grafana dashboards, data and more.
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
MCP server for managing Prisma Postgres.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ralacher/mssql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server