如何设置 Prometheus 地址?
通过环境变量 `PROMETHEUS_URL` 设置 Prometheus 端点,例如 `export PROMETHEUS_URL=http://your-prometheus:9090`。
@qingshanyuluo
基本信息
一个简化版的Prometheus MCP服务器,用于收集和暴露MCP服务器的指标
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"prometheus-mcp-server-qingshanyuluo": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"build/index.js"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
Prometheus MCP 服务器是一个简化版的 MCP 服务器,用于查询 Prometheus 指标并提供 AI 分析。它通过 MCP 工具暴露 Prometheus 的查询能力,方便 AI 代理或客户端集成。
设置环境变量 PROMETHEUS_URL 指定 Prometheus 端点,然后运行 go run cmd/server/main.go sse 启动服务器,默认监听 :8081 端口,通过 /sse 路径暴露 SSE 连接。MCP 客户端可通过配置 mcpServers 中的 url 为 http://localhost:8081/sse 连接使用。
通过环境变量 `PROMETHEUS_URL` 设置 Prometheus 端点,例如 `export PROMETHEUS_URL=http://your-prometheus:9090`。
服务器默认在 `:8081` 端口启动,可通过代码或启动参数修改(当前默认固定)。
支持即时查询(`query`)、范围查询(`query_range`)以及带图表的范围查询(`query_chart`)。
在 MCP 客户端配置文件中添加 `mcpServers` 项,指定 `url` 为服务器的 SSE 地址,例如 `http://localhost:8081/sse`。
所有工具查询结果均以 JSON 格式返回,`query_chart` 额外返回 base64 编码的 PNG 图片。

Local-first credential broker for MCP. AI coding agents (Claude Code, Cursor, Codex…) call APIs, SSH and databases through scoped presets; secrets stay in your OS keychain and never enter the agent's context.

Verified distributed compute for humans, applications, and agents. Submit Blender, Octane, and video workloads, route them across qualified GPUs, track asynchronous execution, download finished artifacts, and verify FARP

Agent-Native Terminal
Remote MCP server from OSIR, an ICANN-accredited registrar: 105 tools and 11 prompts to search, register, renew, transfer, and manage domains, DNS, VPS, email, and websites from Claude, ChatGPT, Cursor, or any MCP client

AdsMCP is the MCP entry point into the Adgentek Ad Server. Call ads_serve with the conversation context and get back a native ad matched to user intent, or no ad when one does not fit. Publishers earn on a CPM basis. Fre
评论