Apache Health MCP

Apache Health MCP

An MCP server for querying and analyzing Apache Incubator podling health reports. It provides tools to list, search, and compare podling metrics across different time windows from Apache's health report Markdown files.

Category
访问服务器

README

Apache Health MCP

This repo contains a small MCP server for querying the Apache Incubator health reports from tools/health/reports.

It parses the Markdown report format used by Apache's health tooling and exposes MCP tools for:

  • listing available podling reports
  • searching podling names
  • getting a parsed summary for one podling
  • returning the raw Markdown report
  • returning metrics for one specific window
  • comparing one podling across two or three windows
  • listing supported metrics and windows
  • ranking podlings by a metric within a window like 3m, 6m, or 12m

Expected input

Point the server at a local directory containing Markdown files like:

reports/
  Amoro.md
  Iggy.md
  ...

The parser is designed around the current Apache report structure, especially the ## Window Details section.

Install

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install .

For local development:

make install-dev

Run

health-mcp --reports-dir /path/to/incubator/tools/health/reports

The server uses stdio, so it is intended to be launched by an MCP client.

For local development without installing first, you can still launch the stdio server directly:

python3 server.py

The package also keeps apache-health-mcp as a backwards-compatible command alias.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json and add:

{
  "mcpServers": {
    "apache-health": {
      "command": "health-mcp",
      "args": [
        "--reports-dir",
        "/path/to/incubator/tools/health/reports"
      ]
    }
  }
}

Then restart Claude Desktop. If you installed into a virtual environment that is not on your PATH, use the absolute path to that environment's health-mcp command.

MCP tools

health_overview Returns the reports directory, report count, podling list, and latest generated date.

list_podlings Returns the podling names available in the reports directory.

search_podlings Searches podling names by case-insensitive substring with an optional result limit.

get_report_summary Returns parsed window metrics for a single podling.

get_report_markdown Returns the raw Markdown for a single podling report.

get_window_metrics Returns metrics for one podling and one window such as 3m, 6m, 12m, or to-date, including normalized trend words like up, down, and flat under trends.

compare_windows Returns side-by-side metrics for one podling across two or three windows, including normalized trend words under each window's trends.

query_metric_rankings Ranks podlings by a parsed metric such as commits, prs_merged, dev_messages, bus50, or median_merge_days.

list_metrics Returns the supported metric names and available windows for querying.

Usage Examples

These examples show the kinds of questions a user can ask an MCP client connected to this server.

Reviewing A Report Snapshot

  • "What Apache Incubator health reports are available in this checkout?"
  • "How many podling health reports do we have, and when were they generated?"
  • "Which podlings have health reports I can query?"
  • "What health metrics and report windows can I ask about?"

Investigating One Podling

  • "Show me the health summary for Amoro."
  • "What does the latest health report say about Iggy?"
  • "Find podlings with names containing 'stream' and summarize the best match."
  • "For this podling, show the recent 3-month health metrics."
  • "Show me the original Markdown report for Amoro so I can check the source."

Comparing Trends Across Windows

  • "Compare Amoro's 3-month, 6-month, and 12-month activity."
  • "Is Iggy's development activity improving or slowing down?"
  • "Compare recent mailing-list activity with the longer-term trend for this podling."
  • "Has this podling's PR merge activity changed between the 3-month and 12-month windows?"
  • "Is the bus factor for this podling getting better or worse across the report windows?"

Finding Podlings By Activity Signal

  • "Which podlings had the most dev-list messages in the last 3 months?"
  • "Show me podlings with no commits in the last 3 months."
  • "Which podlings have the longest median PR merge time?"
  • "Rank podlings by merged PRs over the 6-month window."
  • "Find podlings with low reviewer diversity in the recent report window."

Preparing A Human Review Queue

  • "Give me a short list of podlings that may need mentor attention based on recent activity."
  • "Which podlings look quiet across commits, PRs, and dev-list messages?"
  • "Find podlings with low recent activity and compare them against their 12-month trend."
  • "Which podlings should I manually review for bus-factor or reviewer-diversity concerns?"

Development

Common tasks are available through make:

make format
make lint
make typecheck
make test
make coverage
make check

Notes

  • This server queries already-generated report files. It does not run Apache's upstream collection script.
  • The workspace here did not include a local reports/ directory, so the server is built to accept any local clone or copied snapshot of Apache's reports directory.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选