ReddGrowReddGrow Docs
Guides

MCP Integration

Use ReddGrow as an MCP server with Claude Desktop

The Model Context Protocol (MCP) is an open standard that lets AI assistants like Claude call external tools directly during a conversation. By configuring the ReddGrow CLI as an MCP server, Claude Desktop gains persistent access to Reddit data without any code on your part.


Prerequisites

  • Claude Desktop installed
  • ReddGrow CLI installed globally: npm install -g @reddgrow/cli
  • A valid API key (set as REDDGROW_API_KEY in your environment)

Configure Claude Desktop

Open your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the ReddGrow MCP server entry:

{
  "mcpServers": {
    "reddgrow": {
      "command": "reddgrow",
      "args": ["mcp"],
      "env": {
        "REDDGROW_API_KEY": "rg_your_key_here"
      }
    }
  }
}

Restart Claude Desktop. You should see a tools icon in the chat input area indicating MCP tools are available.


Available MCP tools

Once configured, Claude can call the following tools on your behalf:

ToolDescriptionCredits
subreddit_aboutGet subreddit metadata and description1
subreddit_rulesGet posting rules for a subreddit1
subreddit_postsList posts from a subreddit2
subreddit_wikiRead a subreddit wiki page5
subreddit_check_urlCheck if a URL was posted to a subreddit3
search_postsSearch Reddit posts by keyword3
domain_mentionsGet Reddit posts linking to a domain5
batch_postsFetch multiple posts by ID5
user_aboutGet a Reddit user's profile1

Example MCP tool definitions

The CLI exposes these as structured MCP tool definitions. Here is what subreddit_about looks like internally:

{
  "name": "subreddit_about",
  "description": "Fetch metadata for a subreddit including subscriber count, description, and posting settings",
  "inputSchema": {
    "type": "object",
    "properties": {
      "subreddit": {
        "type": "string",
        "description": "Subreddit name without the r/ prefix"
      }
    },
    "required": ["subreddit"]
  }
}

And search_posts:

{
  "name": "search_posts",
  "description": "Search Reddit posts by keyword, optionally limited to a subreddit",
  "inputSchema": {
    "type": "object",
    "properties": {
      "query": {
        "type": "string",
        "description": "Search query"
      },
      "subreddit": {
        "type": "string",
        "description": "Limit results to this subreddit (optional)"
      },
      "sort": {
        "type": "string",
        "enum": ["relevance", "hot", "top", "new"],
        "description": "Sort order"
      },
      "limit": {
        "type": "number",
        "description": "Number of results (max 25)"
      }
    },
    "required": ["query"]
  }
}

Using ReddGrow tools in conversation

Once the MCP server is running, you can ask Claude naturally:

"Research r/typescript for me — what are their rules, and what are the top posts this week?"

Claude will automatically call subreddit_rules and subreddit_posts behind the scenes and summarize the results for you.

"Has anyone on Reddit linked to stripe.com/docs/payments recently?"

Claude will call domain_mentions with stripe.com and report back.


Using the SKILL.md with OpenClaw

If you use OpenClaw or another MCP-compatible agent framework, the ReddGrow CLI ships with a SKILL.md file that describes all available operations in a format compatible with skill-based agent systems.

Run the following to print the skill definition:

reddgrow skill

Paste the output into your OpenClaw skill configuration or any framework that accepts Markdown-based tool descriptions.


Troubleshooting

Tools not appearing in Claude Desktop

  • Verify reddgrow mcp runs without error from your terminal
  • Check that REDDGROW_API_KEY is set correctly in the config env block
  • Restart Claude Desktop after editing the config file

Authentication errors

  • Confirm your key starts with rg_
  • Test the key directly: curl -H "x-api-key: rg_your_key" https://api.reddgrow.ai/agent/me

Credit errors during tool calls

  • Check your balance: reddgrow me
  • Each tool call consumes credits from your account — see the cost table above