mcpField
P
producthunt

producthunt

github.com/resciencelabMarketing & growth1.9k2.7k installsUpdated 1d ago
Repository

About producthunt

producthunt is a skill for retrieving Product Hunt posts, topics, users, and collections through the official GraphQL API. Its scripts support lookups and filtered queries by topic, date, and user.

Key features

  1. 01Retrieve posts by slug or ID
  2. 02Query featured and topic posts
  3. 03Search and list topics
  4. 04Fetch users and their posts
  5. 05Retrieve collections and featured collections
  6. 06Fetch post comments

Use cases

  1. 01Browse featured products for the day
  2. 02Find products within a topic
  3. 03Review a user's post history
  4. 04Inspect post comments and collections

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/resciencelab/opc-skills --skill producthunt

After installing, type/producthuntin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.claude-plugin/
plugin.json
scripts/
credential.py
get_collection.py
get_collections.py
get_post_comments.py
get_post.py
get_posts.py
get_topic.py
get_topics.py
get_user_posts.py
get_user.py
producthunt_api.py

Details

From the project README

ProductHunt Skill

Get posts, topics, users, and collections from Product Hunt via the official GraphQL API.

Prerequisites

Set access token in ~/.zshrc:

export PRODUCTHUNT_ACCESS_TOKEN="your_developer_token"

Get your token from: https://www.producthunt.com/v2/oauth/applications

Quick Check:

cd <skill_directory>
python3 scripts/get_posts.py --limit 3

Commands

All commands run from the skill directory.

Posts
python3 scripts/get_post.py chatgpt                    # Get post by slug
python3 scripts/get_post.py 12345                      # Get post by ID
python3 scripts/get_posts.py --limit 20                # Today's featured posts
python3 scripts/get_posts.py --topic ai --limit 10     # Posts in topic
python3 scripts/get_posts.py --after 2026-01-01        # Posts after date
python3 scripts/get_post_comments.py POST_ID --limit 20
Topics
python3 scripts/get_topic.py artificial-intelligence  # Get topic by slug
python3 scripts/get_topics.py --query "AI" --limit 20 # Search topics
python3 scripts/get_topics.py --limit 50              # Popular topics
Users
python3 scripts/get_user.py rrhoover                  # Get user by username
python3 scripts/get_user_posts.py rrhoover --limit 20 # User's posts
Collections
python3 scripts/get_collection.py SLUG_OR_ID          # Get collection
python3 scripts/get_collections.py --featured --limit 20

API Info

Comments

Markdown supported