py-mcp-mssql

py-mcp-mssql

3.4

If you are the rightful owner of py-mcp-mssql and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol server implementation in Python that provides access to Microsoft SQL Server databases.

The Python MSSQL MCP Server is a robust implementation of the Model Context Protocol (MCP) designed to facilitate interaction with Microsoft SQL Server databases. It leverages Python's asynchronous capabilities to provide efficient database operations and integrates seamlessly with FastAPI for API endpoint management. The server is equipped with a comprehensive logging system, connection pooling, and error handling mechanisms to ensure reliable performance. It supports environment-based configuration using python-dotenv, and data validation is handled through Pydantic models. The server is particularly useful for Language Models that need to inspect table schemas and execute SQL queries through a standardized interface.

Features

  • Asynchronous operation using Python's asyncio
  • Environment-based configuration using python-dotenv
  • Comprehensive logging system
  • Connection pooling and management via pyodbc
  • FastAPI integration for API endpoints