Guide · Updated
How to give your AI agent Reddit data
Connect Claude, ChatGPT, Cursor, OpenClaw or n8n to live Reddit posts and comments in five minutes. You need no Reddit API key.
Short answer
Add the Apify MCP server with the Reddit Scraper to your agent as a remote MCP server:
https://mcp.apify.com/?tools=harshmaur/reddit-scraper
The agent gets a tool named harshmaur--reddit-scraper. It searches
Reddit by keyword, subreddit or URL and returns posts and comments as
JSON. It costs $0.02 for each run plus $0.002 for each
result. The Apify free plan includes $5 a month.
We tested the remote server, the local server, the Claude Code commands and the n8n input with real runs on 17 October 2026.
Before you start
- Create a free account on Apify. You do not need a credit card.
- If your client does not support OAuth, copy your API token from Apify Console → Settings → API & Integrations. Treat the token like a password.
The URL contains ?tools=harshmaur/reddit-scraper. It loads
only the Reddit Scraper, plus the helper tools that read run results.
A short tool list keeps the agent focused and saves context.
Claude Desktop
Sign-in: OAuth (sign in to Apify) or API token
- Open Settings → Connectors → Add custom connector. Name it Apify and paste this URL as the remote MCP server URL. Click Connect and sign in to Apify.
Remote MCP server URL https://mcp.apify.com/?tools=harshmaur/reddit-scraper - To use an API token instead, add the server to claude_desktop_config.json (Settings → Developer → Edit Config) and restart Claude Desktop.
claude_desktop_config.json { "mcpServers": { "apify": { "command": "npx", "args": [ "-y", "@apify/actors-mcp-server", "--tools", "harshmaur/reddit-scraper" ], "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" } } } }
Claude Code
Sign-in: OAuth or API token
- Add the server over HTTP. Then run /mcp in Claude Code, pick apify and sign in to Apify.
Terminal claude mcp add apify "https://mcp.apify.com/?tools=harshmaur/reddit-scraper" -t http - With an API token instead of OAuth:
Terminal claude mcp add apify "https://mcp.apify.com/?tools=harshmaur/reddit-scraper" -t http \ --header "Authorization: Bearer YOUR_APIFY_TOKEN"
Claude on the web (claude.ai)
Sign-in: OAuth
- Open Customize → Connectors → Add custom connector. Name it Apify, paste the URL, click Add, then Connect and sign in to Apify. Turn the connector on in the chat's tools menu.
Remote MCP server URL https://mcp.apify.com/?tools=harshmaur/reddit-scraper
Connectors you add on claude.ai also show in Claude Desktop and the Claude mobile apps.
ChatGPT
Sign-in: OAuth
- Turn on Developer mode. Then open Settings → Apps & Connectors → Create. Enter a name, a short description and this MCP server URL. Pick OAuth. You do not need a client ID or secret. Click Create and sign in to Apify.
MCP Server URL https://mcp.apify.com/?tools=harshmaur/reddit-scraper - In a new chat, click + → More and pick the Apify connector. Approve each tool the first time it runs.
ChatGPT reads the tool list when you create the connector. To change the actor later, create a new connector.
Cursor
Sign-in: OAuth or API token
- Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for all projects. Remove the headers block to sign in with OAuth.
.cursor/mcp.json { "mcpServers": { "apify": { "url": "https://mcp.apify.com/?tools=harshmaur/reddit-scraper", "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" } } } }
OpenClaw
Sign-in: API token or OAuth
- Add the server to your OpenClaw config. Set transport to streamable-http. Without it, OpenClaw uses SSE and the connection fails.
OpenClaw config { "mcp": { "servers": { "apify": { "url": "https://mcp.apify.com/?tools=harshmaur/reddit-scraper", "transport": "streamable-http", "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" } } } } } - For OAuth, replace headers with "auth": "oauth" and sign in:
Terminal openclaw mcp login apify
Install the Reddit skill (Claude Code, Codex, Cursor and others)
A skill teaches the agent how to call the actor well: which input fields to use, how to keep the cost low and when to ask before a big run. Install it next to the MCP server, or alone if the agent can run the Apify CLI:
npx skills add apify/awesome-skills -s apify-reddit-scraper The skill lives in apify/awesome-skills. It asks you to approve runs above about 2,500 results.
n8n
Sign-in: API token (Bearer)
- In an AI Agent workflow, add an MCP Client Tool node to the agent's Tool input. Set Endpoint to the URL, Server Transport to HTTP Streamable and Authentication to Bearer Auth with your Apify token.
Endpoint https://mcp.apify.com/?tools=harshmaur/reddit-scraper - For a fixed workflow without an agent (for example, a daily lead list), install the Apify community node @apify/n8n-nodes-apify. Use the operation Run an Actor and get dataset with this actor and input:
Actor ID and input harshmaur~reddit-scraper { "searchTerms": [ "looking for a crm", "alternative to hubspot" ], "searchSort": "new", "postedAfter": "1 day", "maxPostsCount": 50 }
Local MCP server (no Apify MCP)
If your client only supports local stdio servers, use
reddit-scraper-mcp. It exposes three tools:
search_reddit, scrape_reddit_urls and
scrape_subreddit. It needs Node.js 20 or later.
{
"mcpServers": {
"reddit-scraper": {
"command": "npx",
"args": [
"-y",
"reddit-scraper-mcp"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
} Example prompts
Lead generation
Use the Reddit scraper to search Reddit for "looking for a CRM", "CRM recommendation", "alternative to HubSpot" and "best CRM for small business". Sort by new, only posts from the last 7 days, up to 50 posts per search, no comments. Keep only posts where the author asks for a tool or mentions a budget. Return a table with the title, subreddit, author, date, link, one line on what they need, and a lead score (hot, warm or cold). Tell me the estimated cost before you run it. Brand monitoring
Use the Reddit scraper to find every Reddit post and comment from the last 24 hours that mentions "Acme Analytics" or "acmeanalytics.com". Search comments as well as posts, sorted by new, up to 100 posts per term. Group the results into complaints, praise, questions and competitor comparisons. For each, give the link, subreddit, upvotes and a one-sentence summary. Flag anything negative with more than 20 upvotes as urgent. Need better search terms? The free Reddit advanced search builder writes buying-intent, competitor and brand queries that you can paste into these prompts. The free subreddit finder shows where your buyers talk.
What the agent gets back
Each result is one JSON record. dataType is
post, comment, community or
user_profile. These are the fields agents use most:
| Post field | Meaning |
|---|---|
title | Post title |
body | Post text |
authorName | Username of the author |
communityName | Subreddit, for example r/SaaS |
upVotes | Upvotes |
commentsCount | Number of comments |
postUrl | Link to the post |
createdAt | Time the post was made (ISO 8601, UTC) |
flair | Post flair |
searchTerm | The search that found the post |
| Comment field | Meaning |
|---|---|
body | Comment text |
authorName | Username of the author |
url | Link to the comment |
postId | ID of the parent post |
subredditName | Subreddit of the comment |
parentId | The comment or post it replies to |
depth | Reply depth (0 = top level) |
commentUpVotes | Upvotes |
commentCreatedAt | Time the comment was made |
{
"dataType": "post",
"title": "Looking for a simple CRM for a 3-person agency",
"body": "We track leads in a spreadsheet and it is falling apart...",
"authorName": "example_user",
"communityName": "r/smallbusiness",
"upVotes": 14,
"commentsCount": 22,
"postUrl": "https://www.reddit.com/r/smallbusiness/comments/.../",
"createdAt": "2026-10-16T09:12:00.000Z",
"searchTerm": "looking for a crm"
}
On a paid Apify plan, the actor can also add AI fields: sentiment,
intent (for example purchase_intent or
seeking_recommendation) and lead flags such as
wantsHelp and willingToPay.
Cost
The Reddit Scraper uses pay-per-event pricing. You pay $0.02 when a run starts, plus a fee for each post or comment it saves. Comments count as results, so leave comment scraping off when you only need posts.
| Apify plan | Per result | 500 posts |
|---|---|---|
| Free | $0.002 | $1.02 |
| Starter | $0.0018 | $0.92 |
| Scale | $0.0016 | $0.82 |
| Business | $0.0015 | $0.77 |
The free plan's $5 monthly credit covers about 2,400 results. Tell the agent the maximum number of posts in your prompt, so one request cannot start a large run.
Other Reddit actors
Load any of these instead of, or next to, the Reddit Scraper. Add them to the URL with a comma: ?tools=harshmaur/reddit-scraper,harshmaur/reddit-comments-scraper.
- Reddit Search Scraper: keyword search only.
- Reddit Comments Scraper: full comment threads from post URLs.
- Subreddit Scraper: posts from whole subreddits.
- Reddit User Scraper: posts and comments by user.
- Reddit Scraper Pro: all of the above in one actor.
Troubleshooting
- 401 Unauthorized: the client did not send a token. Sign in with OAuth again, or check the
Authorization: Bearerheader. - The agent does not see the tool: restart the client, then check that the connector is on for the chat.
- The run times out in the chat: ask for fewer posts. The agent can also read a finished run later with
get-actor-runandget-dataset-items. - Few results for a quoted phrase: Reddit search matches quoted phrases strictly. Remove the quotes or add variants.
Frequently asked questions
Does Claude have access to Reddit?
Not by default. Claude can search the web, but it cannot list every new Reddit post or read full comment threads. Add the Apify MCP server with the Reddit Scraper as a connector. Claude then gets a tool that returns Reddit posts and comments as structured data.
Is there a Reddit MCP server?
Yes. The Apify MCP server exposes the Reddit Scraper as a tool at https://mcp.apify.com/?tools=harshmaur/reddit-scraper. It works with any client that supports remote MCP servers: Claude, ChatGPT, Cursor, OpenClaw and n8n. There is also a local stdio server, reddit-scraper-mcp on npm.
Do I need a Reddit API key?
No. The Reddit Scraper collects public Reddit data. You only need an Apify account. Clients that support OAuth sign you in to Apify. The others use an Apify API token.
How much does it cost to give an AI agent Reddit data?
The Reddit Scraper charges $0.02 for each run and $0.002 for each post or comment on the Apify free plan. 500 posts cost about $1.02. The Apify free plan includes $5 of usage every month, with no credit card.
Can ChatGPT read Reddit posts?
ChatGPT can read Reddit pages that its web search finds. To give it a full, filtered list of posts and comments, add the Apify MCP server as a connector in Developer mode.
Start free
Give your agent Reddit data today.
The Reddit Scraper is used by thousands of people each month. The Apify free plan covers your first few thousand posts.