
idanfishman/prometheus-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A Model Context Protocol (MCP) server implementation that provides AI agents with programmatic access to Prometheus metrics via a unified interface.
概要
A Model Context Protocol (MCP) server that provides seamless integration between AI assistants and Prometheus, enabling natural language interactions with your monitoring infrastructure. This server allows for effortless querying, discovery, and analysis of metrics through Visual Studio Code, Cursor, Windsurf, Claude Desktop, and other MCP clients. - . Direct API integration with Prometheus, no complex parsing needed. - . Structured JSON responses optimized for AI assistant consumption. - . Enable/disable tool categories based on your security and operational requirements. - . Works with both stdio and HTTP transports for maximum compatibility. - Node.js 20.19.0 or newer - Access to a Prometheus server - VS Code, Cursor, Windsurf, Claude Desktop or any other MCP client First, install the Prometheus MCP server with your client. A typical configuration looks like this: After installation, the Prometheus MCP server will be available for use with your GitHub Copilot agent in VS Code.
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"
}
}
}
}