npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gabriel3615/rd-mcp

v0.2.12

Published

This plugin provides tools to interact with the Reddit API. It allows AI agents to fetch hot posts from a specified subreddit and retrieve detailed information about a specific post, including its comments.

Readme

Reddit MCP Server

This plugin provides tools to interact with the Reddit API. It allows AI agents to fetch hot posts from a specified subreddit and retrieve detailed information about a specific post, including its comments.

Features

  • Fetch hot posts from a subreddit.
  • Get detailed post information including:
    • Post title and content.
    • Author, upvotes, and number of comments.
    • Post URL.
  • Retrieve a tree of comments for a specific post.

API Tools

getRedditHotPosts

Fetches a list of hot posts from a specified subreddit.

Parameters:

  • subreddit: String - The name of the subreddit (e.g., "typescript", "reactjs").
  • limit: Number (optional, default: 10) - The number of posts to fetch.

Response Example:

Top posts in r/typescript:

1. [1loncwp] Who's hiring Typescript developers July
   Author: PUSH_AX, Upvotes: 16, Comments: 5
   URL: https://www.reddit.com/r/typescript/comments/1loncwp/whos_hiring_typescript_developers_july/

2. [1m6r8b8] Announcing ts-regexp: Type-safe RegExp for TypeScript!
   Author: Prize-Procedure6975, Upvotes: 56, Comments: 26
   URL: https://www.reddit.com/r/typescript/comments/1m6r8b8/announcing_tsregexp_typesafe_regexp_for_typescript/

getRedditPostDetails

Fetches the detailed content of a specific post, including its comments.

Parameters:

  • post_id: String - The ID of the Reddit post (e.g., "1loncwp").
  • comment_limit: Number (optional, default: 10) - The number of top-level comments to fetch.
  • comment_depth: Number (optional, default: 2) - The maximum depth of the comment tree to traverse.

Response Example:

Title: Who's hiring Typescript developers July
Author: PUSH_AX
Upvotes: 16
Comments: 5
URL: https://www.reddit.com/r/typescript/comments/1loncwp/whos_hiring_typescript_developers_july/

Content:
...

Comments:
[10] some_user: This is a great thread!
  [5] another_user: I agree!

getRedditNewPosts

Fetches the newest posts from a specified subreddit.

Parameters:

  • subreddit: String - The name of the subreddit (e.g., "typescript", "reactjs").
  • limit: Number (optional, default: 10) - The number of posts to fetch.

Response Example:

Newest posts in r/typescript:

1. [post_id] Post title
   Author: author, Upvotes: 123, Comments: 45
   URL: https://reddit.com/...

getRedditTopPosts

Fetches the top posts from a specified subreddit, with an optional time filter.

Parameters:

  • subreddit: String - The name of the subreddit.
  • limit: Number (optional, default: 10) - The number of posts to fetch.
  • time: String (optional, default: 'day') - One of 'hour', 'day', 'week', 'month', 'year', 'all'.

Response Example:

Top posts in r/typescript (time: day):

1. [post_id] Post title
   Author: author, Upvotes: 123, Comments: 45
   URL: https://reddit.com/...

searchRedditSubreddit

Searches for posts in a subreddit by query.

Parameters:

  • subreddit: String - The name of the subreddit.
  • query: String - The search query.
  • limit: Number (optional, default: 10) - The number of posts to fetch.

Response Example:

Search results for "typescript" in r/typescript:

1. [post_id] Post title
   Author: author, Upvotes: 123, Comments: 45
   URL: https://reddit.com/...

getRedditUserInfo

Fetches information about a Reddit user.

Parameters:

  • username: String - The Reddit username.

Response Example:

User: u/example
Karma: 12345
Created: 2020-01-01 12:00:00
Is Gold: false
Is Mod: false
Verified: true
Icon: https://...

Development

Running in Development Mode

npm run dev

This will start the MCP server with fastmcp for interactive testing.