🚀 Product Hunt MCP Server

🚀 Product Hunt MCP Server

site icon
2025.04.17 0
PythonAPI 集成数据访问自动化工具开发效率
Product Hunt MCP Server 是一个基于 Model Context Protocol (MCP) 的快速、即插即用的服务器,用于连接 Product Hunt 的 API 到任何支持 MCP 的 LLM 或代理。它提供了丰富的功能来获取 Product Hunt 上的帖子、评论、集合、主题和用户信息,适用于 AI 助手、聊天机器人或自动化工具的开发。
View on GitHub

Overview

基本能力

产品定位

Product Hunt MCP Server 是一个连接 Product Hunt API 与 MCP 兼容工具的桥梁,旨在为开发者和 AI 用户提供便捷的 Product Hunt 数据访问能力。

核心功能

  • 获取帖子、评论、集合、主题和用户的详细信息
  • 支持按主题、日期、投票等条件进行搜索和过滤
  • 提供分页评论、用户投票等功能
  • 基于 FastMCP 构建,确保速度和兼容性

适用场景

  • AI/LLM 用户:集成到 Claude Desktop、Cursor 或自定义代理中
  • 开发者:构建机器人、仪表板或自动化工具
  • 技术爱好者:探索 MCP 生态系统并开发自己的工具

MCP 工具列表

工具名称 描述 关键参数
get_post_details 获取特定帖子的信息 idslug, comments_count, comments_after
get_posts 获取带过滤器的帖子 topic, order, count, featured, posted_before, posted_after
get_comment 获取特定评论的信息 id (必填)
get_post_comments 获取帖子的评论 post_idslug, order, count, after
get_collection 获取集合的信息 idslug
get_collections 获取带过滤器的集合 featured, user_id, post_id, order, count
get_topic 获取主题的信息 idslug
search_topics 搜索主题 query, followed_by_user_id, order, count
get_user 获取用户的信息 idusername, posts_type, posts_count
get_viewer 获取认证用户的信息
check_server_status 检查服务器/API 状态

常见问题解答

  • 缺少令牌:确保 PRODUCT_HUNT_TOKEN 已正确设置为环境变量。
  • 连接问题:验证互联网连接和 Product Hunt API 的可访问性。
  • 速率限制:如果达到速率限制,请等待重置时间或减少查询频率。
  • Claude Desktop/Cursor 找不到服务器:验证 Python 可执行文件的路径并重启客户端。

使用教程

使用依赖

安装教程

选项 1:使用 pip(标准)

pip install -e .

选项 2:使用 uv(推荐)

pip install uv
uv pip install -e .

Docker 安装

docker build -t product-hunt-mcp .
docker run -i --rm -e PRODUCT_HUNT_TOKEN=your_token_here product-hunt-mcp

调试方式

  • 确保 PRODUCT_HUNT_TOKEN 环境变量已设置
  • 验证 Python 或 Docker 运行环境
  • 检查客户端配置文件的路径是否正确
  • 使用 check_server_status 工具检查服务器状态

许可证

该项目遵循 MIT 开源许可条款。