SQL Server MCP

Integrations

  • Enables Windsurf (Codeium's AI assistant) to connect to and interact with Microsoft SQL Server databases.

  • Offers GitHub integration for issue reporting and troubleshooting related to the MCP server functionality.

mcp-node-mssql

使用法

カーソル

詳細については、公式の Cursor ドキュメントを参照してください。

  1. mcp.jsonファイルを開きます (または作成します) (このファイルは~/.cursor/mcp.jsonまたは<project-root>/.cursor/mcp.jsonにありますが、詳細については Cursor のドキュメントを参照してください)。
  2. 次の詳細を追加してファイルを保存します。
{ "mcpServers": { "mssql": { "command": "npx", "args": [ "-y", "mcp-node-mssql" ], "env": { "DB_HOST": "localhost", "DB_PORT": "1433", "DB_USERNAME": "<username>", "DB_PASSWORD": "<password>", "DB_DATABASE": "<database>" } } } }

ウィンドサーフィン

詳細については、 Windsurf の公式ドキュメントを参照してください。

  1. Windsurf MCP Configuration Panelを開く
  2. Add custom serverクリックします。
  3. 次の詳細を追加してファイルを保存します。
{ "mcpServers": { "mssql": { "command": "npx", "args": [ "-y", "mcp-node-mssql" ], "env": { "DB_HOST": "localhost", "DB_PORT": "1433", "DB_USERNAME": "<username>", "DB_PASSWORD": "<password>", "DB_DATABASE": "<database>" } } } }

クロード・コード

詳細については、 Claude Code の公式ドキュメントを参照してください。

Claude Code CLIから新しいMCPサーバーを追加することもできますが、jsonファイルを直接変更する方が簡単です。

  1. Claude Code 構成ファイルを開きます ( ~/.claude.jsonにあります)。
  2. projects > mcpServersセクションを見つけて、次の詳細を追加し、ファイルを保存します。
{ "projects": { "mcpServers": { "mssql": { "command": "npx", "args": [ "-y", "mcp-node-mssql" ], "env": { "DB_HOST": "localhost", "DB_PORT": "1433", "DB_USERNAME": "<username>", "DB_PASSWORD": "<password>", "DB_DATABASE": "<database>" } } } } }

問題とトラブルシューティング

他のことを行う前に、最新バージョンを実行していることを確認してください。

この MCP サーバーの使用中に問題が発生した場合は、 GitHubで問題を報告してください。

発達

インストール

npm install

建てる

npm run build

開発サーバーをローカルで実行する

公開されたパッケージを使用するのではなく、MCP サーバーのローカル開発バージョンをテストするには、次の手順に従います。

  1. プロジェクトをビルドします。
npm run build
  1. ローカル ビルドを参照するようにmcp.jsonファイルを作成または変更します。
{ "mcpServers": { "mssql": { "command": "node", "args": [ "/path/to/your/local/mcp-node-mssql/dist/index.js" ], "env": { "DB_HOST": "localhost", "DB_PORT": "1433", "DB_USERNAME": "<username>", "DB_PASSWORD": "<password>", "DB_DATABASE": "<database>" } } } }
  1. このmcp.jsonファイルを次のいずれかの場所に配置します。
    • カーソルの場合: ホームディレクトリ ( ~/.cursor/mcp.json ) またはプロジェクトディレクトリ ( .cursor/mcp.json )
    • Windsurfの場合:MCP構成パネルを使用してカスタムサーバーを追加します
  2. 新しい構成をロードするには、AI アシスタント (Cursor または Windsurf) を再起動します。

これにより、新しいバージョンを公開しなくても、MCP サーバーへの変更を即座にテストできます。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

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

環境設定可能な接続を介して接続を提供することで、AI アシスタント (Cursor、Windsurf、Claude Code) が Microsoft SQL Server データベースと対話できるようにするモデル コンテキスト プロトコル サーバー。

  1. Usage
    1. Cursor
    2. Windsurf
    3. Claude Code
  2. Issues and Troubleshooting
    1. Development
      1. Installation
      2. Build
      3. Running the Development Server Locally

    Related MCP Servers

    • -
      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 -
      12
      Python
      MIT License
      • Linux
      • Apple
    • 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
      30
      Python
      MIT License
      • Linux
      • Apple
    • -
      security
      -
      license
      -
      quality
      A Model Context Protocol server that enables AI assistants to securely interact with ClickHouse databases, supporting table exploration and SQL query execution through a controlled interface.
      Last updated -
      6
      Python
      Apache 2.0
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.
      Last updated -
      6
      TypeScript
      MIT License

    View all related MCP servers

    ID: o4qk49s0sp