Skip to main content
Glama
cwilby

SQL Server MCP

by cwilby

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>"
        }
      }
    }
  }
}

Related MCP server: Microsoft SQL Server MCP Server

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

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

この 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 サーバーへの変更を即座にテストできます。

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
1dResponse time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

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

  • A
    license
    -
    quality
    D
    maintenance
    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.
    56
    MIT
  • 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
    381
    MIT
  • A
    license
    -
    quality
    F
    maintenance
    A Model Context Protocol server that enables LLMs like Claude to interact with SQLite and SQL Server databases, allowing for schema inspection and SQL query execution.
    853
    379
    MIT
  • F
    license
    -
    quality
    C
    maintenance
    A Model Context Protocol server that allows Large Language Models like Claude to execute SQL queries, explore database schemas, and maintain persistent connections to SQL Server databases.

View all related MCP servers

Related MCP Connectors

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

  • A Model Context Protocol server for Wix AI tools

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

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/cwilby/mcp-node-mssql'

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