{"id":48288116,"url":"https://github.com/hamzashahbaz/reddit-mcp","last_synced_at":"2026-04-04T23:00:11.862Z","repository":{"id":347878133,"uuid":"1195529486","full_name":"hamzashahbaz/reddit-mcp","owner":"hamzashahbaz","description":"Read-only Reddit MCP server for Claude Code and other MCP clients","archived":false,"fork":false,"pushed_at":"2026-03-29T20:51:43.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T22:26:29.405Z","etag":null,"topics":["ai","claude","mcp","mcp-server","model-context-protocol","reddit","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamzashahbaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-29T19:17:40.000Z","updated_at":"2026-03-29T20:51:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hamzashahbaz/reddit-mcp","commit_stats":null,"previous_names":["hamzashahbaz/reddit-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hamzashahbaz/reddit-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamzashahbaz%2Freddit-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamzashahbaz%2Freddit-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamzashahbaz%2Freddit-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamzashahbaz%2Freddit-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamzashahbaz","download_url":"https://codeload.github.com/hamzashahbaz/reddit-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamzashahbaz%2Freddit-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31418285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude","mcp","mcp-server","model-context-protocol","reddit","typescript"],"created_at":"2026-04-04T23:00:11.007Z","updated_at":"2026-04-04T23:00:11.842Z","avatar_url":"https://github.com/hamzashahbaz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reddit-mcp\n\nA read-only MCP server built for Claude that connects to the **Reddit Data API** (`oauth.reddit.com`). Search posts, browse subreddits, read comments, view user profiles, and check trending content — all through the Model Context Protocol.\n\n### Quick Install (Claude Code)\n\n```bash\nnpx -y @hamzashahbaz/reddit-mcp\n```\n\nOr add it to Claude Code with environment variables:\n\n```bash\nclaude mcp add reddit -e REDDIT_CLIENT_ID=your_id -e REDDIT_CLIENT_SECRET=your_secret -e REDDIT_USERNAME=your_username -e REDDIT_PASSWORD=your_password -- npx -y @hamzashahbaz/reddit-mcp\n```\n\n## Features\n\n- **Search Reddit** -- query posts across all of Reddit or within a specific subreddit\n- **Browse subreddits** -- get posts sorted by hot, new, top, or rising\n- **Read comments** -- fetch a post's details and top-level comments\n- **User profiles** -- view profile info and recent activity (posts, comments, or both)\n- **Trending posts** -- see what's popular on r/popular\n\n## Prerequisites\n\n- Node.js 18+\n- A Reddit account\n- A Reddit \"script\" application (free) -- see [Setup](#setup)\n\n## Setup\n\n### 1. Request Reddit API access\n\nReddit requires API access approval before you can create apps.\n\n1. Go to [Reddit Help — Submit a request](https://support.reddithelp.com/hc/en-us/requests/new?ticket_form_id=14868593862164)\n2. Select **API Access Request**\n3. Fill in the form:\n   - **Benefit/purpose**: Read-only content browsing tool that helps users discover and read Reddit content through AI assistants — no posting, commenting, or voting.\n   - **Detailed description**: reddit-mcp is an open-source MCP (Model Context Protocol) server that provides read-only access to Reddit's public content. It allows AI assistants to search posts, browse subreddits, read comments, and view user profiles. All operations are read-only GET requests. Source code: https://github.com/hamzashahbaz/reddit-mcp\n   - **Devvit question**: This tool is an external read-only client that integrates Reddit content into AI workflows — a use case outside Devvit's scope.\n   - **Source code link**: `https://github.com/hamzashahbaz/reddit-mcp`\n   - **Subreddits**: General-purpose — works with any public subreddit\n4. Submit and wait for approval (typically a few days)\n\n### 2. Create a Reddit script app\n\nOnce approved:\n\n1. Go to [reddit.com/prefs/apps](https://www.reddit.com/prefs/apps)\n2. Click **\"create another app...\"**\n3. Fill in:\n   - **name**: anything (e.g., `mcp-reader`)\n   - **type**: select **script**\n   - **redirect uri**: `http://localhost:8080` (not used, but required)\n4. Note your **client ID** (under the app name) and **client secret**\n\n### 3. Clone and build\n\n```bash\ngit clone https://github.com/hamzashahbaz/reddit-mcp.git\ncd reddit-mcp\nnpm install\nnpm run build\n```\n\n## Configuration\n\nAdd to your `.mcp.json` (Claude Code) or `claude_desktop_config.json` (Claude Desktop):\n\n```json\n{\n  \"mcpServers\": {\n    \"reddit\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/reddit-mcp/dist/server.js\"],\n      \"env\": {\n        \"REDDIT_CLIENT_ID\": \"your_client_id\",\n        \"REDDIT_CLIENT_SECRET\": \"your_client_secret\",\n        \"REDDIT_USERNAME\": \"your_reddit_username\",\n        \"REDDIT_PASSWORD\": \"your_reddit_password\"\n      }\n    }\n  }\n}\n```\n\nReplace `/path/to/reddit-mcp` with the actual path to your cloned directory.\n\n## Tools\n\n| Tool | Description | Key Parameters |\n|------|-------------|----------------|\n| `search_reddit` | Search posts by query | `query`, `subreddit?`, `sort`, `time_filter`, `limit` |\n| `get_subreddit_posts` | Browse a subreddit | `subreddit`, `sort`, `time_filter`, `limit` |\n| `get_post_comments` | Get post details + comments | `post_id`, `sort`, `limit` |\n| `get_user_profile` | User info + recent activity | `username`, `content_type`, `limit` |\n| `get_trending` | Trending posts from r/popular | *(none)* |\n\n### Parameter details\n\n- **sort** (search): `relevance`, `hot`, `top`, `new`\n- **sort** (subreddit): `hot`, `new`, `top`, `rising`\n- **sort** (comments): `best`, `top`, `new`, `controversial`\n- **time_filter**: `hour`, `day`, `week`, `month`, `year`, `all`\n- **content_type**: `overview`, `posts`, `comments`\n- **limit**: 1-25 for most tools, 1-50 for comments\n\n## How it works\n\n- Uses the **Reddit Data API** (REST) at `https://oauth.reddit.com`\n- Authenticates via OAuth 2.0 password grant (script app)\n- All operations are read-only GET requests\n- Tokens cached in memory, auto-refreshed before expiry\n- Respects Reddit rate limits (100 req/min authenticated)\n- Built for **Claude Code** and **Claude Desktop** via the Model Context Protocol (MCP)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamzashahbaz%2Freddit-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamzashahbaz%2Freddit-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamzashahbaz%2Freddit-mcp/lists"}