reddit-mcp-server 1.0.9 → 1.0.10
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 +63 -26
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -4,30 +4,26 @@ A Model Context Protocol (MCP) that provides tools for fetching and creating Red
|
|
|
4
4
|
|
|
5
5
|
> **Note**: This is a fork of the original [reddit-mcp-server](https://github.com/alexandros-lekkas/reddit-mcp-server) by Alexandros Lekkas, updated with pnpm, tsup build system, and npx execution support.
|
|
6
6
|
|
|
7
|
-
[](https://smithery.ai/server/@jordanburke/reddit-mcp-server)
|
|
8
|
-
|
|
9
7
|
https://github.com/user-attachments/assets/caa37704-7c92-4bf8-b7e8-56d02ccb4983
|
|
10
8
|
|
|
11
|
-
## 🧑💻 About
|
|
12
|
-
|
|
13
|
-
https://www.linkedin.com/feed/update/urn:li:activity:7328864060534419457/
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
9
|
## 🔧 Available Tools (Features)
|
|
18
10
|
|
|
19
11
|
**Read-only Tools (Client Credentials):**
|
|
20
12
|
|
|
21
|
-
- `
|
|
22
|
-
- `get_top_posts(subreddit, time_filter, limit)` - Get
|
|
23
|
-
- `
|
|
24
|
-
- `
|
|
13
|
+
- `get_reddit_post(subreddit, post_id)` - Get a specific Reddit post
|
|
14
|
+
- `get_top_posts(subreddit, time_filter, limit)` - Get top posts from a subreddit
|
|
15
|
+
- `get_user_info(username)` - Get information about a Reddit user
|
|
16
|
+
- `get_subreddit_info(subreddit_name)` - Get information about a subreddit
|
|
17
|
+
- `get_trending_subreddits()` - Get currently trending subreddits
|
|
18
|
+
- `search_reddit(query, subreddit?, sort?, time_filter?, limit?, type?)` - Search for posts on Reddit
|
|
19
|
+
- `get_post_comments(post_id, subreddit, sort?, limit?)` - Get comments for a specific Reddit post
|
|
20
|
+
- `get_user_posts(username, sort?, time_filter?, limit?)` - Get posts submitted by a specific user
|
|
21
|
+
- `get_user_comments(username, sort?, time_filter?, limit?)` - Get comments made by a specific user
|
|
25
22
|
|
|
26
|
-
**
|
|
23
|
+
**Write Tools (User Credentials Required):**
|
|
27
24
|
|
|
28
|
-
- `create_post(subreddit, title, content,
|
|
29
|
-
- `reply_to_post(post_id, content, subreddit)` -
|
|
30
|
-
- `reply_to_comment(comment_id, content, subreddit)` - Add a strategic reply
|
|
25
|
+
- `create_post(subreddit, title, content, is_self)` - Create a new post in a subreddit
|
|
26
|
+
- `reply_to_post(post_id, content, subreddit?)` - Post a reply to an existing Reddit post
|
|
31
27
|
|
|
32
28
|
## 🔌 Installation
|
|
33
29
|
|
|
@@ -36,7 +32,7 @@ https://www.linkedin.com/feed/update/urn:li:activity:7328864060534419457/
|
|
|
36
32
|
To install Reddit Content Integration Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@alexandros-lekkas/reddit-mcp-server):
|
|
37
33
|
|
|
38
34
|
```bash
|
|
39
|
-
npx -y @smithery/cli install
|
|
35
|
+
npx -y @smithery/cli install reddit-mcp-server --client claude
|
|
40
36
|
```
|
|
41
37
|
|
|
42
38
|
### Manual Installation
|
|
@@ -58,11 +54,13 @@ If you want to write posts you need to include your `REDDIT_USERNAME` and `REDDI
|
|
|
58
54
|
|
|
59
55
|
5. Install dependencies with `pnpm install`
|
|
60
56
|
|
|
61
|
-
6.
|
|
57
|
+
6. Build the project with `pnpm build`
|
|
58
|
+
|
|
59
|
+
7. Run with `pnpm dev` and open the inspection server (http://127.0.0.1:6274/)
|
|
62
60
|
|
|
63
61
|

|
|
64
62
|
|
|
65
|
-
|
|
63
|
+
8. If the connection works, add this to your MCP config (for Cursor or Claude Desktop)
|
|
66
64
|
|
|
67
65
|
```json
|
|
68
66
|
"mcpServers": {
|
|
@@ -72,10 +70,10 @@ If you want to write posts you need to include your `REDDIT_USERNAME` and `REDDI
|
|
|
72
70
|
"reddit-mcp-server"
|
|
73
71
|
],
|
|
74
72
|
"env": {
|
|
75
|
-
"REDDIT_CLIENT_ID": "
|
|
76
|
-
"REDDIT_CLIENT_SECRET": "
|
|
77
|
-
"REDDIT_USERNAME": "
|
|
78
|
-
"REDDIT_PASSWORD": "
|
|
73
|
+
"REDDIT_CLIENT_ID": "<YOUR_CLIENT_ID>",
|
|
74
|
+
"REDDIT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
|
|
75
|
+
"REDDIT_USERNAME": "<YOUR_USERNAME_OPTIONAL>",
|
|
76
|
+
"REDDIT_PASSWORD": "<YOUR_PASSWORD_OPTIONAL>"
|
|
79
77
|
},
|
|
80
78
|
"autoApprove": [
|
|
81
79
|
"get_reddit_post",
|
|
@@ -83,6 +81,10 @@ If you want to write posts you need to include your `REDDIT_USERNAME` and `REDDI
|
|
|
83
81
|
"get_user_info",
|
|
84
82
|
"get_subreddit_info",
|
|
85
83
|
"get_trending_subreddits",
|
|
84
|
+
"search_reddit",
|
|
85
|
+
"get_post_comments",
|
|
86
|
+
"get_user_posts",
|
|
87
|
+
"get_user_comments",
|
|
86
88
|
"create_post",
|
|
87
89
|
"reply_to_post"
|
|
88
90
|
] // You don't need to add this, but it makes it so that you don't have to keep clicking approve
|
|
@@ -92,10 +94,45 @@ If you want to write posts you need to include your `REDDIT_USERNAME` and `REDDI
|
|
|
92
94
|
|
|
93
95
|
(Make sure to replace the environmental variables with your actual keys, not the 😜 emoji)
|
|
94
96
|
|
|
97
|
+
## 🛠️ Development
|
|
98
|
+
|
|
99
|
+
### Commands
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Install dependencies
|
|
103
|
+
pnpm install
|
|
104
|
+
|
|
105
|
+
# Build TypeScript to JavaScript
|
|
106
|
+
pnpm build
|
|
107
|
+
|
|
108
|
+
# Run the MCP inspector for development/testing
|
|
109
|
+
pnpm inspect
|
|
110
|
+
|
|
111
|
+
# Build and run inspector in one command
|
|
112
|
+
pnpm dev
|
|
113
|
+
|
|
114
|
+
# Run tests
|
|
115
|
+
pnpm test
|
|
116
|
+
|
|
117
|
+
# Lint code
|
|
118
|
+
pnpm lint
|
|
119
|
+
|
|
120
|
+
# Format code
|
|
121
|
+
pnpm format
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Version & Help
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# Check version
|
|
128
|
+
npx reddit-mcp-server --version
|
|
129
|
+
|
|
130
|
+
# Show help
|
|
131
|
+
npx reddit-mcp-server --help
|
|
132
|
+
```
|
|
133
|
+
|
|
95
134
|
## 📚 Credits
|
|
96
135
|
|
|
97
136
|
- This is a fork of the original [reddit-mcp-server](https://github.com/alexandros-lekkas/reddit-mcp-server) by Alexandros Lekkas.
|
|
98
137
|
|
|
99
|
-
- Credit goes to the [Python Reddit MCP Server](https://github.com/Arindam200/reddit-mcp) by Arindam200 for the inspiration and implementation of these tools.
|
|
100
|
-
|
|
101
|
-
- Credit goes to [Eugene Sh](https://medium.com/@eugenesh4work/how-to-build-an-mcp-server-fast-a-step-by-step-tutorial-e09faa5f7e3b) for the tutorial on how to build an MCP server (which was used as a reference for this implementation).
|
|
138
|
+
- Credit goes to the [Python Reddit MCP Server](https://github.com/Arindam200/reddit-mcp) by Arindam200 for the inspiration and implementation of these tools.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reddit-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "A Model Context Protocol (MCP) that provides tools for fetching and creating Reddit content. Fork of the alexandros-lekkas/reddit-mcp-server.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Jordan Burke <jordan.burke@gmail.com>",
|
|
22
22
|
"license": "MIT",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/jordanburke/reddit-mcp-server.git"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/jordanburke/reddit-mcp-server/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/jordanburke/reddit-mcp-server#readme",
|
|
23
31
|
"dependencies": {
|
|
24
32
|
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
25
33
|
"dotenv": "^16.6.1"
|