Skip to main content
Glama
reddit-marketing

reddit-marketing

by whyujjwal

Reddit Marketing Agent

Turn Claude into a careful Reddit marketer. It finds the communities your audience lives in, spots conversations where your product genuinely helps, drafts replies worth upvoting, and publishes only what you approve. Guardrails keep you clear of the things that get accounts and domains banned.

It's an MCP server, so you control it from Claude Code, Claude Desktop, or any MCP client, in plain language:

"Find threads this week where freelancers are asking for invoicing tools, and draft replies for the best three."

Python License: MIT


What it does

๐Ÿ”Ž Discover communities

Search subreddits, read their rules, and classify how each one treats self-promotion (banned / restricted / unclear).

๐Ÿ“ˆ Learn what works

Best posting hours and days, text vs link share, question-title share, common flairs, and typical scores from each subreddit's top posts.

๐ŸŽฏ Find opportunities

Ranks recent threads 0-100 by buying intent ("looking for", "alternative to", "what do you use"), keyword and competitor relevance, freshness, and visibility, with the reasons and cautions spelled out.

๐Ÿ‘‚ Track mentions

Watches for your brand or domain (and optionally competitors) and only reports what's new since last time.

โœ๏ธ Draft and review

Replies and posts go into a local review queue with automatic checks: disclosure, subreddit rules, spam signals, duplicates, locked threads.

โœ… Publish with approval

Nothing is posted until you approve the exact text. Daily caps, pacing and per-subreddit cooldowns are enforced.

๐Ÿ“Š Measure

Scores, replies and removals per subreddit, plus your inbox, so you can keep conversations going.

The guardrails (why this won't get you banned)

Reddit punishes undisclosed promotion, link spam and copy-paste posting. The agent blocks:

  • Product mentions without an affiliation disclosure ("I built this", "full disclosure: I work on X")

  • Promotion in subreddits whose rules ban it

  • Link shorteners, duplicate text, replies to locked or archived threads

  • Exceeding the daily action cap, posting too fast, or promoting in the same subreddit within the cooldown

It warns about restricted-promo subreddits, too many links, low-effort replies, hype-y titles, and a promotional share above 10% (the classic 9:1 rule). Publishing is off by default and always needs a final confirm=true that Claude is instructed to send only after you approve.

Related MCP server: mcp-reddit-ads

How it works

flowchart LR
    You -->|chat| Claude
    Claude <-->|MCP tools| Agent["reddit-marketing-agent<br/>(this repo)"]
    Agent -->|"API credentials? โ†’ OAuth JSON API<br/>none? โ†’ public RSS feeds"| Reddit[(Reddit)]
    Agent <--> DB[("~/.reddit-marketing-agent<br/>campaigns ยท drafts ยท activity log")]

Two connection modes, picked automatically:

Mode

Needs

You get

rss

nothing

Read-only research from Reddit's public RSS feeds: search, browse, threads, subreddit search. No scores or rules, and a strict rate limit (the agent paces itself). Drafts work: post them by hand and log the link.

oauth-app

Reddit API app (client id + secret)

Full read access: scores, comment counts, rules, subreddit stats, live performance metrics.

oauth-user

app + Reddit login

Everything above, plus publishing, inbox and account health.

Install

You need uv (curl -LsSf https://astral.sh/uv/install.sh | sh).

Claude Code: as a plugin (tools + playbook skill)

/plugin marketplace add whyujjwal/reddit-marketing-agent
/plugin install reddit-marketing@reddit-marketing-agent

Claude Code: MCP server only

claude mcp add reddit-marketing -s user -- uvx --managed-python --from git+https://github.com/whyujjwal/reddit-marketing-agent reddit-marketing-agent

Claude Desktop

Add this to claude_desktop_config.json (Settings โ†’ Developer โ†’ Edit Config), then restart Claude:

{
  "mcpServers": {
    "reddit-marketing": {
      "command": "uvx",
      "args": ["--managed-python", "--from", "git+https://github.com/whyujjwal/reddit-marketing-agent", "reddit-marketing-agent"]
    }
  }
}

If Claude Desktop can't find uvx, use its full path (run which uvx).

--managed-python makes uv use its own native Python build. Without it, an active Conda or Intel (x86_64) Python on an Apple Silicon Mac can be picked instead, and installing cryptography (a dependency of the MCP SDK) then fails.

From source

git clone https://github.com/whyujjwal/reddit-marketing-agent
cd reddit-marketing-agent
uv sync
uv run reddit-marketing-agent doctor

Opening the cloned folder in Claude Code picks up the bundled .mcp.json automatically.

Configure

It works with zero configuration in rss mode. To unlock more, create a config file:

uvx --managed-python --from git+https://github.com/whyujjwal/reddit-marketing-agent reddit-marketing-agent init

That writes ~/.reddit-marketing-agent/.env (readable only by you). Fill in what you have:

Variable

Default

Purpose

REDDIT_CLIENT_ID / REDDIT_CLIENT_SECRET

โ€“

Reddit API app credentials โ†’ oauth-app mode

REDDIT_USERNAME / REDDIT_PASSWORD

โ€“

Login for posting โ†’ oauth-user mode

REDDIT_REFRESH_TOKEN

โ€“

Use instead of a password if the account has 2FA

REDDIT_USER_AGENT

python:reddit-marketing-agent:v0.1.0 (by /u/<you>)

Override the user agent

RMA_POSTING_ENABLED

false

Must be true before anything can be published

RMA_APPROVAL_MODE

chat

chat: approve in Claude. terminal: drafts must be approved with reddit-marketing-agent approve <id>

RMA_MAX_ACTIONS_PER_DAY

5

Posts + comments per rolling 24h

RMA_MIN_MINUTES_BETWEEN_ACTIONS

10

Minimum gap between publishes

RMA_SUBREDDIT_COOLDOWN_HOURS

72

Minimum gap between promotional items in the same subreddit

RMA_MAX_PROMO_RATIO

0.10

Warn when promotional share of your logged activity exceeds this

RMA_MAX_RATE_WAIT

45

Longest the agent will wait on a Reddit rate limit within one call

RMA_DATA_DIR

~/.reddit-marketing-agent

Where the config and SQLite database live

Run reddit-marketing-agent doctor to check the setup.

Getting Reddit API access

As of 2026 Reddit requires approval for new API apps under its Responsible Builder Policy; creating an app at reddit.com/prefs/apps is no longer enough on its own. Request access through Reddit's developer support, describing the use case (personal community engagement, low volume, human-approved posting). Once approved, create a script app and put its id and secret in the config. Until then, rss mode covers research and drafting.

Reddit's Data API Terms and each subreddit's rules apply to you, not to this tool. Read them.

Use it

Just talk to Claude. A typical first session:

  1. "Check the reddit status."

  2. "Set up a campaign for my product: an invoicing app for freelancers at invoicely.example.com. I'm the founder." Claude interviews you, finds candidate subreddits, checks their promo rules, and calls save_campaign.

  3. "Find today's best opportunities and draft replies for the top three."

  4. Claude shows each draft verbatim with the thread, why it fits, and the check results. "Publish #2, change #1 to not mention the product, drop #3."

  5. "How did this week go?"

Built-in prompts (slash commands in Claude Code, prompt picker in Claude Desktop): Set up a campaign, Daily scout, Weekly report. The plugin also installs the reddit-marketing skill, a playbook Claude follows for choosing threads and writing replies. Every client can read it as the MCP resource reddit-marketing://playbook.

Tools

Tool

What it does

reddit_status

Mode, capabilities, limits and usage, account karma/age

find_subreddits

Discover communities for a topic

subreddit_profile

Description, size, rules, self-promotion policy

subreddit_insights

Best times, formats, flairs and typical scores

browse_subreddit

Hot / new / top / rising posts

search_reddit

Full Reddit search syntax, multi-subreddit (SaaS+startups)

read_thread

A post plus its comments

find_opportunities

Ranked threads worth replying to, with reasons and cautions

track_mentions

New posts mentioning your brand, domain or competitors

save_campaign / list_campaigns

Product context: keywords, competitors, subreddits, voice, disclosure

draft_reply / draft_post

Queue a draft and run the checks

list_drafts / revise_draft / discard_draft

Manage the queue

publish_draft

Preview, then publish with confirm=true after your approval

log_manual_post

Record something you posted by hand

performance_report

Scores, replies, removals by subreddit

check_inbox

Replies and messages to follow up on

Terminal commands

reddit-marketing-agent doctor          # check config + connectivity
reddit-marketing-agent drafts          # list pending drafts
reddit-marketing-agent approve 12      # approve draft #12 (for RMA_APPROVAL_MODE=terminal)
reddit-marketing-agent discard 12

Development

uv sync
uv run pytest            # 50 tests, no network needed
uv run ruff check . && uv run ruff format --check .

Layout:

src/reddit_marketing_agent/
  server.py       MCP tools, prompts, playbook resource
  service.py      core logic (campaigns, opportunities, drafts, publishing, reports)
  scoring.py      opportunity scoring heuristics
  guardrails.py   promo-policy detection, draft checks, pacing limits
  store.py        SQLite: campaigns, drafts, activity log, seen mentions
  reddit/         OAuth JSON backend, RSS backend, shared polite HTTP session
skills/reddit-marketing/SKILL.md   the playbook (plugin skill + MCP resource)
.claude-plugin/                    Claude Code plugin + marketplace manifests

PRs welcome, especially better opportunity heuristics, more promo-rule patterns, and support for other platforms.

Built on open source

Disclaimer

Not affiliated with or endorsed by Reddit. You are responsible for how you use it: follow Reddit's User Agreement, its API terms, and every community's rules. The guardrails reduce risk; they don't replace your judgment.

License

MIT

Available Tools

20 tools
browse_subredditB
Read-only

List posts in a subreddit, to get a feel for the community before joining in.

Inputs: subreddit (required), sort, limit, time_filter. Returns: object

check_inboxC
Read-only

Replies to your posts/comments and direct messages, so you can keep conversations going. Needs a logged-in account.

Inputs: limit, unread_only. Returns: object

discard_draftC

Discard a draft.

Inputs: draft_id (required). Returns: object

draft_postA

Save a new post to the review queue and run guardrail checks. Nothing is posted.

Inputs: title (required), subreddit (required), url, body, +3 more. Returns: object

draft_replyA

Save a reply to the review queue and run guardrail checks (disclosure, subreddit promo rules, spam signals, duplicates). Nothing is posted.

Inputs: body (required), target (required), campaign, rationale. Returns: object

find_opportunitiesA

Find recent threads where someone is asking for help, recommendations or alternatives in the product's space, ranked 0-100 with reasons and cautions (locked, promo-banned, buried).

Inputs: campaign, keywords, min_score, subreddits, +3 more. Returns: object

find_subredditsB
Read-only

Discover communities about a topic, with subscriber counts when available.

Inputs: query (required), limit. Returns: object

list_campaignsA
Read-only

List saved campaigns with their full settings.

Inputs: no named parameters. Returns: object

list_draftsB
Read-only

List drafts in the review queue with their check results.

Inputs: limit, status, campaign. Returns: object

log_manual_postA

Record that the user posted a draft by hand, so pacing limits and reports include it.

Inputs: draft_id (required), permalink (required). Returns: object

performance_reportB
Read-only

How published posts and replies are doing: scores, replies, removals, by subreddit.

Inputs: days, campaign. Returns: object

publish_draftA
Destructive

Publish a draft to Reddit. Without confirm=true it returns a final preview and changes nothing. Re-checks the thread state, daily limits, pacing and per-subreddit cooldowns, and refuses if any blocking check fails.

Inputs: draft_id (required), confirm. Returns: object

read_threadA
Read-only

Read a post and its comments. Always read a thread before drafting a reply to it.

Inputs: post (required), comment_limit. Returns: object

reddit_statusA
Read-only

Show the connection mode, what's possible in it, posting limits and today's usage, and (when logged in) account karma/age. Call this first in a session.

Inputs: no named parameters. Returns: object

revise_draftB

Edit a draft and re-run the checks. Editing resets any approval.

Inputs: draft_id (required), url, body, title. Returns: object

save_campaignA

Create or update a campaign (matched by name). Campaigns hold the product context that opportunity search, mention tracking and draft checks use.

Inputs: name (required), description (required), product_name (required), tone, +6 more. Returns: object

search_redditC
Read-only

Search Reddit posts.

Inputs: query (required), sort, limit, subreddit, +1 more. Returns: object

subreddit_insightsA
Read-only

What works in a subreddit, from the past month's top posts: best posting hours (UTC) and days, text vs link share, question-title share, common flairs, typical scores.

Inputs: subreddit (required). Returns: object

subreddit_profileA
Read-only

A subreddit's description, size, full rules, and how it treats self-promotion (banned / restricted / unclear). Check this before drafting anything for a community.

Inputs: subreddit (required). Returns: object

track_mentionsB

Find posts that mention the brand (or competitors). Remembers what it has shown you, so repeated calls return only new mentions.

Inputs: terms, campaign, subreddits, time_filter, +2 more. Returns: object

Tool Schema Changelog

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

Loading tool schema changelogโ€ฆ

    TDQS

    B3.2/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have crisp, distinct purposes: discovery (find_subreddits, search_reddit, browse_subreddit), research (subreddit_profile, subreddit_insights, read_thread), and a clear draft-review-publish lifecycle. The main friction points are the three subreddit-scoped tools and the four discovery tools (search_reddit, browse_subreddit, find_opportunities, track_mentions), which overlap in 'find posts' territory, though descriptions do enough to separate them (rules check vs top-post stats vs listing vs ranked opportunity search).

    Naming Consistency4/5

    Dominant convention is snake_case verb_noun (list_campaigns, find_subreddits, draft_reply, publish_draft), and the draft lifecycle uses a consistent draft_* resource prefix. Minor deviations are noun-first read tools like subreddit_profile, subreddit_insights, performance_report and reddit_status, plus 'check_inbox' instead of list_*.

    Tool Count4/5

    20 tools is on the heavy side, but the domain genuinely spans discovery, subreddit research, campaign context, drafting with guardrails, a review queue, publishing with limits, and monitoring. Each tool covers a distinct stage of that pipeline rather than being redundant, so only a slight trim would be warranted.

    Completeness4/5

    Full lifecycle coverage from discovery through drafting, review, publish, and performance tracking, plus pacing limits and inbox monitoring. Gaps are modest: no campaign delete, no scheduled posting, and check_inbox surfaces replies/DMs but there is no direct tool to respond to an inbox item or comment thread outside the draft-to-thread flow.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP Server for the Meta Marketing API. Gives Claude Desktop direct access to your ad account data โ€” campaign performance, creative analysis, audience breakdowns, and budget pacing.
      10
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for Reddit Ads API v3 enabling campaign management, ad creation, performance reporting, and audience targeting through Claude.
      10
      94 npm
      3
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      A platform-agnostic MCP server that connects Claude to campaign data, institutional knowledge, and historical performance for paid media teams, enabling automated analysis, reporting, and debugging.
      73
      -
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that turns Claude into a Reddit lead-finding agent: search for buying-intent conversations, score them against your product, and read full threads before drafting a reply.
      3
      MIT