Read public Reddit posts, search across subreddits, and fetch post comments
3tools
0msauth
free tier50 calls/day
Tools
get_subredditrequired: subredditGet hot posts from a subreddit.
Parameters
NameTypeDescription
subredditreqstringSubreddit name without the r/ prefix (e.g. "programming")limitoptnumberNumber of posts to return (default: 10, max: 100)Try it
Response
search_postsrequired: querySearch Reddit posts by query string.
Parameters
NameTypeDescription
queryreqstringSearch querylimitoptnumberNumber of results to return (default: 10, max: 100)sortoptstringSort order: relevance, hot, top, new, comments (default: relevance)Try it
Response
get_postrequired: post_idGet a Reddit post and its top-level comments by post ID.
Parameters
NameTypeDescription
post_idreqstringReddit post ID (the alphanumeric ID, e.g. "abc123")Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/reddit/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/reddit/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_subreddit","arguments":{"subreddit": "example"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("get_subreddit", {"subreddit":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("read public reddit posts, search across subreddits, and fetch post comments");Related packs
Other Pipeworx packs in the same categories (Social, News, Media):