Skip to main content
Glama

Reddit MCP Server

by tandat8503

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TIMEOUT_SECONDSNoRequest timeout in seconds30
REDDIT_CLIENT_IDYesYour Reddit app client ID
REDDIT_USER_AGENTYesUser agent string for Reddit API requests (format: Your-App-Name/1.0.0 (by /u/YourUsername))
REDDIT_OAUTH_SCOPESNoOAuth scopes for Reddit API accessread submit vote history privatemessages subscribe
REDDIT_REDIRECT_URINoOAuth2 redirect URI (must match Reddit app configuration exactly)http://localhost:8080/callback
REDDIT_CLIENT_SECRETYesYour Reddit app client secret

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_subreddit_posts

๐Ÿ“– Get posts from a subreddit ๐ŸŽฏ What it does: Fetches posts from any Reddit subreddit with sorting options ๐Ÿ“ Required: subreddit name (e.g., 'programming', 'AskReddit', 'MachineLearning') โš™๏ธ Optional: sort ('hot', 'new', 'top') ๐Ÿ’ก Examples: โ€ข Get hot posts: {"subreddit": "programming"} โ€ข Get new posts: {"subreddit": "AskReddit", "sort": "new"} โ€ข Get top posts: {"subreddit": "MachineLearning", "sort": "top"} ๐Ÿ” Output: Formatted list with title, author, score, comments, date, and Reddit link

search_reddit

๐Ÿ” Search Reddit posts and comments ๐ŸŽฏ What it does: Searches across Reddit or within a specific subreddit ๐Ÿ“ Required: query (search terms) โš™๏ธ Optional: subreddit (limit search to specific subreddit) ๐Ÿ’ก Examples: โ€ข Global search: {"query": "machine learning"} โ€ข Subreddit search: {"query": "python tutorial", "subreddit": "programming"} โ€ข Tech search: {"query": "TypeScript", "subreddit": "typescript"} ๐Ÿ” Output: Formatted search results with title, author, subreddit, score, and link

get_user_profile

๐Ÿ‘ค Get Reddit user profile information ๐ŸŽฏ What it does: Fetches detailed profile info for any Reddit user ๐Ÿ“ Required: username (Reddit username without u/ prefix) ๐Ÿ’ก Examples: โ€ข Get profile: {"username": "spez"} โ€ข Check user: {"username": "AwkwardTension4482"} โ€ข View profile: {"username": "gallowboob"} ๐Ÿ” Output: User info with karma, account age, gold status, moderator status, and profile link

get_subreddit_info

๐Ÿ  Get subreddit information ๐ŸŽฏ What it does: Fetches detailed info about any Reddit subreddit ๐Ÿ“ Required: subreddit name (without r/ prefix) ๐Ÿ’ก Examples: โ€ข Get info: {"subreddit": "programming"} โ€ข Check subreddit: {"subreddit": "AskReddit"} โ€ข View details: {"subreddit": "MachineLearning"} ๐Ÿ” Output: Subreddit details with description, subscribers, active users, creation date, NSFW status, and URL

get_post_comments

๐Ÿ’ฌ Get comments for a Reddit post ๐ŸŽฏ What it does: Fetches comments and replies for any Reddit post ๐Ÿ“ Required: post_id (Reddit post ID, found in post URLs) โš™๏ธ Optional: sort ('best', 'top', 'new') ๐Ÿ’ก Examples: โ€ข Get comments: {"post_id": "1n1nlse"} โ€ข Best comments: {"post_id": "1n1nlse", "sort": "best"} โ€ข New comments: {"post_id": "1n1nlse", "sort": "new"} ๐Ÿ” Output: Formatted comment tree with author, score, timestamp, and nested replies

get_trending_subreddits

๐Ÿ”ฅ Get trending/popular subreddits ๐ŸŽฏ What it does: Fetches list of currently popular and trending subreddits ๐Ÿ“ Required: None (no parameters needed) ๐Ÿ’ก Examples: โ€ข Get trending: {} โ€ข Simple call: {} ๐Ÿ” Output: List of trending subreddits with name, title, subscribers, description, and URL

get_cross_posts

๐Ÿ”„ Find crossposts of a Reddit post ๐ŸŽฏ What it does: Finds posts that were cross-posted from the original post ๐Ÿ“ Required: post_id (Reddit post ID to find crossposts for) ๐Ÿ’ก Examples: โ€ข Find crossposts: {"post_id": "1n1nlse"} โ€ข Check shares: {"post_id": "1abc123"} ๐Ÿ” Output: List of crossposts with title, author, subreddit, score, and Reddit link

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/tandat8503/mcp-reddit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server