Skip to main content
Glama

reddit-mcp

A small, read-only MCP server that lets an AI assistant search and read Reddit through the official Data API (OAuth), for personal, non-commercial research such as studying how people talk about an app or a feature.

It does not post, vote, comment, message or change anything: there is no code path that sends anything but GET. It does not scrape, and it does not store Reddit content (only a short in-memory cache).

Tools

Tool

What it does

reddit_search

Search posts, in one community or in all of Reddit

reddit_subreddit_posts

List the hot / top / new / rising posts of a community

reddit_get_post

Read one post and its comment tree (deleted and removed items are skipped)

Every answer starts with a notice that the text is untrusted data written by strangers, not instructions, long texts are cut, adult content is off by default, and each result carries its permalink so the assistant can cite it.

Related MCP server: Reddit MCP Server

Good citizen by design

  • Official API only, with an app-only OAuth token and a descriptive User-Agent.

  • Keeps below 90 requests per minute (default 50; Reddit's free limit is 100) with a sliding window, obeys Retry-After on a 429, and caches answers for 10 minutes so the same question never costs two requests.

  • An optional allow-list of communities (REDDIT_ALLOWED_SUBREDDITS): only those can be searched or read, and a search over all of Reddit is refused. And a hard cap of requests per session (REDDIT_MAX_REQUESTS, default 100).

  • No storage of Reddit content, no redistribution, no use to train models. Details in docs/data-handling.md.

Setup

You need an approved Reddit Data API app (see docs/reddit-approval.md).

bun install
mkdir -p ~/.config/reddit-mcp && cp .env.example ~/.config/reddit-mcp/credentials.env
chmod 600 ~/.config/reddit-mcp/credentials.env   # then fill in the three values
bun run check

The credentials live in that file (outside any repository, private to you) and never in the MCP configuration you give to an assistant, so the assistant cannot read them. The server refuses to start if the file is readable by others.

Add it to an MCP client, for example Claude Code:

{ "mcpServers": { "reddit": { "command": "bun", "args": ["/path/to/reddit-mcp/src/index.ts"] } } }

Development

bun run check runs the type check, the linter and the tests (no network and no Reddit account needed: the tests use a fake Reddit).

Not affiliated

An independent project, not affiliated with or endorsed by Reddit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables browsing and searching Reddit content through read-only tools that access Reddit's official API. Supports searching posts, retrieving subreddit information, fetching hot posts, and getting detailed post information.
      5
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with read-only access to Reddit's API for browsing subreddits, reading posts and comments, searching Reddit, and retrieving user/subreddit information. Enables safe exploration of Reddit content without posting capabilities through natural language interactions.
      -
    • F
      license
      Not graded
      quality
      F
      maintenance
      Enables AI assistants to read Reddit data including user profiles, subreddits, posts, comments, and search via OAuth authentication.
      -