G

GeekNews-MCP-Server📰 GeekNews MCP 服务器

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

GeekNews MCP Server 是一个用 Python 实现的模型上下文协议(MCP)服务器,用于从 GeekNews 检索文章。它使用 BeautifulSoup 进行网页抓取,并具有缓存机制,通过每天解析数据并将其存储在缓存中来减少服务器负载。服务器提供获取文章和每周新闻的工具,允许指定文章类型和返回数量。缓存数据用于最小化对 GeekNews 服务器的请求,缓存数据每 24 小时自动更新。

主要功能

  • 获取文章的 get_articles 工具
  • 获取每周新闻的 get_weekly_news 工具
  • 缓存管理
  • 用于定期数据更新的调度器
  • 支持指定文章类型和返回数量

价格

模型
Free
评分
暂无评价

使用场景

文章检索

使用 get_articles 工具从 GeekNews 获取文章,指定文章类型(top, new, ask, show)和返回数量。

每周新闻检索

使用 get_weekly_news 工具从 GeekNews 获取每周新闻,指定每周新闻 ID 或获取最新的一个。

优点 & 缺点

优点

  • 通过缓存减少服务器负载
  • 提供易于使用的工具来获取文章和每周新闻
  • 每天自动更新缓存

缺点

  • 依赖 GeekNews 网站的结构,可能发生变化
  • 缓存数据存储在用户的家目录中

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the main limitations I should be aware of when using this MCP server?

The server relies on the current HTML structure of the GeekNews website, so any redesign may break the scraper until the parsing code is updated. Additionally, the cache resides on the local machine, so shared or multi‑user environments need separate caches.

Asked by Omar Haddad · May 24, 2025

Can I control which article types and how many articles are returned by the get_articles tool?

Yes. The `get_articles` tool lets you specify article types such as `top`, `new`, `ask`, or `show`, and you can set the number of articles to return. Each result includes title, URL, points, author, time, comment count, and rank.

Asked by Mateusz Wozniak · May 15, 2025

How does the caching system work and where is the cached data stored?

The server parses GeekNews once per day and saves the results in a cache located in the user's home directory under `.cache/geeknews_mcp`. Cached entries are valid for 24 hours; after that the scheduler automatically refreshes the data.

Asked by Idris Suleiman · May 10, 2025

提问

服务配缩器 的替代品