Skip to main content
Glama
JexinSam

MSSQL MCP Server

by JexinSam

Тесты

MSSQL MCP-сервер

MSSQL MCP Server — это сервер Model Context Protocol (MCP) , который обеспечивает безопасное и структурированное взаимодействие с базами данных Microsoft SQL Server (MSSQL) . Он позволяет помощникам ИИ:

  • Список доступных таблиц

  • Прочитать содержимое таблицы

  • Выполнение SQL-запросов с контролируемым доступом

Это обеспечивает более безопасное исследование базы данных, строгое соблюдение разрешений и протоколирование взаимодействий с базой данных.

Функции

  • Безопасный доступ к базе данных MSSQL через переменные среды

  • Контролируемое выполнение запросов с обработкой ошибок

  • Список таблиц и извлечение данных

  • Комплексное ведение журнала для мониторинга запросов и операций

Related MCP server: MCP SQL Server

Установка

pip install mssql-mcp-server

Конфигурация

Установите следующие переменные среды для настройки доступа к базе данных:

MSSQL_DRIVER=mssql_driver
MSSQL_HOST=localhost
MSSQL_USER=your_username
MSSQL_PASSWORD=your_password
MSSQL_DATABASE=your_database
#optional
TrustServerCertificate=yes
Trusted_Connection=no

Использование

С Клодом Десктопом

Для интеграции с Claude Desktop добавьте эту конфигурацию в claude_desktop_config.json :

{
  "mcpServers": {
    "mssql": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/mssql_mcp_server",
        "run",
        "mssql_mcp_server"
      ],
      "env": {
        "MSSQL_DRIVER": "mssql_driver",
        "MSSQL_HOST": "localhost",
        "MSSQL_USER": "your_username",
        "MSSQL_PASSWORD": "your_password",
        "MSSQL_DATABASE": "your_database"
      }
    }
  }
}

Работает как автономный сервер

# Install dependencies
pip install -r requirements.txt

# Run the server
python -m mssql_mcp_server

Разработка

# Clone the repository
git clone https://github.com/yourusername/mssql_mcp_server.git
cd mssql_mcp_server

# Set up a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install development dependencies
pip install -r requirements-dev.txt

# Run tests
pytest

Соображения безопасности

  • Используйте выделенного пользователя MSSQL с минимальными привилегиями.

  • Никогда не используйте учетные данные root или полные административные учетные записи.

  • Ограничьте доступ к базе данных только необходимыми операциями.

  • Включите ведение журнала и аудит для мониторинга безопасности.

  • Регулярно проверяйте разрешения , чтобы обеспечить доступ с минимальными привилегиями.

Лучшие практики безопасности

Для безопасной настройки:

  1. Создайте отдельного пользователя MSSQL с ограниченными правами.

  2. Избегайте жесткого кодирования учетных данных — вместо этого используйте переменные среды.

  3. Ограничьте доступ только к необходимым таблицам и операциям.

  4. Включите ведение журнала и мониторинг SQL Server для аудита.

  5. Регулярно проверяйте доступ к базе данных , чтобы предотвратить несанкционированный доступ.

Подробные инструкции см. в Руководстве по настройке безопасности MSSQL .

⚠️ ВАЖНО: Всегда следуйте принципу наименьших привилегий при настройке доступа к базе данных.

Лицензия

Этот проект лицензирован по лицензии MIT . Подробности смотрите в файле LICENSE .

Внося вклад

Мы приветствуем вклады! Чтобы внести свой вклад:

  1. Создайте форк репозитория.

  2. Создайте ветку функций: git checkout -b feature/amazing-feature

  3. Зафиксируйте изменения: git commit -m 'Add amazing feature'

  4. Отправка в ветку: git push origin feature/amazing-feature

  5. Откройте запрос на извлечение .


Нужна помощь?

Если у вас возникли вопросы или проблемы, смело открывайте GitHub Issue или обращайтесь к разработчикам.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • The HubSpot MCP Server acts as a bridge that enables AI assistants and Large Language Models to securely interact with HubSpot CRM data through natural conversation, without requiring users to understand complex API structures. It provides read-only access to standard CRM objects (contacts, companies, deals, tickets, products, invoices, and more) and their associations, secured via OAuth 2.0, allowing AI agents to perform tasks like summarizing deals, fetching company updates, and looking up record changes.

  • The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.
    1
    386
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides AI assistants with comprehensive access to SQL databases, enabling schema inspection, query execution, and database operations with enterprise-grade security.
    46
    7
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides comprehensive access to Microsoft SQL Server databases, enabling Language Models to inspect schemas, execute queries, manage database objects, and perform advanced database operations.
    8
  • A
    license
    Not graded
    quality
    F
    maintenance
    A Model Context Protocol (MCP) server that enables AI agents to interact with Microsoft SQL Server databases through secure, intelligent database operations. This server provides comprehensive CRUD capabilities, schema introspection, stored procedure execution, transaction management, and bulk opera
    829
    40
    MIT

Latest Blog Posts

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/JexinSam/mssql_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server