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

mcp-reddit-server

v1.0.0

Published

MCP server for browsing Reddit - search subreddits, get hot and top posts

Downloads

5

Readme

Reddit MCP Server

Browse Reddit directly from Claude! This MCP server provides tools to search subreddits and get hot/top posts from Reddit using the public JSON API.

Features

  • 🔍 Search Subreddits - Find subreddits by name or description
  • 🔥 Get Hot Posts - Browse current hot posts from any subreddit
  • Get Top Posts (24h) - View top posts from the last 24 hours

Installation

Quick Install (NPM)

npm install -g mcp-reddit-server

Add to Claude Code

claude mcp add npx mcp-reddit-server -s user

Important: After adding, restart Claude Code completely:

  1. Press Ctrl+C twice to stop Claude Code
  2. Run claude --continue to restart

Available Tools

1. search_subreddits

Search for subreddits by name or description.

Parameters:

  • query (required): Search term
  • limit (optional): Number of results (1-25, default: 10)

Example:

Search for "programming" subreddits

2. get_hot_posts

Get the current hot posts from a subreddit.

Parameters:

  • subreddit (required): Subreddit name (without r/ prefix)
  • limit (optional): Number of posts (1-25, default: 10)

Example:

Get hot posts from "technology"

3. get_top_posts_24h

Get the top posts from the last 24 hours in a subreddit.

Parameters:

  • subreddit (required): Subreddit name (without r/ prefix)
  • limit (optional): Number of posts (1-25, default: 10)

Example:

Get top posts from "science" in the last 24 hours

Usage Examples in Claude

Once installed, you can ask Claude:

  • "Search for subreddits about machine learning"
  • "Show me the hot posts from r/programming"
  • "What are the top posts today in r/technology?"
  • "Find subreddits related to cooking"
  • "Get the latest hot posts from worldnews"

Response Format

Posts are displayed with:

  • 🔥/⭐ Visual indicators for hot/top posts
  • ⬆️ Upvote score
  • 👤 Author username
  • 🕒 Time posted
  • 📝 Post preview (for text posts)
  • 🔗 Direct Reddit link

Development

Local Testing

  1. Clone and install:
git clone <repository>
cd mcp-reddit-server
npm install
  1. Build:
npm run build
  1. Test with MCP Inspector:
npm run inspector

Building from Source

npm run build

Publishing Updates

npm version patch
npm publish

Technical Details

  • Uses Reddit's public JSON API (no authentication required)
  • Implements rate limiting through custom User-Agent
  • Limited to 25 posts per request (Reddit API limitation)
  • All data is read-only from public subreddits

Limitations

  • Only accesses public subreddits
  • Maximum 25 posts per request
  • No authentication or user-specific features
  • Rate limited by Reddit's public API

Error Handling

The server handles:

  • Invalid subreddit names
  • Network errors
  • Rate limiting
  • Malformed requests

License

MIT

Contributing

Issues and pull requests are welcome!

Support

For issues or questions, please open an issue on the GitHub repository.