Skip to main content
Glama

MSSQL MCP Server

by knight0zh

MSSQL MCP サーバー

Microsoft SQL Server データベースに接続するためのモデルコンテキストプロトコル (MCP) サーバー。このサーバーは、SQL クエリの実行とデータベース接続の管理のためのツールを提供します。

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の MSSQL データベース コネクタを自動的にインストールするには:

npx -y @smithery/cli install @knight0zh/mssql-mcp-server --client claude

手動インストール

npm install mssql-mcp-server

使用法

MCP 設定構成ファイルにサーバーを追加します。

{ "mcpServers": { "mssql": { "command": "mssql-mcp-server", "env": { "MSSQL_CONNECTION_STRING": "Server=localhost;Database=master;User Id=sa;Password=yourpassword;", // Or individual connection parameters: "MSSQL_HOST": "localhost", "MSSQL_PORT": "1433", "MSSQL_DATABASE": "master", "MSSQL_USER": "sa", "MSSQL_PASSWORD": "yourpassword", "MSSQL_ENCRYPT": "false", "MSSQL_TRUST_SERVER_CERTIFICATE": "true" } } } }

ツール

クエリ

MSSQL データベースで SQL クエリを実行します。

パラメータ
  • connectionString (文字列、オプション): 完全な接続文字列 (個々のパラメータの代替)
  • host (文字列、オプション): データベースサーバーのホスト名
  • port (数値、オプション): データベースサーバのポート (デフォルト: 1433)
  • database (文字列、オプション): データベース名 (デフォルト: master)
  • username (文字列、オプション): データベースのユーザー名
  • password (文字列、オプション): データベースのパスワード
  • query (文字列、必須): 実行するSQLクエリ
  • encrypt (ブール値、オプション): 暗号化を有効にする (デフォルト: false)
  • trustServerCertificate (ブール値、オプション): 信頼サーバー証明書 (デフォルト: true)

connectionStringまたは ( host + username + password ) のいずれかを指定する必要があります。

const result = await use_mcp_tool({ server_name: 'mssql', tool_name: 'query', arguments: { host: 'localhost', username: 'sa', password: 'yourpassword', query: 'SELECT * FROM Users', }, });

発達

# Install dependencies npm install # Run in development mode npm run dev # Build npm run build # Run tests npm test # Run linter npm run lint # Format code npm run format

ライセンス

マサチューセッツ工科大学

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

SQL クエリの実行と Microsoft SQL Server データベースとの接続の管理を可能にするモデル コンテキスト プロトコル サーバー。

  1. インストール
    1. Smithery経由でインストール
    2. 手動インストール
  2. 使用法
    1. ツール
      1. クエリ
    2. 発達
      1. ライセンス

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          Enables execution of SQL queries and management of Microsoft SQL Server database connections through the Model Context Protocol.
          Last updated -
          13
          TypeScript
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables secure and structured interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries with controlled access.
          Last updated -
          20
          Python
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.
          Last updated -
          JavaScript
        • A
          security
          A
          license
          A
          quality
          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.
          Last updated -
          1
          108
          Python
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        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/knight0zh/mssql-mcp-server'

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