プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

SQL Server MCP (Windows)

作者:TharanaBopeバージョン 1.0.4i★ –iパソコンで動く
レジストリ名io.github.TharanaBope/sql-server-mcp

インストール

概要

作者による説明(英語の原文)

SQL Server MCP with RAG capabilities for Windows (native ODBC support)

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: データベース・データセット

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "sql": {
      "command": "npx",
      "args": [
        "-y",
        "@tharanabopearachchi/sql-server-mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add sql -- npx -y @tharanabopearachchi/sql-server-mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "sql": {
      "command": "npx",
      "args": [
        "-y",
        "@tharanabopearachchi/sql-server-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "sql": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tharanabopearachchi/sql-server-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント TharanaBope で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

データベース・データセットのほかのサーバーとの比較i

  • このカテゴリのほかの953件のうち0%よりスターが多い
  • このカテゴリのほかの953件のうち10%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの953件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

SQL Server MCP (Windows)は安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.4)がレジストリに届いたのは7 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Supabase, MongoDB MCP Server, Elasticsearch MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Supabase

作者:supabase

MCP server for interacting with the Supabase platform

パソコンでもクラウドでも★ 2,993Apache-2.0昨日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

SQL Server MCP - Cross-Platform Database Integration for AI

A Model Context Protocol (MCP) server implementation for SQL Server that enables AI assistants to explore and query SQL Server databases through natural language. Built as a RAG (Retrieval-Augmented Generation) system optimized for database knowledge exploration.

🌟 Features

  • 🔍 Schema Exploration - List databases, tables, views, stored procedures
  • 🔗 Relationship Mapping - Discover foreign key relationships and table dependencies
  • 🔎 Search & Discovery - Global schema search across tables, columns, procedures
  • ⚡ Safe Query Execution - Read-only SELECT queries with automatic timeouts and row limits
  • 🗄️ Schema Caching - Fast retrieval with configurable TTL (default: 60 minutes)
  • 🔐 Security First - Read-only by default, SQL injection prevention, query validation
  • 🖥️ Cross-Platform - Native Windows Authentication & macOS Docker support

🎥 Demo

See SQL Server MCP in action with AI assistant integration:

Note: Watch how natural language queries instantly explore database schemas, find relationships, and retrieve data - all without leaving your AI assistant!

🚀 Quick Start

This repository contains two platform-specific implementations:

Windows Version → sql-server-mcp/
  • ✅ Windows Authentication (ODBC Driver 17)
  • ✅ SQL Server Authentication
  • ✅ Native msnodesqlv8 driver for optimal performance
  • 📖 Windows Setup Guide
macOS Version → sql-server-mcp-mac/
  • ✅ SQL Server Authentication (Docker required)
  • ✅ Pure JavaScript mssql driver (no native dependencies)
  • 📖 macOS Setup Guide

📦 Installation

🎉 Now Available on MCP Registry!

This server is officially published in the Model Context Protocol Registry:

  • Windows: io.github.TharanaBope/sql-server-mcp
  • macOS: io.github.TharanaBope/sql-server-mcp-macos
🚀 Quick Start (Recommended)

No installation needed! Just add to your AI assistant's configuration:

Claude Desktop (Windows)

Config Location: %APPDATA%\Claude\claude_desktop_config.json

{

"mcpServers": { "sql-server": { "command": "npx", "args": ["-y", "@tharanabopearachchi/sql-server-mcp@latest"], "env": { "SQL_SERVER": "localhost", "SQL_DATABASE": "master", "SQL_USE_WINDOWS_AUTH": "true" } } } }

Claude Desktop (macOS)

Config Location: ~/Library/Application Support/Claude/claude_desktop_config.json

{

"mcpServers": { "sql-server": { "command": "npx", "args": ["-y", "@tharanabopearachchi/sql-server-mcp-macos@latest"], "env": { "SQL_SERVER": "localhost", "SQL_DATABASE": "master", "SQL_USE_WINDOWS_AUTH": "false", "SQL_USERNAME": "sa", "SQL_PASSWORD": "your_password" } } } }

LM Studio Configuration

Config Location: Varies by platform

  • Windows: %USERPROFILE%\.lmstudio\config.json
  • macOS: ~/.lmstudio/config.json
{

"mcpServers": { "sql-server": { "command": "npx", "args": ["-y", "@tharanabopearachchi/sql-server-mcp@latest"], "env": { "SQL_SERVER": "localhost", "SQL_DATABASE": "master", "SQL_USE_WINDOWS_AUTH": "true", "SQL_USERNAME": "", "SQL_PASSWORD": "" } } } }

VS Code with Continue Extension

Config Location: ~/.continue/config.json

{

"experimental": { "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "npx", "args": ["-y", "@tharanabopearachchi/sql-server-mcp@latest"] }, "env": { "SQL_SERVER": "localhost", "SQL_DATABASE": "master", "SQL_USE_WINDOWS_AUTH": "true" } } ] } }

Cursor IDE

Config Location: Cursor Settings → Features → Model Context Protocol

{

"mcpServers": { "sql-server": { "command": "npx", "args": ["-y", "@tharanabopearachchi/sql-server-mcp@latest"], "env": { "SQL_SERVER": "localhost", "SQL_DATABASE": "master", "SQL_USE_WINDOWS_AUTH": "true" } } } }

Cline (VS Code Extension)

Config Location: VS Code Settings → Cline → MCP Settings

{

"mcpServers": { "sql-server": { "command": "npx", "args": ["-y", "@tharanabopearachchi/sql-server-mcp@latest"], "env": { "SQL_SERVER": "localhost", "SQL_DATABASE": "master", "SQL_USE_WINDOWS_AUTH": "true" } } } }

Restart your AI assistant and you're ready to go!

🛠️ Development Setup

For development or local modifications:

Windows
cd sql-server-mcp

npm install npm run build

👉 **[Complete Windows Setup Instructions](./sql-server-mcp/README.md)**
macOS
cd sql-server-mcp-mac

npm install npm run build

👉 **[Complete macOS Setup Instructions](./sql-server-mcp-mac/README.md)**

🛠️ Available MCP Tools

The server provides 12 powerful tools for database exploration:

Schema Exploration
  • list_databases - Discover all available databases
  • list_tables - View tables with row counts
  • describe_table - Get detailed schema (columns, types, constraints, indexes)
  • list_views - List all views
  • list_stored_procedures - List stored procedures with metadata
  • get_procedure_definition - Get full SQL definition
  • get_database_overview - High-level statistics
Relationship Mapping
  • get_table_relationships - Get foreign key relationships (incoming & outgoing)
  • get_related_tables - Find directly connected tables
Search & Discovery
  • search_schema - Search across tables, columns, views, procedures
  • find_column_usage - Find all tables containing a specific column
Query Execution
  • execute_query - Execute read-only SELECT queries safely

💬 Example Usage

Once configured, you can ask your AI assistant:

"What databases are available on this server?"

"Show me all tables in the Sales database"

"What's the schema of the Orders table?"

"Find all tables that reference the Customers table"

"Search for any columns related to 'email'"

"Execute: SELECT TOP 10 * FROM Products ORDER BY Price DESC"

⚙️ Configuration

Both versions use environment variables for configuration:

SQL_SERVER=localhost

SQL_DATABASE=master SQL_PORT=1433 SQL_USE_WINDOWS_AUTH=true # Windows only SQL_USERNAME= # For SQL Auth SQL_PASSWORD= # For SQL Auth QUERY_TIMEOUT=30 MAX_RESULT_ROWS=1000 ENABLE_SCHEMA_CACHE=true CACHE_TTL_MINUTES=60

See platform-specific READMEs for detailed configuration instructions.

🔐 Security Features

  • ✅ Read-only by default - Write operations disabled unless explicitly enabled
  • ✅ Query validation - Only SELECT statements allowed by default
  • ✅ Automatic timeouts - Prevents long-running queries
  • ✅ Row limits - Prevents memory exhaustion
  • ✅ SQL injection prevention - Query sanitization and validation
  • ✅ Database whitelisting - Optional restriction to specific databases

🏗️ Architecture

MCP/

├── sql-server-mcp/ # Windows implementation │ ├── src/ │ │ ├── index.ts # MCP server entry point │ │ ├── database/ # Connection, caching, queries │ │ ├── tools/ # 12 MCP tools │ │ └── types/ # TypeScript interfaces │ ├── dist/ # Compiled output │ ├── package.json │ └── README.md # Windows documentation │ ├── sql-server-mcp-mac/ # macOS implementation │ ├── src/ # Same structure as Windows │ └── README.md # macOS documentation │ ├── LICENSE # MIT License └── README.md # This file

🎯 Use Cases

Database Exploration
  • "What tables exist in this database?"
  • "Show me the structure of the Users table"
  • "List all stored procedures"
Schema Research
  • "Find all tables with an 'email' column"
  • "Search for anything related to 'invoice'"
  • "What views are available?"
Relationship Analysis
  • "How are Orders and Customers related?"
  • "Show me all tables that reference Products"
  • "What are the foreign key relationships for this table?"
Data Queries
  • "Get the top 10 most expensive products"
  • "Show me recent orders"
  • "What's the total count of records in each table?"

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📚 Resources

  • Windows Setup Guide: sql-server-mcp/README.md
  • macOS Setup Guide: sql-server-mcp-mac/README.md
  • Troubleshooting: Check platform-specific TROUBLESHOOTING.md files
  • MCP Documentation: https://github.com/modelcontextprotocol
  • Report Issues: https://github.com/TharanaBope/SQL-MCP-Mac-Windows/issues

🌐 Platform-Specific Documentation

PlatformDirectoryKey Features
Windowssql-server-mcp/Windows Auth, ODBC Driver, Native performance
macOSsql-server-mcp-mac/Docker SQL Server, Pure JS, No native deps

Made with ❤️ for the MCP community

⭐ Star this repo if you find it useful! 🐛 Report bugs via Issues 💬 Questions? Check the Discussions

PopNxに聞く