Skip to main content
Glama

Reddit MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REDDIT_PASSWORDNoYour Reddit password (optional for authenticated operations)
REDDIT_USERNAMENoYour Reddit username (optional for authenticated operations)
REDDIT_CLIENT_IDNoYour Reddit API client ID obtained from Reddit's app preferences page
REDDIT_CLIENT_SECRETNoYour Reddit API client secret obtained from Reddit's app preferences page

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_user_info

Get information about a Reddit user.

Args: username (str): The username of the Reddit user to get info for Returns: Dict: Formatted user information as bullet points
get_top_posts

Get top posts from a subreddit.

Args: subreddit (str): Name of the subreddit time_filter (str): Time period to filter posts (e.g. "day", "week", "month", "year", "all") limit (int): Number of posts to fetch Returns: Dict: List of formatted top posts as bullet points
get_subreddit_info

Get information about a subreddit.

Args: subreddit_name (str): Name of the subreddit Returns: Dict: Subreddit information including description, subscribers, etc.
get_trending_subreddits

Get currently trending subreddits.

Returns: Dict: List of trending subreddit names
get_subreddit_stats

Get statistics about a subreddit.

Args: subreddit (str): Name of the subreddit Returns: Dict: Formatted subreddit statistics and information
create_post

Create a new post in a subreddit.

Args: subreddit (str): Name of the subreddit to post in title (str): Title of the post content (str): Content of the post (text for self posts, URL for link posts) flair (Optional[str]): Flair to add to the post. Must be an available flair in the subreddit is_self (bool): Whether this is a self (text) post (True) or link post (False) Returns: Dict: Formatted information about the created post
reply_to_post

Post a reply to an existing Reddit post.

Args: post_id (str): The ID of the post to reply to (can be full URL, permalink, or just ID) content (str): The content of the reply subreddit (Optional[str]): The subreddit name if known (for validation) Returns: Dict: Formatted information about the created reply
reply_to_comment

Post a reply to an existing Reddit comment.

Args: comment_id (str): The ID of the comment to reply to (can be full URL, permalink, or just ID) content (str): The content of the reply subreddit (Optional[str]): The subreddit name if known (for validation) Returns: Dict: Formatted information about the created reply
get_submission_by_url

Get a Reddit submission by its URL.

Args: url (str): The URL of the Reddit submission to retrieve Returns: Dict: Formatted information about the submission
get_submission_by_id

Get a Reddit submission by its ID.

Args: submission_id (str): The ID of the Reddit submission to retrieve Returns: Dict: Formatted information about the submission
who_am_i

Get information about the currently authenticated user.

Returns: Dict: Formatted information about the current user

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

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