Build a Reddit research agent with UnifAPI + MCP (no code required)

Build a Reddit research agent with UnifAPI + MCP (no code required)
Unif Cookbooks team
Unif Cookbooks team

Updated

Build a working Reddit research Skill in one MCP prompt: inspect feeds, fetch top comments and summarize, from any MCP-capable agent.

In short: This cookbook is a no-code Reddit research Skill: one prompt, one MCP server, public threads and comments, and bounded per-record cost.

A Reddit research Skill — give it a feed, user, or target post, get back a structured summary of what people are actually saying — is one of the smallest useful public-data workflows you can run in an agent. With UnifAPI as the MCP server, you write zero glue code: one prompt tells a compatible general agent, research agent, coding agent, or MCP client to inspect Reddit feeds, fan out to fetch top comments, and summarize.

What the agent does

User prompt: "What is the Reddit consensus on Anthropic's latest model release this week?" Agent flow: inspect /reddit/feed/popular and /reddit/feed/news, filter locally for relevant threads, fetch the top 10 comments on each, summarize sentiment and surface the two most-upvoted takes.

Total records: 15 thread results + 50 comment fetches = 65 records, ~$0.065 per run. The output is a paragraph of synthesis plus two pull-quotes. That's the whole agent.

Step 1 — Reddit endpoints you'll call

Four endpoints carry the workflow. /reddit/feed/popular and /reddit/feed/news discover current public threads. /reddit/posts/{id} fetches a single post. /reddit/posts/{id}/comments fetches the comment tree. For author-scoped research, /reddit/users/{username}/posts lists recent public posts by that user.

The feed endpoints return post IDs, titles, scores, and subreddit names. The post and comments endpoints return the full thread context. That's enough to do summary-style research without ever leaving UnifAPI.

Step 2 — Add the MCP config

If you're running this from Claude Desktop, use Customize -> Connectors -> + -> Add custom connector, enter https://mcp.unifapi.com, then click Connect to authenticate with OAuth.

For Cursor, edit ~/.cursor/mcp.json with a server URL of https://mcp.unifapi.com. For the Claude Code CLI, run claude mcp add --transport http unifapi https://mcp.unifapi.com. Once it's connected, the three UnifAPI catalog tools show up for discovery, inspection, and calls.

Step 3 — The prompt

The whole agent is one prompt: "You're a Reddit researcher. For the topic the user names, inspect /reddit/feed/popular and /reddit/feed/news, keep the five most relevant threads, then fetch the top 10 comments for each. Output: a one-paragraph sentiment summary, then the two highest-upvoted takes verbatim with attribution."

That's it. The model handles route selection, pagination, and synthesis. The plumbing UnifAPI provides — one envelope, normalized cursor pagination, one error shape — is what makes the prompt this short.

What it costs to run

For standard Reddit records, the cost is bounded by record count, not call count. A typical run touches 65-100 records depending on how many comments the threads have. Daily runs across 5 topics: ~500 standard credits, $0.50 / day, $15 / month. Hourly runs across 20 topics for a monitoring dashboard: ~50,000 standard credits, $50 / month.

There's no tier to upgrade, no overage rate. If the workflow grows by 10x, the bill grows by 10x — no inflection points.

Extending it

Three obvious extensions. Cross-platform — swap one search call for parallel calls to Reddit, Twitter, and YouTube to get coverage outside Reddit's bubble. Time-series — store record IDs day-over-day and surface deltas (new threads, score changes). Filtering — add a sentiment classifier in the prompt to bucket comments before summarization.

All three are still one MCP server and one credit balance. That's the value of a unified catalog: extending the Skill is a prompt change, not a vendor procurement.

Connect UnifAPI MCP - sets up the connector before running the prompt.

Public TikTok, Instagram, and YouTube data - extends the same pattern beyond Reddit.

Per-record pricing - explains the cost model used in the examples.