AI Skill Hub 强烈推荐:SQL Server性能监控工具 是一款优质的MCP工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
SQL Server性能监控工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
SQL Server性能监控工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/erikdarlingdata/PerformanceMonitor
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"sql-server------": {
"command": "npx",
"args": ["-y", "performancemonitor"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 SQL Server性能监控工具 执行以下任务... Claude: [自动调用 SQL Server性能监控工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"sql_server______": {
"command": "npx",
"args": ["-y", "performancemonitor"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/stargazers"><img src="https://img.shields.io/github/stars/erikdarlingdata/PerformanceMonitor?style=for-the-badge&logo=github&color=gold&logoColor=black" alt="GitHub Stars"></a> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/network/members"><img src="https://img.shields.io/github/forks/erikdarlingdata/PerformanceMonitor?style=for-the-badge&logo=github" alt="GitHub Forks"></a> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/blob/main/LICENSE"><img src="https://img.shields.io/github/license/erikdarlingdata/PerformanceMonitor?style=for-the-badge" alt="License: MIT"></a> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/releases/latest"><img src="https://img.shields.io/github/v/release/erikdarlingdata/PerformanceMonitor?style=for-the-badge" alt="Latest Release"></a> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/issues"><img src="https://img.shields.io/github/issues/erikdarlingdata/PerformanceMonitor?style=for-the-badge" alt="Open Issues"></a> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/commits/main"><img src="https://img.shields.io/github/last-commit/erikdarlingdata/PerformanceMonitor?style=for-the-badge" alt="Last Commit"></a> <a href="https://github.com/erikdarlingdata/PerformanceMonitor/actions/workflows/build.yml"><img src="https://img.shields.io/github/actions/workflow/status/erikdarlingdata/PerformanceMonitor/build.yml?style=for-the-badge&label=CI" alt="CI"></a> </p> <p align="center"> <a href="https://x.com/erikdarlingdata"><img src="https://img.shields.io/badge/Follow_%40ErikDarlingData-black?style=for-the-badge&logo=x&logoColor=white" alt="Follow @ErikDarlingData on X"></a> <a href="https://www.youtube.com/@ErikDarlingData"><img src="https://img.shields.io/badge/YouTube-Subscribe-red?style=for-the-badge&logo=youtube&logoColor=white" alt="YouTube Subscribe"></a> <a href="https://www.linkedin.com/in/erik-darling-data/"><img src="https://img.shields.io/badge/LinkedIn-Connect-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn Connect"></a> <a href="https://erikdarling.com"><img src="https://img.shields.io/badge/Blog-erikdarling.com-FF6B35?style=for-the-badge&logo=wordpress&logoColor=white" alt="Blog"></a> </p>
Free, open-source monitoring that replaces the tools charging you thousands per server per year. 30+ collectors, real-time alerts, built-in MCP server for AI analysis. Nothing phones home. Your data stays on your server and your machine.
Supported: SQL Server 2016–2025 | Azure SQL Managed Instance | AWS RDS for SQL Server | Azure SQL Database (Lite only)


---
Windows Authentication:
PerformanceMonitorInstaller.exe YourServerName
SQL Authentication:
PerformanceMonitorInstaller.exe YourServerName sa YourPassword
Entra ID (MFA) Authentication:
PerformanceMonitorInstaller.exe YourServerName --entra user@domain.com
Clean reinstall (drops existing database and all collected data):
PerformanceMonitorInstaller.exe YourServerName --reinstall
PerformanceMonitorInstaller.exe YourServerName sa YourPassword --reinstall
Custom data/log file locations (applied only when the database is first created):
PerformanceMonitorInstaller.exe YourServerName --data-path D:\SQLData --log-path E:\SQLLogs
Uninstall (removes database, Agent jobs, and XE sessions):
PerformanceMonitorInstaller.exe YourServerName --uninstall
PerformanceMonitorInstaller.exe YourServerName sa YourPassword --uninstall
The installer automatically tests the connection, checks the SQL Server version (2016+ required), executes SQL scripts, downloads community dependencies, creates SQL Agent jobs, and runs initial data collection. You can also install directly from the Dashboard's Add Server dialog.
Air-gapped environments? Place pre-downloaded community scripts (sp_WhoIsActive.sql, DarlingData.sql, Install-All-Scripts.sql) in a community/ directory next to the installer. The installer uses local files when present and falls back to GitHub downloads otherwise.
| Option | Description |
|---|---|
SERVER | SQL Server instance name (positional, required) |
USERNAME PASSWORD | SQL Authentication credentials (positional, optional) |
--entra EMAIL | Microsoft Entra ID interactive authentication (MFA) |
--reinstall | Drop existing database and perform clean install |
--uninstall | Remove database, Agent jobs, and XE sessions |
--reset-schedule | Reset collection schedule to recommended defaults |
--preserve-jobs | Keep existing SQL Agent job schedules during upgrade |
--encrypt=optional\|mandatory\|strict | Connection encryption level (default: mandatory) |
--trust-cert | Trust server certificate without validation (default: require valid cert) |
--data-path DIR | Server-side directory for the data (.mdf) file (used only on first install) |
--log-path DIR | Server-side directory for the log (.ldf) file (used only on first install) |
--help | Show usage information and exit |
Custom file locations:--data-path/--log-pathset where SQL Server places the PerformanceMonitor data and log files. They take effect only when the database is first created — if the database already exists they are ignored. Either flag may be supplied independently; an omitted one falls back to the instance default (SERVERPROPERTY('InstanceDefaultDataPath')/InstanceDefaultLogPath). The directory is a path on the SQL Server host and must already exist, with the SQL Server service account holding write permission. Both--data-path D:\SQLDataand--data-path=D:\SQLDataforms are accepted; quote paths containing spaces. Not applicable to Azure SQL Managed Instance, which always uses its managed file layout.
Environment variable: Set PM_SQL_PASSWORD to avoid passing the password on the command line.
SELECT * FROM PerformanceMonitor.config.current_version;
SELECT TOP (20) *
FROM PerformanceMonitor.config.collection_log
ORDER BY collection_time DESC;
PerformanceMonitorDashboard-win-Setup.exe (requires .NET 10 Desktop Runtime). Setup.exe installs to %LocalAppData%\PerformanceMonitorDashboard, adds Start Menu and Desktop shortcuts, registers the app under Apps & Features, and wires up auto-update. Launch from the Start Menu, add your server, enter credentials, and data appears immediately.config.collection_schedule (collect_query, collect_plan columns) for sensitive or high-volume environmentsconfig.installation_history1. Enable the MCP server in Settings (checkbox + port, default 5151) - The port must be between 1024 and 65535. Ports 0–1023 are well-known privileged ports reserved by the operating system. - On save, the app checks whether the chosen port is already in use and warns you if there is a conflict. - On startup, the app verifies the port is available before starting the MCP server. 2. Register with Claude Code:
claude mcp add --transport http --scope user sql-monitor http://localhost:5151/
3. Open a new Claude Code session and ask questions like: - "What servers are being monitored?" - "What are the top wait types on my server?" - "Are there any blocking or deadlock issues?" - "Show me CPU utilization for the last 4 hours" - "What are the most expensive queries by CPU?"
All projects target .NET 10.0.
```
dotnet publish Installer/PerformanceMonitorInstaller.csproj -c Release ```
---
PerformanceMonitorLite-win-Setup.exe (requires .NET 10 Desktop Runtime)%LocalAppData%\PerformanceMonitorLite, adds Start Menu and Desktop shortcuts, and registers the app under Apps & Features so it shows up in Windows search and can be uninstalled normally. Auto-update is wired in.Data starts flowing within 1–5 minutes. That's it. No installation on your server, no Agent jobs, no sysadmin required.
Upgrading from zip? Click Import Settings then Import Data in the sidebar and point both at your old Lite folder. Settings imports server connections, alert thresholds, SMTP config, and schedules. Data imports historical DuckDB + Parquet archives. Auto-update users (installed via Setup.exe) get updates automatically — no manual import needed.
Always On AG? Enable ReadOnlyIntent in the connection settings to route Lite's monitoring queries to a readable secondary, keeping the primary clear. Enable MultiSubnetFailover for multi-subnet failover scenarios.
| File | Location | Purpose |
|---|---|---|
servers.json | %ProgramData%\PerformanceMonitorLite\config\ (machine-wide) | Server connections, shared across all Windows users on the machine. Passwords stay per-user in Windows Credential Manager. Optional **Utility Database** per server for community procs installed outside master. |
settings.json | %LOCALAPPDATA%\PerformanceMonitorLite\config\ (per-user) | Retention, MCP server, startup behavior, alert thresholds, SMTP configuration |
collection_schedule.json | %LOCALAPPDATA%\PerformanceMonitorLite\config\ (per-user) | Per-collector enable/disable and frequency |
ignored_wait_types.json | %LOCALAPPDATA%\PerformanceMonitorLite\config\ (per-user) | 144 benign wait types excluded by default |
When a second Windows user on the same machine launches Lite, they see the shared servers.json immediately. SQL Auth and Entra MFA passwords are scoped to each user's own Credential Manager, so they'll be prompted once per server; Windows Auth works without any prompt.
---
sp_configure is not available on AWS RDS for SQL Server. Features that depend on server-level configuration must be set through AWS RDS Parameter Groups instead.
Blocked process threshold — Enables blocked-process-report collection (the richer XE-sourced blocking detail). Without it the blocked-process-report XE will not fire on RDS, but blocking is still captured by the always-on dmv_blocking_snapshot collector, so the blocking grid and block-chain viewer stay populated regardless. Set the threshold for the fuller report-sourced detail.
1. Open the AWS RDS Console and navigate to Parameter groups 2. Create a new parameter group (or modify the one attached to your instance): - Family: sqlserver-ee-16.0 (or your edition/version) - Type: DB Parameter Group 3. Search for blocked process threshold (s) and set it to 5 (seconds) 4. Apply the parameter group to your RDS instance (may require a reboot if the parameter is static) 5. Verify it took effect:
SELECT
c.name,
c.value_in_use
FROM sys.configurations AS c
WHERE c.name = N'blocked process threshold (s)';
Deadlocks — No parameter group configuration is required. The SQL Server deadlock monitor runs automatically on all platforms, and the xml_deadlock_report Extended Event fires without any threshold setting.
Azure SQL Database — The blocked process threshold is fixed at 20 seconds and cannot be changed. The blocked_process_report event fires automatically when blocking exceeds this duration.
---
Both editions include an embedded Model Context Protocol server that exposes monitoring data to LLM clients like Claude Code and Cursor.
| Capability | Full | Lite |
|---|---|---|
| Target server installation | Required | None |
| SQL Server Agent | Required | Not needed |
| Azure SQL Managed Instance | Supported | Supported |
| AWS RDS for SQL Server | Supported | Supported |
| Azure SQL Database | Not supported | Supported |
| Multi-server from one seat | Per-server install | Built-in |
| Collectors | 33 | 25 |
| Agent job monitoring | Duration vs historical avg/p95 | Duration vs historical avg/p95 |
| Data storage | SQL Server (on target) | DuckDB + Parquet (local) |
| Execution plans | Collected and stored (can be disabled per-collector) | Download on demand |
| Graphical plan viewer | Built-in with 30-rule PlanAnalyzer | Built-in with 30-rule PlanAnalyzer |
| Standalone plan viewer | Open/paste/drag .sqlplan files | Open/paste/drag .sqlplan files |
| Community tools (sp_WhoIsActive, sp_BlitzLock) | Installed automatically | Not needed |
| Alerts (tray + email + webhooks) | Blocking, deadlocks, CPU | Blocking, deadlocks, CPU |
| Dashboard | Separate app | Built-in |
| Themes | Dark and light | Dark and light |
| Portability | Server-bound | Single executable |
| MCP server (LLM integration) | Built into Dashboard (66 tools) | Built-in (55 tools) |
---
PerformanceMonitor 是一款专为 SQL Server 设计的性能监控工具。它能够帮助开发者和数据库管理员实时观测数据库运行状态,通过自动化手段收集关键性能指标,为 SQL Server 的性能调优与故障排查提供有力的数据支持。
本项目提供多种安装方式以适配不同的身份验证场景。对于 Windows Authentication,直接运行安装程序并指定服务器名即可;若使用 SQL Authentication,需在命令后附加 sa 账号及密码;针对 Entra ID (MFA) 环境,请使用 `--entra` 参数并提供邮箱。此外,支持使用 `--reinstall` 进行彻底的清理重装,以移除现有数据库及所有历史采集数据。
项目提供 Lite Edition(轻量版)与 Full Edition(完整版)两种模式。Lite Edition 用户只需下载 `PerformanceMonitorLite-win-Setup.exe`(需预装 .NET 10 Desktop Runtime),运行安装程序后,系统会自动在 `%LocalAppData%\PerformanceMonitorLite` 创建安装目录,并生成 Start Menu 与 Desktop 快捷方式,方便快速启动使用。
Lite 版的配置通过 `servers.json` 文件进行管理,该文件存放在 `%ProgramData%\PerformanceMonitorLite\config\` 路径下,实现机器范围内的服务器连接共享。为了安全性,密码会存储在 Windows Credential Manager 中。此外,针对 AWS RDS 环境,由于无法使用 `sp_configure`,用户必须通过 AWS RDS Parameter Groups 手动配置 `blocked process threshold`,以确保阻塞进程报告(blocked process reports)能够正常触发。
本项目集成了先进的 MCP (Model Context Protocol) Server 模块。无论是 Lite 还是 Full 版本,都内置了该协议服务器,能够将实时监控数据安全地暴露给 Claude Code、Cursor 等支持 MCP 的 LLM 客户端,实现通过 AI 驱动的智能化数据库运维与分析工作流。
FAQ 章节主要用于解决安装、配置及运行过程中的常见问题。通过查阅故障排除指南,开发者可以快速定位由于权限不足、环境依赖缺失或 AWS RDS 参数配置不当导致的异常情况,确保监控任务的稳定性。
成熟的SQL Server监控解决方案,32个采集器覆盖全面,实时性强。MCP集成便利云部署,382星评价稳定,是DBA工具箱必备项。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,SQL Server性能监控工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | PerformanceMonitor |
| 原始描述 | 开源MCP工具:Free, open-source SQL Server performance monitoring — 32 collectors, real-time a。⭐382 · C# |
| Topics | 数据库监控性能诊断SQL Server实时采集DBA工具 |
| GitHub | https://github.com/erikdarlingdata/PerformanceMonitor |
| License | MIT |
| 语言 | C# |
收录时间:2026-05-20 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端