Reddit Integration
Browse subreddits, search posts, submit content, and vote on Reddit
The Reddit integration provides access to browse subreddits, search posts, submit content, and vote on Reddit through the Integrate MCP server.
Installation
The Reddit integration is included with the SDK:
import { redditIntegration } from "integrate-sdk/server";Setup
1. Create a Reddit OAuth App
- Create an OAuth application for Reddit
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the Reddit integration to your server configuration. The integration automatically reads REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET from your environment variables:
import { createMCPServer, redditIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
redditIntegration({
}),
],
});You can override the environment variables by passing explicit values:
redditIntegration({
clientId: process.env.CUSTOM_REDDIT_ID,
clientSecret: process.env.CUSTOM_REDDIT_SECRET,
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("reddit");
// Use client.reddit methods after connectingIf you're using a custom client, add the integration to the integrations array:
import { createMCPClient, redditIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [redditIntegration()],
});Configuration Options
Prop
Type
Tools
reddit_get_me
Get me
No parameters.
reddit_get_subreddit_about
Get subreddit about
No parameters.
reddit_list_subreddit_posts
List subreddit posts
No parameters.
reddit_get_post_thread
Get post thread
No parameters.
reddit_search
Search
No parameters.
reddit_submit_post
Submit post
No parameters.
reddit_comment
Comment
No parameters.
reddit_vote
Vote
No parameters.
reddit_list_my_subreddits
List my subreddits
No parameters.
reddit_list_popular_subreddits
List popular subreddits
No parameters.
Notes
- Category: Social Media
- Authentication mode: OAuth