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
| Name | Type | Required | Description |
|---|---|---|---|
subreddit | string | yes | Subreddit name without r/ (e.g. “programming”). |
sort | string | no | hot (default), new, top, rising, controversial. |
time | string | no | For sort=top/controversial: hour, day, week, month, year, all (default day). |
limit | number | no | Number 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
| Field | Type | Description |
|---|---|---|
ok | boolean | |
subreddit | string | |
sort | string | |
count | number | |
posts | array |
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.