Skip to main content
Glama
eliasbiondo

Reddit MCP Server

by eliasbiondo

reddit_get_post

Retrieve complete Reddit post details and nested comment threads using a permalink to analyze discussions or extract content.

Instructions

Get full details of a Reddit post including its comment tree.

Args: permalink: Reddit permalink path (e.g., '/r/Python/comments/abc123/my_post/')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
permalinkYes

Implementation Reference

  • The handler function 'reddit_get_post' which executes the tool logic by calling the PostService.
    async def reddit_get_post(
        permalink: str,
        ctx: Context,
    ) -> dict[str, Any]:
        try:
            result = await service.get_post(permalink)
            return McpSerializer.serialize(result)
        except Exception as e:
            McpErrorMapper.map(e, "reddit_get_post")
  • Registration of the 'reddit_get_post' tool using the FastMCP decorator.
    @mcp.tool(
        name="reddit_get_post",
        description=(
            "Get full details of a Reddit post including its comment tree.\n\n"
            "Args:\n"
            "    permalink: Reddit permalink path "
            "(e.g., '/r/Python/comments/abc123/my_post/')"
        ),
    )

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