# Reddit MCP Server: posts & comments for AI agents (`mendi_ai_reply_pilot/reddit-mcp-server`) Actor

Moved: these tools are now part of the Reddit Comments & Posts Scraper (mendi_ai_reply_pilot/reddit-comments-scraper), at its /mcp endpoint. Same tools, results and prices.

- **URL**: https://apify.com/mendi_ai_reply_pilot/reddit-mcp-server.md
- **Developed by:** [Comment Verdict](https://apify.com/mendi_ai_reply_pilot) (community)
- **Categories:** MCP servers, AI, Social media
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 comment returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Reddit MCP Server

> **This server has moved.** The same tools (`get_reddit_post`,
> `get_reddit_comments`), with the same results and prices, are now part of the
> [Reddit Comments & Posts Scraper](https://apify.com/mendi_ai_reply_pilot/reddit-comments-scraper).
> Change the URL in your MCP client to
> `https://mendi-ai-reply-pilot--reddit-comments-scraper.apify.actor/mcp`;
> nothing else changes. This Actor is deprecated: it keeps answering for now,
> but gets no more updates.

Let your AI agent read Reddit: one post, or its comments **without the bots
and the \[deleted]**. A [Model Context Protocol](https://modelcontextprotocol.io)
server for Claude, Cursor, VS Code, ChatGPT and any other MCP client.
**$0.20 per 1,000 comments**, and you pay only for what is returned.

### Connect

Add the server to your MCP client. You need an
[Apify API token](https://console.apify.com/account/integrations).

```json
{
  "mcpServers": {
    "reddit": {
      "url": "https://mendi-ai-reply-pilot--reddit-mcp-server.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

The transport is Streamable HTTP. There is nothing to install and nothing to
start: the server wakes up on the first call.

### Tools

| Tool | What it returns | Usual time |
|---|---|---|
| `get_reddit_post` | One post: title, text, author, subreddit, score, upvote ratio, comment count, flair, links. | about 10 s |
| `get_reddit_comments` | The post and a batch of its comments, most visible first. | 10 to 40 s |

#### `get_reddit_comments`

| Argument | What it does |
|---|---|
| `post` | The post's URL, a `redd.it` short link, or the post ID. |
| `max_comments` | Comments to return in this call: default 25, up to 100. |
| `sort` | `best` (default), `top` or `new`. |
| `clean` | On by default: drops `[deleted]` and `[removed]` comments, known bots, and emoji-only or link-only replies. They are not charged. |
| `since` | Only comments newer than this: a date, an ISO time, Unix seconds, or a relative time such as `2 days`. |
| `cursor` | The `nextCursor` of an earlier call, to get the next batch. |

Example call:

```json
{
  "post": "https://www.reddit.com/r/socialmedia/comments/1vvm84b/what_social_media_is_still_worth_using/",
  "max_comments": 2
}
```

Example result:

```json
{
  "post": {
    "id": "1vvm84b",
    "title": "What social media is still worth using?",
    "subreddit": "socialmedia",
    "author": "example_op",
    "score": 69,
    "commentCount": 175,
    "status": "ok",
    "commentsReturned": 2,
    "hasMore": true,
    "nextCursor": "eyJj..."
  },
  "comments": [
    {
      "id": "p5doocq",
      "postId": "1vvm84b",
      "parentId": "t3_1vvm84b",
      "depth": 0,
      "author": "example_user",
      "body": "The comment text.",
      "score": 42,
      "createdUtc": 1787430000,
      "permalink": "/r/socialmedia/comments/1vvm84b/comment/p5doocq/"
    }
  ],
  "commentsReturned": 2,
  "hasMore": true,
  "nextCursor": "eyJj..."
}
```

**Reading a long thread.** A call returns up to `max_comments`, or fewer when
reading takes longer than about 40 seconds, so an agent is never left waiting.
When `hasMore` is true, call again with the same `post` and the `nextCursor`:
you get the next batch only, and nothing is returned or charged twice.
Cursors last 7 days.

Comments arrive level by level (top-level first, then replies), each with its
`depth` and `parentId`, so the reply tree can be rebuilt.

### Pricing

Pay per event, only for what is returned:

| Event | Price | Charged when |
|---|---|---|
| Comment | $0.0002 ($0.20 per 1,000) | a comment is returned. Cleaned-out comments, and comments older than `since`, are free. |
| Post | $0.001 | a call loads the post. A call that fails, or a post that no longer exists, is free. |

Reading a post with 25 comments costs 25 × $0.0002 + $0.001 = $0.006.

### Limits

- Public posts only. Nothing private, nothing that needs an account.
- Up to 100 comments per call. For whole threads of thousands of comments,
  or hundreds of posts in one go, use the
  [Reddit Comments & Posts Scraper](https://apify.com/mendi_ai_reply_pilot/reddit-comments-scraper)
  Actor: same data, same prices, written to a dataset.
- The scraper reads at the pace of a person scrolling a thread, because that
  is what keeps it working day after day. Live delivery numbers are on the
  [status page](https://scrape.commentverdict.com/status).

### Terms of use

The data is for your own analysis. Don't use it to re-identify, profile,
spam or harass people, and you are responsible for how you use it. Apify's
Store terms apply on top. To ask for a Reddit user's data to be removed from
live results, open an issue on the **Issues** tab.

### Support

Open an issue on the **Issues** tab. We answer within one business day.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `connection` (type: `string`):

The MCP endpoint to connect to, written when the Actor is started as a normal run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mendi_ai_reply_pilot/reddit-mcp-server").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("mendi_ai_reply_pilot/reddit-mcp-server").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call mendi_ai_reply_pilot/reddit-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mendi_ai_reply_pilot/reddit-mcp-server"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QDqYRaXacLOjeA74Z/builds/0YFnc6utbxWaFEfH4/openapi.json
