Skip to main content
Glama
eliasbiondo

Reddit MCP Server

by eliasbiondo

reddit_get_user

Retrieve a Reddit user's recent public posts and comments to analyze their activity and contributions across the platform.

Instructions

Get a Reddit user's recent public activity (posts and comments).

Args: username: Reddit username without u/ prefix (e.g., 'spez', 'GallowBoob') limit: Maximum number of activity items (default: 25, max: 100)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
limitNo

Implementation Reference

  • Implementation of the 'reddit_get_user' MCP tool, which delegates to the user_service and handles serialization and errors.
    @mcp.tool(
        name="reddit_get_user",
        description=(
            "Get a Reddit user's recent public activity "
            "(posts and comments).\n\n"
            "Args:\n"
            "    username: Reddit username without u/ prefix "
            "(e.g., 'spez', 'GallowBoob')\n"
            "    limit: Maximum number of activity items "
            "(default: 25, max: 100)"
        ),
    )
    async def reddit_get_user(
        username: str,
        ctx: Context,
        limit: int = 25,
    ) -> list[dict[str, Any]]:
        try:
            results = await service.get_user(username, limit=limit)
            return McpSerializer.serialize_list(results)
        except Exception as e:
            McpErrorMapper.map(e, "reddit_get_user")

Latest Blog Posts

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

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