MCP.so
登录

Hosted Graphite MCP Server

@Hosted Graphite

基本信息

传输方式

streamable-http

认证方式

API Key

作者

Hosted Graphite

关于 Hosted Graphite MCP Server

Hosted Graphite 由 MetricFire 提供,是托管的 Graphite 与 Grafana 监控服务。其官方 MCP 服务器让 AI 助手可以搜索和渲染指标、创建和静默告警、管理通知渠道和定时静默,并构建 Grafana 仪表盘。它使用具有读取、写入或删除权限的 MCP 令牌。

连接信息

https://mcp.hostedgraphite.com/

接入方式

claude mcp add hosted-graphite --transport http https://mcp.hostedgraphite.com/ --header "X-HostedGraphite-MCP-Token: ${HOSTEDGRAPHITE_MCP_TOKEN}"

Hosted Graphite MCP Server 工具

35

Search account metrics by Graphite-style pattern (e.g. foo.bar.*).

Return the busiest metric in the account and its rate-limit percentage.

Return invalid metrics rejected by Hosted Graphite parsers.

Delete all metrics matching a Graphite-style pattern (e.g. test.*).

Create a Hosted Graphite alert (supports composite alerts via additional_criteria and expression).

Search alerts by name, id, or free-text search string.

Get details for a single alert by id.

Update one or more fields on an alert. Only specified fields are changed.

Delete an alert by id.

Mute an alert for the given number of minutes.

Unmute an alert by id.

Get mute status and scheduled mutes for an alert.

Mute multiple alerts by id list or search string. Mutes all alerts if both are omitted.

Unmute multiple alerts by id list or search string. Unmutes all alerts if both are omitted.

Get alert trigger/recovery history, optionally filtered by alert id and other fields.

Create a notification channel (email, slack, pagerduty, webhook, victorops, opsgenie).

Search notification channels by type, description, or id. Returns all if filters are omitted.

Get details for a single notification channel by id.

Update one or more fields on a notification channel. Only specified fields are changed.

Delete a notification channel by id.

Create a scheduled mute. repeat days are mon–sun; omit for a one-time mute.

Search scheduled mutes by name, id, duration, start_time, timezone, or repeat day.

Get details for a single scheduled mute by id.

Update one or more fields on a scheduled mute. Only specified fields are changed.

Delete a scheduled mute by id.

List all tag names in the account. Optionally filter by name and limit results.

Search values for a tag name (e.g. host with filter=prod-00*).

Find tagged series matching tag expressions (e.g. cluster=prod).

Delete tagged series by path (e.g. foo.bar;tag1=val1;tag2=val2).

Create a new Grafana dashboard.

List Grafana dashboards.

Get a single Grafana dashboard by uid.

Update an existing Grafana dashboard by uid.

Delete a Grafana dashboard by uid.

Query Graphite render API for metric data or graph images. Uses the MCP token against /mcp/graphite/render on the API host.

概览

什么是 Hosted Graphite MCP Server?

Hosted Graphite MCP Server 是 MetricFire 官方托管的端点(https://mcp.hostedgraphite.com/),让 AI 助手可以搜索和渲染你在 Hosted Graphite 中的指标,并管理告警、静默、通知渠道和 Grafana 仪表盘。它使用 MCP 令牌进行认证。

Hosted Graphite 是 MetricFire 的托管监控服务,指标基于 Graphite,仪表盘基于 Grafana。MetricFire 文档称其为 MetricFire MCP Server。它面向已经把指标发送到 Hosted Graphite 的 SRE、DevOps 工程师和开发者,让 Claude、Cursor 或 GitHub Copilot 等助手根据自然语言请求排查指标、调整告警并构建仪表盘。

如何使用 Hosted Graphite MCP Server?

你的指标必须已经转发到 Hosted Graphite;MCP 服务器不会取代你现有的采集方式。然后创建令牌:

  1. 在 Hosted Graphite 账户中,进入 Add-Ons ⇒ MetricFire MCP Server。
  2. 选择令牌所需的权限:Read、Write 和/或 Delete。MetricFire 建议只授予工作流所需的最小权限。
  3. 立即复制令牌;完整的值只显示一次。

大多数客户端通过请求头发送令牌:

X-HostedGraphite-MCP-Token: <MF-MCP-TOKEN>

Claude Code

claude mcp add --transport http hosted-graphite https://mcp.hostedgraphite.com/ \
  --header "X-HostedGraphite-MCP-Token: $HOSTEDGRAPHITE_MCP_TOKEN"

Claude Desktop 与 claude.ai

对于 Claude 的浏览器和应用界面,MetricFire 文档给出了一种嵌入令牌的 URL,格式为 https://<MF-MCP-TOKEN>@mcp.hostedgraphite.com,作为自定义连接器 URL 填写(Settings → Connectors → Add custom connector)。MetricFire 建议这种方式使用只读令牌,除非你需要写入或删除权限。

Cursor

{
  "mcpServers": {
    "hosted-graphite": {
      "url": "https://mcp.hostedgraphite.com/",
      "headers": {
        "X-HostedGraphite-MCP-Token": "<MF-MCP-TOKEN>"
      }
    }
  }
}

VS Code(GitHub Copilot)

从命令面板运行 MCP: Open User Configuration,并按 MetricFire 文档添加:

{
  "servers": {
    "mf-mcp-server": {
      "url": "https://mcp.hostedgraphite.com/",
      "headers": {
        "X-HostedGraphite-MCP-Token": "YOUR-MCP-TOKEN"
      }
    }
  }
}

保存后在 VS Code 中启动该服务器,然后使用 Copilot Chat。

Hosted Graphite MCP Server 的主要功能

  • MetricFire 为 Hosted Graphite 账户提供的官方服务器。
  • 按 Graphite 风格的模式和标签表达式发现指标,并提供繁忙指标和无效指标报告。
  • Graphite 渲染查询,可按所选时间范围返回数据或图表图片。
  • 完整的告警管理,包括组合告警、静默、定时静默和告警历史。
  • 支持电子邮件、Slack、PagerDuty、Webhook、VictorOps 和 Opsgenie 的通知渠道。
  • 创建和编辑 Grafana 仪表盘,包括根据自然语言提示生成仪表盘。
  • 令牌权限分为 Read、Write 和 Delete,便于限制智能体可以修改的内容。

Hosted Graphite MCP Server 工具

服务器提供 35 个工具,分为六组:

  • 指标:metric_search 按模式查找指标(例如 foo.bar.*),busy_metrics 返回最繁忙的指标及其速率限制百分比,invalid_metrics 列出被解析器拒绝的指标,delete_metrics 删除匹配的指标。
  • 标签:list_tags、search_tag_values、find_tagged_series 和 delete_tagged_series 用于处理带标签的序列。
  • 渲染:render_graphite 查询 Graphite 渲染 API,获取指标数据或图表图片。
  • 告警:create_alert、search_alerts、get_alert、update_alert、delete_alert、mute_alert、unmute_alert、批量的 mute_alerts 和 unmute_alerts、get_alert_mute_status 以及 get_alert_history。
  • 通知渠道与定时静默:两者各有创建、搜索、获取、更新和删除工具,例如 create_notification_channel 和 create_scheduled_mute。
  • 仪表盘:create_dashboard、list_dashboards、get_dashboard、update_dashboard 和 delete_dashboard,用于 Grafana。

Hosted Graphite MCP Server 的使用场景

  • 故障排查:「显示 checkout 服务过去六小时的错误率指标。」
  • 告警调优:「当 api.latency.p95 连续 5 分钟高于 500 ms 时创建告警,并发送到我们的 Slack 频道。」
  • 维护窗口:「为所有数据库告警设置每周日 02:00 到 04:00 的定时静默。」
  • 构建仪表盘:「为 prod 主机构建一个包含 CPU、内存和磁盘面板的 Grafana 仪表盘。」
  • 清理:「列出无效指标和最繁忙的指标,方便我修复产生噪声的发送方。」

Hosted Graphite MCP Server 常见问题排查

  • 找不到指标:指标必须先存储在 Hosted Graphite 中,才能被搜索、渲染或用于告警。
  • 创建或删除时出现权限错误:令牌创建时没有 Write 或 Delete 权限。请创建一个具有所需权限的新令牌。
  • 令牌丢失:完整令牌只显示一次。请在 Add-Ons ⇒ MetricFire MCP Server 中重新生成。
  • Heroku 用户无法启用:通过 Heroku Marketplace 插件创建的账户无法使用 MCP 服务器。MetricFire 建议联系他们迁移到独立账户。

常见问题

1

Hosted Graphite MCP Server 是官方的吗?

是的。MetricFire 在 Hosted Graphite 文档中以 MetricFire MCP Server 的名称介绍了它。

2

如何认证?

在 Add-Ons ⇒ MetricFire MCP Server 下创建 MCP 令牌,并在 `X-HostedGraphite-MCP-Token` 请求头中发送。对于 Claude 浏览器界面,MetricFire 文档给出了嵌入令牌的 URL。

3

智能体能删除指标或告警吗?

只有当令牌具有 Delete 权限时才可以。令牌可以限制为 Read、Write 和/或 Delete。

4

它能在 Claude Code、Cursor 和 VS Code 中使用吗?

可以。MetricFire 提到了 VS Code 中的 GitHub Copilot、Cursor 以及 Claude/Claude Code,任何能发送自定义请求头的客户端都可以使用该服务器。

5

它能管理 Grafana 仪表盘吗?

能。`create_dashboard` 和 `update_dashboard` 等工具可以在你的账户中创建和编辑 Grafana 仪表盘。

6

支持哪些通知渠道?

`create_notification_channel` 工具支持电子邮件、Slack、PagerDuty、Webhook、VictorOps 和 Opsgenie。

7

Hosted Graphite 远程 MCP 服务器是什么?

Hosted Graphite 的远程 MCP 服务器是一个托管的 Model Context Protocol 端点,地址是 https://mcp.hostedgraphite.com/,AI 助手无需在本地安装或运行任何东西即可连接。

8

怎么连接 Hosted Graphite 的 MCP 服务器?

把端点 https://mcp.hostedgraphite.com/ 添加到任意支持 MCP 的客户端,比如 Claude Code、Cursor 或 VS Code。本页的接入代码块可以一步配置好每个客户端。

9

Hosted Graphite 的 MCP 服务器需要认证吗?

需要。Hosted Graphite 需要一个 API key——具体获取方式请查看官方文档,拿到后填进客户端配置里即可。

10

Hosted Graphite 的 MCP 服务器用的是哪种传输方式?

Hosted Graphite 暴露的是 streamable-http 端点,这是远程 MCP 服务器普遍使用、主流客户端都支持的传输方式。

评论