get_subreddit

Pack: reddit · Endpoint: https://gateway.pipeworx.io/reddit/mcp

Get posts from a REDDIT subreddit — r/LocalLLaMA, r/python, r/news. PREFER for “what are people posting in r/”, “whats new on r/ today”, “top posts on Reddit this week”. Sorted hot (default), new, top, rising, or controversial. For “top”/“controversial” pass a time window (day/week/month/year/all) — e.g. “top posts in r/programming this week”. Returns post id, title, author, permalink, date, and a body snippet. (Vote score and comment count are not available via Reddit RSS.)

Parameters

NameTypeRequiredDescription
subredditstringyesSubreddit name without r/ (e.g. “programming”).
sortstringnohot (default), new, top, rising, controversial.
timestringnoFor sort=top/controversial: hour, day, week, month, year, all (default day).
limitnumbernoNumber of posts (default 10, max 100).

Example call

Arguments

{
  "subreddit": "programming"
}

curl

curl -X POST https://gateway.pipeworx.io/reddit/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_subreddit","arguments":{"subreddit":"programming"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_subreddit', {
  "subreddit": "programming"
});

More examples

{
  "subreddit": "python",
  "limit": 25
}

Response shape

Always returns: ok, subreddit, count, posts

FieldTypeDescription
okboolean
subredditstring
sortstring
countnumber
postsarray
Full JSON Schema
{
  "type": "object",
  "description": "Recent posts in a subreddit, served from Reddit RSS.",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "subreddit": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Reddit post id (base36, e.g. \"1vef79c\")"
          },
          "title": {
            "type": "string"
          },
          "author": {
            "type": "string",
            "description": "Username without the u/ prefix"
          },
          "subreddit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Null when the feed entry does not carry one (e.g. a subreddit-level result)"
          },
          "permalink": {
            "type": "string",
            "description": "Absolute reddit.com URL"
          },
          "published": {
            "type": "string",
            "description": "ISO-8601 timestamp"
          },
          "body": {
            "type": "string",
            "description": "Self-text as HTML-decoded text; empty for link posts"
          }
        },
        "required": [
          "id",
          "title",
          "author",
          "permalink",
          "published"
        ]
      }
    }
  },
  "required": [
    "ok",
    "subreddit",
    "count",
    "posts"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "reddit": {
      "url": "https://gateway.pipeworx.io/reddit/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 10, 2026