Home / Servers

reddit-lyr

by ishan-parihar

Reddit-Httpx

Python License MCP Endpoints Async

Complete Reddit API wrapper — 50+ endpoints, async httpx, MCP server, zero PRAW dependency.

Reddit-Httpx MCP


What it is

LayerDescription
CoreRedditClient — async, typed, 50+ endpoints
MCP Server32 tools for agents (browse, post, comment, vote, mod)
CLIreddit-httpx browse, reddit-httpx post, reddit-httpx inbox

Endpoints: Frontpage, Subreddits, Posts, Comments, Users, Messages, Moderation, Search, Wiki, Live, Collections, Awards, Polls, Predictions


Quick start

# Install
pipx install reddit-httpx

# Auth (interactive)
reddit-httpx auth login

# Use as library
from reddit_httpx import RedditClient
client = RedditClient()
posts = await client.browse_subreddit("rust", sort="hot", limit=25)

# MCP server for agents
reddit-httpx mcp

MCP Tools (32)

CategoryTools
Browsebrowse_frontpage, browse_popular, browse_subreddit, get_post, get_comments
Postsubmit_text, submit_link, edit_post, delete_post
Commentcomment, reply, edit_comment, delete_comment
Votevote_post, vote_comment
Messageget_inbox, send_message, mark_read
Userget_profile, get_karma, get_saved
Modmod_approve, mod_remove, mod_lock, mod_sticky
Searchsearch_posts, search_subreddits, search_users

Architecture

┌─────────────────────────────────────────────────────────────┐
│                    RedditClient                               │
├─────────────────────────────────────────────────────────────┤
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌──────────┐     │
│  │  Auth    │  │  Models  │  │  Endpoints│  │  MCP     │     │
│  │  (OAuth) │  │  (Pydantic)│  │  (50+)   │  │  Server  │     │
│  └──────────┘  └──────────┘  └──────────┘  └──────────┘     │
└─────────────────────────────────────────────────────────────┘
                    │
                    ▼
           httpx.AsyncClient
           (connection pool, retry, timeout)

Example: Agent browsing Reddit

# Agent uses MCP tools:
# 1. browse_subreddit("MachineLearning", sort="hot", limit=10)
# 2. get_post("t3_abc123") → full post + comments
# 3. search_posts("transformer architecture", subreddit="MachineLearning")
# 4. submit_text("r/MySub", "Title", "Body") — with auth

Visual proof

MCP toolsComment treePost detail
ToolsCommentsPost
Search resultsMod toolsMessage inbox
SearchModMessages

Requirements

  • Python 3.11+
  • Reddit app credentials (client_id, client_secret)

License

MIT — see LICENSE.

Related servers

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTION198,904

@modelcontextprotocol/server-everything

Official

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,105

@modelcontextprotocol/server-filesystem

Official

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSE89,105

mcp-server-fetch

Official

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,105