Reddit MCP Server
Reddit MCP Server
MCP server that lets Claude (and other MCP clients) scan, search, and read Reddit posts and comments.
Tools
Tool | Description |
| Fetch posts from a subreddit by sort order (hot/top/new/rising) with optional comments |
| Search Reddit posts by keyword across one or all subreddits |
| Get full details and comments for a specific post |
| Find subreddits by topic keyword |
| Get metadata for a subreddit |
Setup
npm install
npm run buildRequires Node.js 18 or newer.
The server uses Reddit's public JSON endpoints and does not require Reddit API credentials.
Claude Desktop Configuration
Add to your Claude Desktop config (~/.config/Claude/claude_desktop_config.json on macOS/Linux, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"reddit": {
"command": "node",
"args": ["/absolute/path/to/reddit-mcp/dist/server.js"]
}
}
}Replace the example path with the path where you cloned this repository.
VS Code MCP Configuration
Add to your VS Code settings (.vscode/mcp.json):
{
"servers": {
"reddit": {
"type": "stdio",
"command": "node",
"args": ["${workspaceFolder}/dist/server.js"]
}
}
}When configuring this outside the repository workspace, replace ${workspaceFolder} with the absolute path to the cloned repository.
Usage Examples
Once connected, Claude can use these tools:
Scan a subreddit: "Show me the top 20 posts from r/programming this week"
Search posts: "Search Reddit for 'MCP server tutorial'"
Get post details: "Get the comments on that first post"
Architecture
src/server.ts— MCP server entry, tool registration, stdio transportsrc/tools/— Individual tool handlers with input validationsrc/reddit/— Reddit data client with provider abstractionsrc/reddit/providers/publicJson.ts— Public JSON endpoint provider (MVP)src/core/— Shared types, validation, and error taxonomysrc/tests/— Unit tests for caching and comment deduplication
The provider interface (RedditProvider) makes it easy to swap to Reddit OAuth API later without changing any tool code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jimbolo/reddit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server