ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

SQL Sentinel MCP Server

โดย tkmawarireรุ่น 2.3.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.tkmawarire/sql-sentinel

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

SQL Server monitoring and diagnostics for AI agents using Extended Events. No ODBC drivers required.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ฐานข้อมูลและชุดข้อมูล

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • Dockerติดตั้ง Docker ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "sql-sentinel": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/tkmawarire/sql-sentinel-mcp"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add sql-sentinel -- docker run -i --rm ghcr.io/tkmawarire/sql-sentinel-mcp

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "sql-sentinel": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/tkmawarire/sql-sentinel-mcp"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "sql-sentinel": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/tkmawarire/sql-sentinel-mcp"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub tkmawarire ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ฐานข้อมูลและชุดข้อมูลi

  • ดาวมากกว่า 0% ของอีก 953 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 5% ของอีก 953 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 953 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

SQL Sentinel MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (2.3.1) เข้า registry 8 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี .NET, Docker ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Supabase, MongoDB MCP Server, Elasticsearch MCP Server

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Supabase

โดย supabase

server ทางการของ Supabase ให้ AI สร้างตาราง ถามข้อมูล และดูการตั้งค่าโปรเจกต์ในฐานข้อมูล Supabase ของคุณ

บนเครื่องหรือคลาวด์★ 2,993Apache-2.0อัปเดต เมื่อวาน
ติดตั้ง

MongoDB MCP Server

โดย mongodb-js

MongoDB Model Context Protocol Server

รันบนเครื่อง★ 1,157Apache-2.0อัปเดต เมื่อวานซืน
ติดตั้ง

Elasticsearch MCP Server

โดย cr7258

MCP server for interacting with Elasticsearch

รันบนเครื่อง★ 315Apache-2.0อัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

SQL Sentinel MCP Server

A production-ready MCP (Model Context Protocol) server for SQL Server monitoring, diagnostics, and database operations. Built with .NET 9 and Microsoft.Data.SqlClient for native SQL Server connectivity — no ODBC drivers required.

Features

  • Session Management — Create, start, stop, drop, and list Extended Events sessions
  • Smart Filtering — Filter by application, database, user, duration, host, and text patterns
  • Query Fingerprinting — Normalize and group similar queries differing only in literal values
  • Sequence Analysis — Trace execution order with timing gaps and cumulative duration
  • Deadlock Detection — Capture and analyze XML deadlock reports with victim/process details
  • Blocking Analysis — Monitor blocked process events with wait resource and SQL text
  • Wait Stats — Query sys.dm_os_wait_stats directly, categorized by type (CPU, I/O, Lock, Memory, etc.)
  • Health Check — Comprehensive server diagnostic: slow queries, deadlocks, blocking, wait stats, and insights
  • Real-Time Streaming — Stream captured events for a specified duration
  • Production-Safe — Auto-excludes noise (sp_reset_connection, SET statements, trace queries)
  • Database Operations — List tables, describe schemas, query data, insert, update, and drop tables
  • AI-Optimized — Structured JSON output with optional Markdown formatting

Requirements

  • SQL Server 2012+ with Extended Events enabled (default)
  • Required permissions:
  GRANT ALTER ANY EVENT SESSION TO [your_login];

GRANT VIEW SERVER STATE TO [your_login];

- For blocked process detection:
  EXEC sp_configure 'show advanced options', 1;

RECONFIGURE; EXEC sp_configure 'blocked process threshold', 5; RECONFIGURE;

Installation

Option 1: Docker (Recommended)

No .NET SDK required. Works on any system with Docker installed.

docker pull ghcr.io/tkmawarire/sql-sentinel-mcp:latest
Claude Desktop (claude_desktop_config.json)
{

"mcpServers": { "sql-sentinel": { "command": "docker", "args": ["run", "-i", "--rm", "--network", "host", "-e", "SQL_SENTINEL_CONNECTION_STRING=Server=localhost;Database=master;User Id=sa;Password=YourPassword;TrustServerCertificate=true", "ghcr.io/tkmawarire/sql-sentinel-mcp:latest"] } } }

Claude Code
claude mcp add sql-sentinel \

-e SQL_SENTINEL_CONNECTION_STRING="Server=localhost;Database=master;User Id=sa;Password=YourPassword;TrustServerCertificate=true" \ -- docker run -i --rm --network host \ -e SQL_SENTINEL_CONNECTION_STRING \ ghcr.io/tkmawarire/sql-sentinel-mcp:latest

Network access: The -i flag is required for stdio transport. Use --network host so the container can reach SQL Server on your host machine. For remote SQL Server, omit --network host and use the accessible hostname in your connection string.

Connection string: Set SQL_SENTINEL_CONNECTION_STRING via -e. All tools read the connection string from this environment variable.

Option 2: .NET Global Tool (NuGet)

Requires .NET 9 SDK or later.

dotnet tool install -g SQLSentinel.Mcp
{

"mcpServers": { "sql-sentinel": { "command": "sql-sentinel-mcp", "env": { "SQL_SENTINEL_CONNECTION_STRING": "Server=localhost;Database=master;User Id=sa;Password=YourPassword;TrustServerCertificate=true" } } } }

Option 3: Build from Source
git clone https://github.com/tkmawarire/sql-sentinel.git

cd sql-sentinel dotnet build

Run directly:

dotnet run --project SqlServer.Profiler.Mcp/

Or publish a self-contained single binary:

# Windows

dotnet publish SqlServer.Profiler.Mcp/ -c Release -r win-x64 --self-contained

Linux

dotnet publish SqlServer.Profiler.Mcp/ -c Release -r linux-x64 --self-contained

macOS (Apple Silicon)

dotnet publish SqlServer.Profiler.Mcp/ -c Release -r osx-arm64 --self-contained

macOS (Intel)

dotnet publish SqlServer.Profiler.Mcp/ -c Release -r osx-x64 --self-contained

Output will be in bin/Release/net9.0/{runtime}/publish/

Connection Strings

All tools read the connection string from the SQL_SENTINEL_CONNECTION_STRING environment variable. Set it once before starting the server:

export SQL_SENTINEL_CONNECTION_STRING="Server=localhost;Database=master;User Id=sa;Password=YourPassword;TrustServerCertificate=false;Encrypt=true"

SQL Authentication:

Server=localhost;Database=master;User Id=sa;Password=YourPassword;TrustServerCertificate=false;Encrypt=true

Windows Authentication:

Server=localhost;Database=master;Integrated Security=true;TrustServerCertificate=false;Encrypt=true

Note: Only use TrustServerCertificate=true in development environments with self-signed certificates.

For production, always use TrustServerCertificate=false with a valid SSL certificate.

Azure SQL:

Server=yourserver.database.windows.net;Database=yourdb;User Id=user;Password=password;Encrypt=true

MCP Tools Reference

Session Lifecycle
ToolDescription
sqlsentinel_create_sessionCreate an Extended Events session with filters (not started)
sqlsentinel_start_sessionStart capturing events for an existing session
sqlsentinel_stop_sessionStop capturing; events are retained
sqlsentinel_drop_sessionDrop session and discard all events
sqlsentinel_list_sessionsList all MCP-created sessions with state and buffer usage
sqlsentinel_quick_captureCreate and start a session in one step
Event Retrieval
ToolDescription
sqlsentinel_get_eventsRetrieve captured events with filtering, sorting, and deduplication
sqlsentinel_get_statsAggregate statistics grouped by fingerprint, database, app, or login
sqlsentinel_analyze_sequenceAnalyze query execution sequence with timing and gaps
sqlsentinel_get_connection_infoList databases, applications, logins, sessions, and blocking info
sqlsentinel_stream_eventsReal-time event capture for a specified duration (1–300s)
Diagnostics
ToolDescription
sqlsentinel_get_deadlocksRetrieve deadlock events with victim, processes, locks, and SQL text
sqlsentinel_get_blockingRetrieve blocked process events with wait resources and SQL text
sqlsentinel_get_wait_statsQuery sys.dm_os_wait_stats categorized by type (no session required)
sqlsentinel_health_checkComprehensive report: slow queries, deadlocks, blocking, wait stats, insights
Permissions
ToolDescription
sqlsentinel_check_permissionsCheck current login permissions and blocked process threshold config
sqlsentinel_grant_permissionsGrant required permissions to a login (requires sysadmin)
Database Operations
ToolDescription
sqlsentinel_list_tablesList all user tables in the database (schema-qualified)
sqlsentinel_describe_tableDetailed table schema: columns, indexes, constraints, foreign keys
sqlsentinel_create_tableCreate a new table via CREATE TABLE statement
sqlsentinel_insert_dataInsert data via INSERT statement
sqlsentinel_read_dataExecute SELECT queries and return results
sqlsentinel_update_dataUpdate data via UPDATE statement
sqlsentinel_drop_tableDrop a table via DROP TABLE statement

Usage Examples

Quick Debug Session
Agent: sqlsentinel_quick_capture(

sessionName: "debug_api", applications: "MyWebApp", minDurationMs: 100 )

// User triggers the slow operation

Agent: sqlsentinel_get_events( sessionName: "debug_api", sortBy: "DurationDesc", limit: 20 )

Agent: sqlsentinel_drop_session(sessionName: "debug_api")

Find N+1 Queries
Agent: sqlsentinel_quick_capture(

sessionName: "n_plus_one_check", databases: "OrdersDB" )

// User loads a page

Agent: sqlsentinel_get_stats( sessionName: "n_plus_one_check", groupBy: "QueryFingerprint" )

// Look for queries with high execution counts

Trace Specific Operation
Agent: sqlsentinel_analyze_sequence(

sessionName: "my_session", correlationId: "order-12345", responseFormat: "Markdown" )

Deadlock Detection
Agent: sqlsentinel_quick_capture(

sessionName: "deadlock_monitor", eventTypes: "Deadlock" )

// Wait for deadlocks to occur

Agent: sqlsentinel_get_deadlocks( sessionName: "deadlock_monitor", responseFormat: "Markdown" )

Blocking Analysis
Agent: sqlsentinel_quick_capture(

sessionName: "blocking_check", eventTypes: "BlockedProcess" )

// Requires: sp_configure 'blocked process threshold', 5

Agent: sqlsentinel_get_blocking( sessionName: "blocking_check", responseFormat: "Markdown" )

Server Health Check
Agent: sqlsentinel_health_check(

sessionName: "my_session", slowQueryThresholdMs: 1000, responseFormat: "Markdown" )

Database Operations
Agent: sqlsentinel_list_tables()

Agent: sqlsentinel_describe_table( name: "dbo.Products" )

Agent: sqlsentinel_read_data( sql: "SELECT TOP 10 * FROM dbo.Products ORDER BY CreatedDate DESC" )

Wait Stats (No Session Required)
Agent: sqlsentinel_get_wait_stats(

topN: 20, responseFormat: "Markdown" )

Query Fingerprinting

Queries are normalized to group similar ones:

-- These become one fingerprint:

SELECT * FROM Users WHERE id = 123 SELECT * FROM Users WHERE id = 456

-- Fingerprint: abc123:SELECT * FROM Users WHERE id = ? -- Execution count: 2

Noise Filtering

Default excluded patterns (when excludeNoise=true):

  • sp_reset_connection — Connection pool reset
  • SET TRANSACTION ISOLATION LEVEL — Session setup
  • SET NOCOUNT, SET ANSI_* — Client configuration
  • sp_trace_*, fn_trace_* — Trace system queries

Supported Event Types

SqlBatchCompleted, RpcCompleted, SqlStatementCompleted, SpStatementCompleted, Attention, ErrorReported, Deadlock, BlockedProcess, LoginEvent, SchemaChange, Recompile, AutoStats

Project Structure

sql-profiler-mcp/

├── .github/ │ └── workflows/ │ ├── docker.yml # Build & push multi-arch Docker images │ └── publish-mcp-registry.yml # Publish NuGet + MCP registry ├── .mcp/ │ └── server.json # MCP manifest (NuGet + OCI packages) ├── SqlServer.Profiler.Mcp/ # Main MCP server (stdio transport) │ ├── SqlServer.Profiler.Mcp.csproj │ ├── Program.cs # Entry point, DI setup, MCP config │ ├── Models/ │ │ ├── ProfilerModels.cs # Records, enums, data models │ │ └── DbOperationResult.cs # Result model for CRUD operations │ ├── Services/ │ │ ├── ProfilerService.cs # Core Extended Events logic │ │ ├── QueryFingerprintService.cs # SQL normalization & fingerprinting │ │ ├── WaitStatsService.cs # DMV-based wait stats analysis │ │ ├── SessionConfigStore.cs # In-memory session config storage │ │ └── EventStreamingService.cs # Real-time event streaming │ ├── Utilities/ │ │ └── SqlInputValidator.cs # SQL input validation & escaping │ └── Tools/ │ ├── SessionManagementTools.cs # Session lifecycle tools (6) │ ├── EventRetrievalTools.cs

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx