Skip to main content
Glama
dmc5179

rhdp-blog-search

by dmc5179

Red Hat Developer Blog Search - MCP Server

MCP 服务器,用于搜索和读取 Red Hat Developer 站点(developers.redhat.com)上的内容。它基于驱动站点搜索页面的 Hydra/Solr 搜索 API 构建。

工具

工具

描述

search_rhdp

搜索博客、文章、学习路径等。按内容类型、产品、主题筛选。按相关度或日期排序。

fetch_rhdp_page

developers.redhat.com URL 获取完整文章文本。返回从页面中提取的干净 markdown。

Related MCP server: Medium MCP Server

构建容器

podman build -t rhdp-blog-search:latest -f Containerfile .

配置 Claude Code

将服务器添加到 项目级 设置文件中,这样它只会在你正在处理需要它的项目时加载。这样可以避免把工具描述添加到每个会话的系统提示中(这会消耗输入 token)。

在你需要访问的项目中创建或编辑 .claude/settings.json

{
  "mcpServers": {
    "rhdp-blog-search": {
      "command": "podman",
      "args": ["run", "-i", "--rm", "rhdp-blog-search:latest"]
    }
  }
}

若要全局使用(每个会话都会加载,token 开销更大),请改为将同样的配置块添加到 ~/.claude/settings.json

降低 token 成本

MCP 服务器 仅在 Claude Code 会话处于活动状态时运行——Podman 会在会话开始时启动容器,在会话结束时停止容器。没有后台守护进程。

不过,工具的两个描述会包含在配置了服务器的每个会话的每次提示中。为了尽量减少不必要的成本:

  • 使用项目级配置(项目根目录下的 .claude/settings.json)而不是全局配置。这些工具只会出现在从该目录启动的会话中。

  • 不要将其添加到 home 目录配置中,除非你想在所有地方使用。

  • 或者,使用显式的 MCP 配置文件启动 Claude Code:

    claude --mcp-config path/to/mcp.json

在 Claude Code 中使用

配置完成后,让 Claude 自然地使用这些工具:

搜索 Red Hat Developer 博客中关于 OpenShift Virtualization 最佳实践的文章,并总结你的发现。引用每篇博客时附上其 URL。

查找关于 OpenShift GitOps 的最新博客文章,并给出每篇的摘要和链接。

研究如何在 Developer Sandbox 上设置 OpenShift AI。使用 Red Hat Developer 博客搜索查找相关文章,然后阅读最相关的几篇,并给出带引用的分步指南。

Claude 会调用 search_rhdp 查找相关内容,然后调用 fetch_rhdp_page 阅读具体文章,并使用结果中的 URL 进行引用。

参数

默认值

说明

query

(必填)

搜索词

content_type

blog_post

逗号分隔:articleblog_postbookscheat_sheeteventslearning_pathvideo_resource

product

按产品筛选,例如 Red Hat OpenShift

topic

按主题筛选,例如 Kubernetes

sort

relevant

relevantnewestoldest

max_results

10

结果数量(最多 50)

CLI 用法(不使用 MCP)

搜索模块也可以独立运行:

python3 rhdp_blog_search.py openshift --type blog_post --sort newest --rows 5
python3 rhdp_blog_search.py openshift --facets-only
python3 rhdp_blog_search.py openshift --type blog_post --json

工作原理

Red Hat Developer 搜索页面是一个 React SPA,它查询位于 access.redhat.com/hydra/rest/search/platform/developers 的 Solr 后端 API。本服务器直接调用该 API,绕过 JavaScript 前端,并返回结构化的 JSON 结果。fetch_rhdp_page 工具获取单篇博客页面,并使用 BeautifulSoup 提取文章文本。

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Search PayU docs, browse the payment integration catalog, and fetch production-ready code.

  • Search Stack Exchange questions, fetch Q&A threads as markdown, look up tag FAQs and user profiles.

  • Discover available topics and explore up-to-date, topic-tagged web content. Search to surface the…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmc5179/redhat-blog-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server