data
Reddit MCP, CLI, and Lua Integration for AI Agents
Reddit integration docs for AI agents: MCP gateway setup, Reddit CLI commands, Lua API reference, credentials, and function schemas.
9 functions 7 read 2 write Manual OAuth token auth
Reddit for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
reddit- route_slug
reddit- package
reddit- auth_strategy
oauth2_manual_tokenManual OAuth token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Reddit CLIHeadless setup and direct function calls. Reddit MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Reddit MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Reddit.
Claude Code Reddit MCP setup for Claude Code. Cursor Reddit MCP setup for Cursor. Codex Reddit MCP setup for Codex. OpenAI Agents Reddit MCP setup for OpenAI Agents SDK. Claude Agent SDK Reddit MCP setup for Claude Agent SDK. Vercel AI SDK Reddit MCP setup for Vercel AI SDK. LangChain Reddit MCP setup for LangChain. LangGraph Reddit MCP setup for LangGraph. CrewAI Reddit MCP setup for CrewAI. MCP clients Reddit MCP setup for Generic MCP Clients.
Reddit CLI Matrix
Use these pages for direct Reddit CLI workflows in scripts, CI, cron, and agent wrappers.
CI Reddit CLI for CI. Cron Jobs Reddit CLI for cron jobs. Shell Scripts Reddit CLI for shell scripts. Headless Automation Reddit CLI for headless automation. Coding Agents Reddit CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
reddit.reddit_create_comment | Write write | 2 | 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. |
reddit.reddit_create_post | Write write | 7 | Submit a new post to a subreddit. Supports text (self), link, image, and video post types. |
reddit.reddit_get_current_user | Read read | 0 | Get the profile of the currently authenticated Reddit user. Useful for verifying credentials and displaying account information. |
reddit.reddit_get_post | Read read | 2 | Get details for a specific Reddit post by subreddit and post ID. Returns the post listing and its top-level comments. |
reddit.reddit_get_subreddit | Read read | 1 | Get information about a specific subreddit including subscriber count, description, and settings. |
reddit.reddit_list_comments | Read read | 5 | List comments for a specific Reddit post. Supports sorting (best, top, new, controversial, old, q&a) and depth limiting. |
reddit.reddit_list_posts | Read read | 5 | List posts from a subreddit or the Reddit front page. Supports hot, new, top, rising, and controversial sorting with pagination via after/before cursors. |
reddit.reddit_list_subreddits | Read read | 4 | List popular or new subreddits. Supports pagination with after/before cursors. |
reddit.reddit_search | Read read | 6 | Search Reddit for posts, subreddits, or users. Supports filtering by type, sorting, and time range. Use this to find relevant content across Reddit. |