reddit-mcp-server 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -16
- package/dist/bin.js +8 -4
- package/dist/bin.js.map +1 -1
- package/dist/index.js +516 -227
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ A Model Context Protocol (MCP) server for interacting with Reddit - fetch posts,
|
|
|
27
27
|
| User Analysis | :white_check_mark: | :white_check_mark: |
|
|
28
28
|
| Post Comments | :white_check_mark: | :white_check_mark: |
|
|
29
29
|
| OAuth Auth (60-100 rpm) | :white_check_mark: | :white_check_mark: |
|
|
30
|
-
| **
|
|
30
|
+
| **Keyless mode (zero-setup)** | :white_check_mark: | :x: |
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
@@ -202,6 +202,8 @@ export REDDIT_BOT_FOOTER=$'\n\n---\n^(🤖 Custom bot footer text)'
|
|
|
202
202
|
|
|
203
203
|
**Anonymous mode no longer works.** As of mid-2026, Reddit blocks all unauthenticated API requests with HTTP 403. OAuth credentials are now required for any API access.
|
|
204
204
|
|
|
205
|
+
**Reddit is shutting down its public API and RSS feeds.** Reddit announced on 2026-09-30 that it stops accepting new public API access requests on 2026-10-31, ends RSS feeds on 2026-11-13, starts removing unregistered apps on 2027-01-12, and closes public API access in March 2027. Without credentials, this server already reads from the [Arctic Shift](https://github.com/ArthurHeitmann/arctic_shift) archive (see [Keyless Mode](#keyless-mode)).
|
|
206
|
+
|
|
205
207
|
Additionally, Reddit closed self-service OAuth app creation in November 2025. New developers must request access through [Reddit's Developer Support](https://support.reddithelp.com/hc/en-us/requests/new?ticket_form_id=14868593862164). Existing OAuth credentials (obtained before November 2025) continue to work.
|
|
206
208
|
|
|
207
209
|
### Getting Credentials
|
|
@@ -212,27 +214,35 @@ Additionally, Reddit closed self-service OAuth app creation in November 2025. Ne
|
|
|
212
214
|
|
|
213
215
|
### Mode Comparison
|
|
214
216
|
|
|
215
|
-
| Mode | Rate Limit | Setup Required | Tools Available
|
|
216
|
-
| ----------------- | -------------- | ----------------- |
|
|
217
|
-
| `auto` (default) | 60-100 req/min | OAuth credentials | All tools
|
|
218
|
-
| `authenticated` | 60-100 req/min | OAuth credentials | All tools
|
|
219
|
-
| `auto` (no creds) |
|
|
220
|
-
| `anonymous` |
|
|
217
|
+
| Mode | Rate Limit | Setup Required | Tools Available | Best For |
|
|
218
|
+
| ----------------- | -------------- | ----------------- | ----------------------------------------------- | ------------- |
|
|
219
|
+
| `auto` (default) | 60-100 req/min | OAuth credentials | All tools | Most users |
|
|
220
|
+
| `authenticated` | 60-100 req/min | OAuth credentials | All tools | Explicit mode |
|
|
221
|
+
| `auto` (no creds) | Shared, free | None | Most read tools ([Keyless Mode](#keyless-mode)) | Quick testing |
|
|
222
|
+
| `anonymous` | Shared, free | None | Same as `auto` without credentials | Legacy alias |
|
|
221
223
|
|
|
222
|
-
###
|
|
224
|
+
### Keyless Mode
|
|
223
225
|
|
|
224
|
-
|
|
226
|
+
Without OAuth credentials, reads come from two free sources:
|
|
225
227
|
|
|
226
|
-
**
|
|
228
|
+
- **Reddit's RSS feeds** for ranked listings (`hot`, `top`, `rising`, `controversial`, and the home feed). Reddit retires RSS on 2026-11-13. When a feed fails for a named subreddit, the server falls back to the archive's newest posts and says ranking is unavailable.
|
|
229
|
+
- **The [Arctic Shift](https://github.com/ArthurHeitmann/arctic_shift) archive**, a free third-party copy of Reddit run by one volunteer. It is not Reddit's API and has no uptime guarantee.
|
|
227
230
|
|
|
228
|
-
|
|
231
|
+
| Tool | Keyless source | Limits |
|
|
232
|
+
| ------------------------------------------- | ---------------------- | ----------------------------------------------------------------------- |
|
|
233
|
+
| `browse_subreddit` (new) | Arctic Shift | One subreddit; no multireddits |
|
|
234
|
+
| `browse_subreddit` (other), `get_top_posts` | RSS, then Arctic Shift | Archive fallback is newest-first, not ranked |
|
|
235
|
+
| `get_reddit_post` | Arctic Shift | |
|
|
236
|
+
| `get_post_comments` | Arctic Shift | Recent comments may be missing; no sort |
|
|
237
|
+
| `get_more_comments` | Arctic Shift | |
|
|
238
|
+
| `get_user_info` | Arctic Shift | Account age estimated from first activity; status flags unknown |
|
|
239
|
+
| `get_user_posts`, `get_user_comments` | Arctic Shift | Newest first only |
|
|
240
|
+
| `get_subreddit_info`, `get_subreddit_rules` | Arctic Shift | |
|
|
241
|
+
| `search_reddit` | Arctic Shift | Posts need `subreddit`; `type=sr` matches name prefixes; no `type=user` |
|
|
229
242
|
|
|
230
|
-
|
|
231
|
-
- No pagination (single page of ~25 results)
|
|
232
|
-
- No search, user info, comments, or write operations
|
|
233
|
-
- Lower rate limit (~1 req/min vs 60-100 with OAuth)
|
|
243
|
+
**Archive caveats:** scores and comment counts lag, and are often 0 or 1 on recent posts. Keyword search on large subreddits is slow, and the archive throttles it; the server retries once. Every archive result ends with a note naming the source.
|
|
234
244
|
|
|
235
|
-
|
|
245
|
+
**Still needs OAuth:** `get_trending_subreddits`, `get_post_flairs`, `get_me`, `get_my_overview`, `get_my_saved`, and all write tools.
|
|
236
246
|
|
|
237
247
|
### Read-Only Access (OAuth)
|
|
238
248
|
|
package/dist/bin.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
// src/bin.ts
|
|
3
3
|
process.env.TRANSPORT_TYPE ??= "stdio";
|
|
4
4
|
const args = process.argv.slice(2);
|
|
5
5
|
if (args.includes("--version") || args.includes("-v")) {
|
|
6
|
-
console.log("1.
|
|
6
|
+
console.log("1.7.0");
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
if (args.includes("--help") || args.includes("-h")) {
|
|
10
10
|
console.log(`
|
|
11
|
-
Reddit MCP Server v1.
|
|
11
|
+
Reddit MCP Server v1.7.0
|
|
12
12
|
|
|
13
13
|
Usage: reddit-mcp-server [options]
|
|
14
14
|
|
|
@@ -16,6 +16,11 @@ Options:
|
|
|
16
16
|
-v, --version Show version number
|
|
17
17
|
-h, --help Show help
|
|
18
18
|
|
|
19
|
+
This is an MCP server, not an interactive CLI. In stdio mode (the default here) it
|
|
20
|
+
expects an MCP client such as Claude Desktop or Claude Code on stdin/stdout.
|
|
21
|
+
Test interactively: npx @modelcontextprotocol/inspector npx reddit-mcp-server
|
|
22
|
+
Run as HTTP: TRANSPORT_TYPE=httpStream npx reddit-mcp-server
|
|
23
|
+
|
|
19
24
|
Environment Variables:
|
|
20
25
|
REDDIT_CLIENT_ID Reddit API client ID (optional, for OAuth)
|
|
21
26
|
REDDIT_CLIENT_SECRET Reddit API client secret (optional, for OAuth)
|
|
@@ -35,7 +40,6 @@ async function main() {
|
|
|
35
40
|
await import("./index.js");
|
|
36
41
|
}
|
|
37
42
|
main().catch(console.error);
|
|
38
|
-
//#endregion
|
|
39
43
|
export {};
|
|
40
44
|
|
|
41
45
|
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","names":[],"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n\ndeclare const __VERSION__: string\n\n// Force stdio mode for CLI/npx usage (unless explicitly overridden)\nprocess.env.TRANSPORT_TYPE ??= \"stdio\"\n\n// Handle command line arguments BEFORE any other imports\nconst args = process.argv.slice(2)\n\nif (args.includes(\"--version\") || args.includes(\"-v\")) {\n console.log(__VERSION__)\n process.exit(0)\n}\n\nif (args.includes(\"--help\") || args.includes(\"-h\")) {\n console.log(`\nReddit MCP Server v${__VERSION__}\n\nUsage: reddit-mcp-server [options]\n\nOptions:\n -v, --version Show version number\n -h, --help Show help\n\nEnvironment Variables:\n REDDIT_CLIENT_ID Reddit API client ID (optional, for OAuth)\n REDDIT_CLIENT_SECRET Reddit API client secret (optional, for OAuth)\n REDDIT_USERNAME Reddit username (optional, for write operations)\n REDDIT_PASSWORD Reddit password (optional, for write operations)\n REDDIT_USER_AGENT Custom user agent (optional)\n REDDIT_AUTH_MODE Authentication mode: auto, authenticated, anonymous (default: auto)\n REDDIT_SAFE_MODE Spam protection: off, standard, strict (default: standard)\n REDDIT_BOT_DISCLOSURE Bot disclosure footer: auto, off (default: off)\n REDDIT_BOT_FOOTER Custom bot footer text (optional, used with REDDIT_BOT_DISCLOSURE=auto)\n\nFor more information, visit: https://github.com/jordanburke/reddit-mcp-server\n`)\n process.exit(0)\n}\n\n// Import and start server if not showing version/help\nasync function main() {\n await import(\"./index.js\")\n}\n\nvoid main().catch(console.error)\n"],"mappings":";;AAKA,QAAQ,IAAI,mBAAmB;AAG/B,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,IAAI,KAAK,SAAS,WAAW,KAAK,KAAK,SAAS,IAAI,GAAG;CACrD,QAAQ,IAAA,OAAe;CACvB,QAAQ,KAAK,CAAC;AAChB;AAEA,IAAI,KAAK,SAAS,QAAQ,KAAK,KAAK,SAAS,IAAI,GAAG;CAClD,QAAQ,IAAI
|
|
1
|
+
{"version":3,"file":"bin.js","names":[],"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n\ndeclare const __VERSION__: string\n\n// Force stdio mode for CLI/npx usage (unless explicitly overridden)\nprocess.env.TRANSPORT_TYPE ??= \"stdio\"\n\n// Handle command line arguments BEFORE any other imports\nconst args = process.argv.slice(2)\n\nif (args.includes(\"--version\") || args.includes(\"-v\")) {\n console.log(__VERSION__)\n process.exit(0)\n}\n\nif (args.includes(\"--help\") || args.includes(\"-h\")) {\n console.log(`\nReddit MCP Server v${__VERSION__}\n\nUsage: reddit-mcp-server [options]\n\nOptions:\n -v, --version Show version number\n -h, --help Show help\n\nThis is an MCP server, not an interactive CLI. In stdio mode (the default here) it\nexpects an MCP client such as Claude Desktop or Claude Code on stdin/stdout.\n Test interactively: npx @modelcontextprotocol/inspector npx reddit-mcp-server\n Run as HTTP: TRANSPORT_TYPE=httpStream npx reddit-mcp-server\n\nEnvironment Variables:\n REDDIT_CLIENT_ID Reddit API client ID (optional, for OAuth)\n REDDIT_CLIENT_SECRET Reddit API client secret (optional, for OAuth)\n REDDIT_USERNAME Reddit username (optional, for write operations)\n REDDIT_PASSWORD Reddit password (optional, for write operations)\n REDDIT_USER_AGENT Custom user agent (optional)\n REDDIT_AUTH_MODE Authentication mode: auto, authenticated, anonymous (default: auto)\n REDDIT_SAFE_MODE Spam protection: off, standard, strict (default: standard)\n REDDIT_BOT_DISCLOSURE Bot disclosure footer: auto, off (default: off)\n REDDIT_BOT_FOOTER Custom bot footer text (optional, used with REDDIT_BOT_DISCLOSURE=auto)\n\nFor more information, visit: https://github.com/jordanburke/reddit-mcp-server\n`)\n process.exit(0)\n}\n\n// Import and start server if not showing version/help\nasync function main() {\n await import(\"./index.js\")\n}\n\nvoid main().catch(console.error)\n"],"mappings":";;AAKA,QAAQ,IAAI,mBAAmB;AAG/B,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,IAAI,KAAK,SAAS,WAAW,KAAK,KAAK,SAAS,IAAI,GAAG;CACrD,QAAQ,IAAA,OAAe;CACvB,QAAQ,KAAK,CAAC;AAChB;AAEA,IAAI,KAAK,SAAS,QAAQ,KAAK,KAAK,SAAS,IAAI,GAAG;CAClD,QAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bb;CACC,QAAQ,KAAK,CAAC;AAChB;AAGA,eAAe,OAAO;CACpB,MAAM,OAAO;AACf;AAEK,KAAK,CAAC,CAAC,MAAM,QAAQ,KAAK"}
|