Supabase
server ทางการของ Supabase ให้ AI สร้างตาราง ถามข้อมูล และดูการตั้งค่าโปรเจกต์ในฐานข้อมูล Supabase ของคุณ
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
SQL Server monitoring and diagnostics for AI agents using Extended Events. No ODBC drivers required.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด 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/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"sql-sentinel": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tkmawarire/sql-sentinel-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .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 หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub tkmawarire ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 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
server ทางการของ Supabase ให้ AI สร้างตาราง ถามข้อมูล และดูการตั้งค่าโปรเจกต์ในฐานข้อมูล Supabase ของคุณ
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
sys.dm_os_wait_stats directly, categorized by type (CPU, I/O, Lock, Memory, etc.)sp_reset_connection, SET statements, trace queries) 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;
No .NET SDK required. Works on any system with Docker installed.
docker pull ghcr.io/tkmawarire/sql-sentinel-mcp:latest
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 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
-iflag is required for stdio transport. Use--network hostso the container can reach SQL Server on your host machine. For remote SQL Server, omit--network hostand use the accessible hostname in your connection string.
Connection string: Set
SQL_SENTINEL_CONNECTION_STRINGvia-e. All tools read the connection string from this environment variable.
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" } } } }
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
dotnet publish SqlServer.Profiler.Mcp/ -c Release -r linux-x64 --self-contained
dotnet publish SqlServer.Profiler.Mcp/ -c Release -r osx-arm64 --self-contained
dotnet publish SqlServer.Profiler.Mcp/ -c Release -r osx-x64 --self-contained
Output will be in bin/Release/net9.0/{runtime}/publish/
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=truein development environments with self-signed certificates.
For production, always use
TrustServerCertificate=falsewith a valid SSL certificate.
Azure SQL:
Server=yourserver.database.windows.net;Database=yourdb;User Id=user;Password=password;Encrypt=true
| Tool | Description |
|---|---|
sqlsentinel_create_session | Create an Extended Events session with filters (not started) |
sqlsentinel_start_session | Start capturing events for an existing session |
sqlsentinel_stop_session | Stop capturing; events are retained |
sqlsentinel_drop_session | Drop session and discard all events |
sqlsentinel_list_sessions | List all MCP-created sessions with state and buffer usage |
sqlsentinel_quick_capture | Create and start a session in one step |
| Tool | Description |
|---|---|
sqlsentinel_get_events | Retrieve captured events with filtering, sorting, and deduplication |
sqlsentinel_get_stats | Aggregate statistics grouped by fingerprint, database, app, or login |
sqlsentinel_analyze_sequence | Analyze query execution sequence with timing and gaps |
sqlsentinel_get_connection_info | List databases, applications, logins, sessions, and blocking info |
sqlsentinel_stream_events | Real-time event capture for a specified duration (1–300s) |
| Tool | Description |
|---|---|
sqlsentinel_get_deadlocks | Retrieve deadlock events with victim, processes, locks, and SQL text |
sqlsentinel_get_blocking | Retrieve blocked process events with wait resources and SQL text |
sqlsentinel_get_wait_stats | Query sys.dm_os_wait_stats categorized by type (no session required) |
sqlsentinel_health_check | Comprehensive report: slow queries, deadlocks, blocking, wait stats, insights |
| Tool | Description |
|---|---|
sqlsentinel_check_permissions | Check current login permissions and blocked process threshold config |
sqlsentinel_grant_permissions | Grant required permissions to a login (requires sysadmin) |
| Tool | Description |
|---|---|
sqlsentinel_list_tables | List all user tables in the database (schema-qualified) |
sqlsentinel_describe_table | Detailed table schema: columns, indexes, constraints, foreign keys |
sqlsentinel_create_table | Create a new table via CREATE TABLE statement |
sqlsentinel_insert_data | Insert data via INSERT statement |
sqlsentinel_read_data | Execute SELECT queries and return results |
sqlsentinel_update_data | Update data via UPDATE statement |
sqlsentinel_drop_table | Drop a table via DROP TABLE statement |
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")
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
Agent: sqlsentinel_analyze_sequence(
sessionName: "my_session", correlationId: "order-12345", responseFormat: "Markdown" )
Agent: sqlsentinel_quick_capture(
sessionName: "deadlock_monitor", eventTypes: "Deadlock" )
// Wait for deadlocks to occur
Agent: sqlsentinel_get_deadlocks( sessionName: "deadlock_monitor", responseFormat: "Markdown" )
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" )
Agent: sqlsentinel_health_check(
sessionName: "my_session", slowQueryThresholdMs: 1000, responseFormat: "Markdown" )
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" )
Agent: sqlsentinel_get_wait_stats(
topN: 20, responseFormat: "Markdown" )
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
Default excluded patterns (when excludeNoise=true):
sp_reset_connection — Connection pool resetSET TRANSACTION ISOLATION LEVEL — Session setupSET NOCOUNT, SET ANSI_* — Client configurationsp_trace_*, fn_trace_* — Trace system queriesSqlBatchCompleted, RpcCompleted, SqlStatementCompleted, SpStatementCompleted, Attention, ErrorReported, Deadlock, BlockedProcess, LoginEvent, SchemaChange, Recompile, AutoStats
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