Skip to content

Reddit API and MCP

Reddit provides access to subreddit posts, comments and the authorized user's profile and posting actions. An agent can read subreddit posts and publish text posts from the connected account. Connect your Reddit account once with OAuth in Longwave; agents act only on that account.

Add to Longwave

Install elsewhere

Install Reddit

Choose a harness. These instructions connect to the hosted MCP endpoint shown on this page.

Claude Code

Run this in your terminal. It adds a user-scoped server; use --scope project instead if it should apply only to the current project.

terminal
claude mcp add --scope user --transport http reddit https://api.longwave.run/v1/mcp/reddit
functions
3
access
Connect account

Use Reddit on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Sign in to Reddit the first time an agent uses the server.
  3. Ask for the result in any thread, for example: “Read recent subreddit posts for topic research”. The agent picks the Reddit function and calls it.

Reddit functions

Function
longwave_reddit_browse Read Reddit: list a subreddit, fetch a post with comments, or search. Does not post or modify content.
longwave_reddit_identity Return the connected Reddit account's identity (/api/v1/me). Use after connect or to confirm which account is active.
longwave_reddit_submit Write to Reddit: create a text or link post in a subreddit, or comment on a post/comment. Requires a connected Reddit account with submit scope.

Use cases

Questions people ask

What does Reddit OAuth authorize?

Reddit OAuth tokens carry scopes for specific actions. The API method and token scopes determine which operations an application can perform. Reddit documentation

How does Reddit paginate post listings?

Listing responses use after and before identifiers. Pass a returned identifier to retrieve the next or previous portion of a listing. Reddit documentation

How do I add the Reddit MCP server to Claude Code?

Run claude mcp add --transport http reddit https://api.longwave.run/v1/mcp/reddit in a terminal. Sign in to Reddit the first time an agent uses the server.

Who publishes the Reddit MCP server?

Longwave publishes the Reddit MCP server that Longwave installs.

Use Reddit in Longwave

Call Reddit from any agent thread, on your machine or in the cloud.

Add to Longwave