黑客新闻 MCP 服务器
官方 Hacker News MCP 服务器 - 为 Cursor、Claude 及其他 LLM 客户端添加强大的 Hacker News 集成。通过模型上下文协议 (MCP) 访问文章、评论、用户资料和搜索功能。
特征
使用 Algolia 的 HN Search API 搜索故事和评论
按类型获取故事(热门、新、最佳、询问、展示、工作)
获取带有评论的个别故事
获取评论树和用户讨论
获取用户个人资料和提交内容
实时访问 Hacker News 数据
设置
在 Claude Desktop 上运行
将其添加到您的claude_desktop_config.json
中:
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Hacker News MCP 服务器:
工具
search
使用 Algolia 的搜索 API 搜索 Hacker News 上的故事和评论
输入:*
query
(字符串):搜索查询*type
(可选字符串):按类型过滤(“故事”或“评论”)*page
(可选数字):分页的页码*hitsPerPage
(可选数字):每页结果数(最多 100 条)返回:带有故事和评论的搜索结果
getStories
按类型获取多个故事(热门、新、最佳、询问、展示、工作)
输入:*
type
(字符串):要获取的故事类型('top'、'new'、'best'、'ask'、'show'、'job')*limit
(可选数字):要获取的故事数量(最多 100 个)返回:故事对象数组
getStoryWithComments
获取故事及其评论线索
输入:*
id
(数字):故事 ID返回:带有嵌套评论的故事详细信息
getCommentTree
获取故事的完整评论树
输入:*
storyId
(数字):故事的 ID返回:分层评论树结构
getUser
获取用户的个人资料信息
输入:*
id
(字符串):用户名返回:用户个人资料详细信息,包括业力、创建日期和关于文本
getUserSubmissions
获取用户的提交内容(故事和评论)
输入:*
id
(字符串):用户名返回:用户提交的故事和评论的数组
贡献
分叉存储库
创建你的功能分支
提交你的更改
推送到分支
创建新的 Pull 请求
执照
此 MCP 服务器采用 MIT 许可证。详情请参阅许可证文件。
关于
该 MCP 服务器由devabdultech构建和维护。它使用官方 Hacker News API 和 Algolia Search API,通过模型上下文协议 (MCP) 提供对 Hacker News 数据的全面访问。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
为 LLM 客户端添加强大的 Hacker News 集成,允许用户通过模型上下文协议访问故事、评论、用户资料和搜索功能。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.Last updated -453MIT License
- -securityAlicense-qualityA comprehensive toolkit that enhances LLM capabilities through the Model Context Protocol, allowing LLMs to interact with external services including command-line operations, file management, Figma integration, and audio processing.Last updated -23Apache 2.0
- AsecurityFlicenseAqualityEnables interaction with lightning addresses and common lightning tools via your LLM, providing Lightning Network functionality through natural language.Last updated -3111
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI tools like Claude and Cursor to fetch and interact with live Hacker News data (posts, comments, users) via standardized MCP endpoints.Last updated -114028