KosmoKrator

data

Reddit MCP Integration for Claude Agent SDK

Connect Reddit to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

9 functions 7 read 2 write Manual OAuth token auth

Connect Reddit to Claude Agent SDK

Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.

Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with --write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.

Reddit MCP Config for Claude Agent SDK

Use a narrow integration list so the agent does not load unrelated tools.

{
  "mcpServers": {
    "kosmokrator-reddit": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=reddit",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=reddit --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Reddit instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Reddit Tools Visible to Claude Agent SDK

Claude Agent SDK sees stable MCP tool names generated from the Reddit integration catalog.

MCP toolSource functionTypeDescription
integration__reddit__reddit_create_comment reddit.reddit_create_comment Write Post a comment on a Reddit post or reply to an existing comment. The comment body supports Markdown formatting. Use "t3_" prefix for post IDs or "t1_" prefix for comment IDs as the parent.
integration__reddit__reddit_create_post reddit.reddit_create_post Write Submit a new post to a subreddit. Supports text (self), link, image, and video post types.
integration__reddit__reddit_get_current_user reddit.reddit_get_current_user Read Get the profile of the currently authenticated Reddit user. Useful for verifying credentials and displaying account information.
integration__reddit__reddit_get_post reddit.reddit_get_post Read Get details for a specific Reddit post by subreddit and post ID. Returns the post listing and its top-level comments.
integration__reddit__reddit_get_subreddit reddit.reddit_get_subreddit Read Get information about a specific subreddit including subscriber count, description, and settings.
integration__reddit__reddit_list_comments reddit.reddit_list_comments Read List comments for a specific Reddit post. Supports sorting (best, top, new, controversial, old, q&a) and depth limiting.
integration__reddit__reddit_list_posts reddit.reddit_list_posts Read List posts from a subreddit or the Reddit front page. Supports hot, new, top, rising, and controversial sorting with pagination via after/before cursors.
integration__reddit__reddit_list_subreddits reddit.reddit_list_subreddits Read List popular or new subreddits. Supports pagination with after/before cursors.
integration__reddit__reddit_search reddit.reddit_search Read Search Reddit for posts, subreddits, or users. Supports filtering by type, sorting, and time range. Use this to find relevant content across Reddit.

Related Reddit Pages