
模型上下文协议(MCP)服务器实现,通过统一接口为人工智能代理提供对Prometheus指标的程序访问。
概览
一款模型上下文协议(MCP)服务器,实现AI助手与Prometheus之间的无缝集成,实现与您的监控基础设施的自然语言交互。该服务器允许通过Visual Studio Code、Cursor、Windsurf、Claude Desktop及其他MCP客户端轻松查询、发现和分析指标。 - .与Prometheus直接集成API,无需复杂的解析。- .为AI助手优化的结构化JSON响应。- .根据您的安全和运营需求,启用或禁用工具类别。- .支持STDIO和HTTP传输,实现最大兼容性。 - Node.js 20.19.0 或更新版本 - 访问 Prometheus 服务器 - VS Code、光标、Windsurf、Claude Desktop 或其他 MCP 客户端 首先,将Prometheus MCP服务器安装到客户端中。典型配置如下: 安装后,Prometheus MCP 服务器将可通过 VS Code 与您的 GitHub Copilot 代理一起使用。
概述(AI 翻译)
普罗米修斯MCP服务器
一款模型上下文协议(MCP)服务器,实现AI助手与Prometheus之间的无缝集成,实现与您的监控基础设施的自然语言交互。该服务器允许通过Visual Studio Code、Cursor、Windsurf、Claude Desktop及其他MCP客户端轻松查询、发现和分析指标。
主要特色
- 快速且轻量化。与Prometheus直接API集成,无需复杂的解析。
- LLM 友好。结构化的JSON响应,优化用于AI助手使用。
- 可配置功能。根据您的安全和运营需求启用/禁用工具类别。
- 双重传输支持。支持stdio和HTTP传输,实现最大兼容性。
要求
- Node.js 20.19.0 或更新版本
- 访问Prometheus服务器
- VS Code、光标、Windsurf、Claude Desktop 或其他 MCP 客户端
开始
首先,将Prometheus MCP服务器安装到客户端中。典型配置如下:
在VS Code中安装
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Prometheus MCP Server
Key Features
- Fast and lightweight. Direct API integration with Prometheus, no complex parsing needed.
- LLM-friendly. Structured JSON responses optimized for AI assistant consumption.
- Configurable capabilities. Enable/disable tool categories based on your security and operational requirements.
- Dual transport support. Works with both stdio and HTTP transports for maximum compatibility.
Requirements
- Node.js 20.19.0 or newer
- Access to a Prometheus server
- VS Code, Cursor, Windsurf, Claude Desktop or any other MCP client
Getting Started
First, install the Prometheus MCP server with your client. A typical configuration looks like this:
{
"mcpServers": {
"prometheus": {
"command": "npx",
"args": ["prometheus-mcp@latest", "stdio"],
"env": {
"PROMETHEUS_URL": "http://localhost:9090"
}
}
}
}
安装
npx prometheus-mcp@latest stdio配置
{
"mcpServers": {
"prometheus": {
"command": "npx",
"args": ["prometheus-mcp@latest", "stdio"],
"env": {
"PROMETHEUS_URL": "http://localhost:9090"
}
}
}
}